BIND 8.2.1 compile problems on SCO3.2v4.2

CTSNET Webmaster webmaster at cts.com
Fri Oct 1 20:28:58 UTC 1999


Hello,

I am attempting to compile bind on SCO3.2v4.2.  I've made numerous changes to
affect positive changes to the build, but I have now reached a stand-still.

At some point in the build, something makes libbind_r.a, however, it makes it
wrong and later in the build, when ar is used to add object files to this
library, it fails with the following:

        ar cru ../../../lib/libbind_r.a  nsap_addr.o inet_addr.o inet_ntop.o
inet_pton.o  inet_ntoa.o inet_neta.o inet_net_ntop.o inet_net_pton.o
inet_cidr_ntop.o inet_cidr_pton.o  inet_lnaof.o inet_makeaddr.o inet_netof.o
inet_network.o  ; \
        : ../../../lib/libbind_r.a )
ar: malformed archive (at 2147482479) 
ar: nsap_addr.o cannot open
ar: inet_addr.o cannot open
ar: inet_ntop.o cannot open
ar: inet_pton.o cannot open
ar: inet_ntoa.o cannot open
ar: inet_neta.o cannot open
ar: inet_net_ntop.o cannot open
ar: inet_net_pton.o cannot open
ar: inet_cidr_ntop.o cannot open
ar: inet_cidr_pton.o cannot open
ar: inet_lnaof.o cannot open
ar: inet_makeaddr.o cannot open
ar: inet_netof.o cannot open
ar: inet_network.o cannot open

This then causes the build to fail still later in the build, when it attempts
to build the various binaries in the distribution:


        cc -O   -o nslookup main.o getinfo.o debug.o send.o skip.o list.o
subr.o commands.o \
                ../../lib/libbind.a -ll -lnsl_s -lsocket -lc_s
undefined                       first referenced
 symbol                             in file
gethostid                           ../../lib/libbind.a
ld fatal: Symbol referencing errors. No output written to nslookup
*** Error code 13


I'm guessing that this failure occurs because it's attempting to link in
certain symbols that don't exist because ar fails to add these objects.  When
I look at libbind_r.a after the build, it's only 8 bytes in length,
containing: 21 3c 61 72 63 68 3e 0a ("!<arch>", with the last character being
unprintable).

Interestingly, if I try to run the ar command to manually add any of the
objects that failed to be added, I get the same "malformed archive" error, as
above.  However, if I zero the file and attempt to run ar on the lib again, it
succeeds without error.

Does anyone have any idea where the source of the problem is?

Matthew H. North
Programmer/Engineering
  ___  ____  ___
 /      /   /__   Network | Tel 858/637-3600 | Mail: ctsmhn at cts.com
/__    /   ___/  Services | Fax 858/637-3630 | WWW: http://www.cts.com


More information about the bind-users mailing list