Compiling sendmail 8.6.9 under Solaris 2.3/gcc 2.6.2

Compiling sendmail 8.6.9 under Solaris 2.3/gcc 2.6.2

Post by Juan M. Courco » Fri, 25 Nov 1994 03:27:50



Attempting to outfit our Sparcstation20 with the latest sendmail
technology, I retrieved Sendmail 8.6.9 from Berkeley and did a make after
configuring the local options. We are running Solaris 2.3 and using gcc
2.6.2.

All ancillary files compiled without errors (just 5 warnings about NOERROR
being redefined), but the make failed when trying to compile the sendmail
binary proper:

Quote:> gcc -o sendmail alias.o arpadate.o clock.o collect.o conf.o convtime.o
> daemon.o deliver.o domain.o envelope.o err.o headers.o macro.o main.o
> map.o mci.o parseaddr.o queue.o readcf.o recipient.o savemail.o srvrsmtp.o
> stab.o stats.o sysexits.o trace.o udb.o usersmtp.o util.o version.o
> -L/usr/sww/lib -lresolv -lsocket -lnsl -lelf -lw -lintl
> Undefined         first referenced
>  symbol               in file
> __switch_gethostbyaddr              conf.o
> __dn_skipname                       domain.o
> __switch_gethostbyname              conf.o
> ld: fatal: Symbol referencing errors. No output written to sendmail

I used the stock Makefile.Solaris that came with the distribution. Am I
missing a library somewhere, or is there any special consideration I
overlooked ?

Your help is greatly appreciated.

--


Campus Queretaro

 
 
 

Compiling sendmail 8.6.9 under Solaris 2.3/gcc 2.6.2

Post by Peter Lomda » Fri, 25 Nov 1994 08:35:37




Juan> Attempting to outfit our Sparcstation20 with the latest sendmail
Juan> technology, I retrieved Sendmail 8.6.9 from Berkeley and did a
Juan> make after configuring the local options. We are running Solaris
Juan> 2.3 and using gcc 2.6.2.

.....[stuff deleted]

Juan> I used the stock Makefile.Solaris that came with the
Juan> distribution. Am I missing a library somewhere, or is there any
Juan> special consideration I overlooked ?

Try using Makefile.SunOS.5.x or define: ENVDEF= -DSOLARIS_2_3 in
Makefile.Solaris. It's needed instead of just -DSOLARIS with 2.3 or
higher. Worked for me.

        -Peter

--
-- Peter Lomdahl -- T-11, MS B262 --
-- Los Alamos National Laboratory --
-- Los Alamos,  New Mexico  87545 --


 
 
 

1. Help compiling gcc 2.5.8 w/Solaris 2.3 (SunOS 5.3)

I am trying to compile gcc 2.5.8 on a Sun IPX under Solaris 2.3 using
gcc 2.3.3.  I can tell from posts in comp.os.solaris and gnu.gcc.bug
that others have done this before, so I hope I am having an "old"
problem.  Everything goes along fine until make reaches the file
tree.c.  Then I get the following errors:

make prefix=/opt/local/GNU CC=/opt/local/GNU/cygnus-sol2-1.0/bin/gcc LANGUAGE=c
/opt/local/GNU/cygnus-sol2-1.0/bin/gcc -c  -DIN_GCC -DSVR4  -g     -I. -I. -I./config tree.c
/usr/ccs/bin/as: "/tmp/cca001di.s", line 16160: error: can't compute value of an expression involving an external symbol
/usr/ccs/bin/as: "/tmp/cca001di.s", line 16161: error: can't compute value of an expression involving an external symbol
/usr/ccs/bin/as: "/tmp/cca001di.s", line 16163: error: can't compute value of an expression involving an external symbol
... <continues similarly for another dozen lines or so>

I also tried using gas to see if it was a problem with Sun's assembler
and gcc and got the following errors:

/opt/local/GNU/cygnus-sol2-1.0/bin/gcc -c  -DIN_GCC -DSVR4  -g     -I. -I. -I./config tree.c
/tmp/cca001dV.s: Assembler messages:



... <continues similarly for another dozen lines or so>

I configured this with the following:
  # ./configure --prefix=/opt/local/GNU
  Configuring for a sparc-sun-solaris2.3 host.
  Linked `config.h' to `./config/sparc/xm-sol2.h'
  Linked `tm.h' to `./config/sparc/sol2.h'
  Linked `aux-output.c' to `./config/sparc/sparc.c'
  Linked `tconfig.h' to `./config/sparc/xm-sol2.h'
  Linked `hconfig.h' to `./config/sparc/xm-sol2.h'
  Linked `md' to `./config/sparc/sparc.md'
  Merged sparc/x-sysv4.
  Merged sparc/t-sol2.
  Created `Makefile'.
  Links are now set up for target sparc-sun-solaris2.3.
  #
which seemed reasonble.  Can anyone give me a clue as to what the
problem is?  All help appreciated.  

Craig

------------------------------------------------------------
Craig A. Prall,                 Telephone: 703.883.6125
Member of the Technical Staff         Fax: 703.883.3315


McLean, VA 22102-3481

2. newbie question, mounting fat32 partition

3. Compiling Pine 3.91 under Solaris 2.3 & gcc 2.6.1 (SS20)

4. Display Problem

5. HELP: compiling ispell-4.0 on Solaris 2.3 with gcc 2.5.6

6. vi editor FAQ (Frequently Asked Question List), Part 1/2

7. Motif 2.0 compiled on Solaris 2.3 using gcc 2.6.3?

8. samba remote user

9. Trouble compiling GCC 2.7.0 under Solaris 2.3

10. Compiling using gcc in Solaris 2.3. PLEASE HELP!

11. Compiling sendmail 8.6.4 under Solaris 2.3 (sparc)

12. Sendmail compile error on Solaris 2.3

13. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link problems