Error during make - i386ld fatal:Symbol referencing error

David Shaw dshaw@jabberwocky.com
Wed Jan 15 14:53:01 2003


On Tue, Jan 14, 2003 at 04:33:41PM -0500, John Hill wrote:

> make[2]: Entering directory `/u1/db_bu/GNU/gnupg-1.2.1/tools'
> cc  -g   -o bftest  bftest.o ../cipher/libcipher.a ../mpi/libmpi.a
> ../util/libut
> il.a -lsocket  ../intl/libintl.a
> undefined                       first referenced
>  symbol                             in file
> inet_addr                           /usr/lib/libsocket.a
> dn_expand                           /usr/lib/libsocket.a
> h_errno                             /usr/lib/libsocket.a
> __dn_skipname                       /usr/lib/libsocket.a
> _getshort                           /usr/lib/libsocket.a
> _res                                /usr/lib/libsocket.a
> __res_init                          /usr/lib/libsocket.a
> inet_aton                           /usr/lib/libsocket.a
> __res_search                        /usr/lib/libsocket.a
> __res_query                         /usr/lib/libsocket.a
> inet_ntoa                           /usr/lib/libsocket.a
> i386ld fatal: Symbol referencing errors. No output written to bftest

Looks like you're missing a library.  What happens if you manually add
-lnsl to your link line?

i.e.:

cc -g -o bftest bftest.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a -lsocket -lnsl ../intl/libintl.a

David

-- 
   David Shaw  |  dshaw@jabberwocky.com  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson