SUMMARY: GCC problems, Solaris 2.5.1, tcp-wrappers 7.6 and wu-ftp
Brian Wells (brian@www.klondyke.net)
Tue, 24 Jun 1997 14:51:57 -0400 (EDT)
A quick solution on this one. Here is the original problem:
> Hello Everyone,
>
> I am having problems compiling several packages using gcc 2.7.2.1, 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[1]: 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[1]: *** [tcpd] Error 1
> make[1]: Leaving directory `/opt/tcp_wrappers_7.6'
> make: *** [sunos5] Error 2
> bash-2.01#
>
> 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.
Thanks,
Brian Wells
Klondyke's Online Services
http://www.klondyke.net