SUMMARY: GCC problems, Solaris 2.5.1, tcp-wrappers 7.6 and wu-ftp

From: Brian Wells (
Date: Tue Jun 24 1997 - 13:51:57 CDT

A quick solution on this one. Here is the original problem:
> Hello Everyone,
> I am having problems compiling several packages using gcc, 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'
> -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.


Brian Wells
Klondyke's Online Services

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:58 CDT