A quick solution on this one. Here is the original problem:
> Hello Everyone,
> I am having problems compiling several packages using gcc 220.127.116.11, under
> Solaris 2.5.1. The troublesome packages are wu-ftp, emacs, and
> tcp-wrappers. I am currently working on tcp-wrappers, version 7.6 so I
> will use that as the example. All of the errors are similiar and
> between tcp-wrappers and wu-ftp they are identical. I get the following
> error message when the compiler gets to the linker part:
> bash-2.01# make sunos5
> make: Entering directory `/opt/tcp_wrappers_7.6'
> cc -O -DFACILITY=LOG_MAIL -DHOSTS_ACCESS -DPARANOID -DNETGROUP
> -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
> -DSOLARIS_24_GETHOSTBYNAME_BUG -DDAEMON_UMASK=022
> -DREAL_DAEMON_DIR=\"/usr/sbin\" -DSEVERITY=LOG_INFO
> -DRFC931_TIMEOUT=10 -DHOSTS_DENY=\"/etc/hosts.deny\"
> -DHOSTS_ALLOW=\"/etc/hosts.allow\" -DTLI -DALWAYS_HOSTNAME -o tcpd
> tcpd.o libwrap.a -lsocket -lnsl
> Undefined first referenced
> symbol in file
> __inet_addr libwrap.a(workarounds.o)
> ld: fatal: Symbol referencing errors. No output written to tcpd
> make: *** [tcpd] Error 1
> make: Leaving directory `/opt/tcp_wrappers_7.6'
> make: *** [sunos5] Error 2
> I am at a loss because I recently set up another machine (a sparc 10)
> with the same packages and got everything done OK (except for wu-ftp,
> that one has always been a thorn for me). This is a 670MP.
One of the first packages I compiled and installed was Bind-V8. It put's it's own resolv.h file out in /usr/local/include. Gcc looks in /usr/local/include before it looks in /usr/include. Hence it was getting the wrong file.
Klondyke's Online Services
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:58 CDT