BIND 9.8.1b2 compile problem on PowerPC
Bill Owens
owens at nysernet.org
Sun Jun 5 22:55:32 UTC 2011
BIND 9.8.1p2 early access release (same problem with 9.8.1p1)
MacOS X 10.5.8 on PowerPC, Darwin Kernel Version 9.8.0
gcc version 4.0.1 (Apple Inc. build 5490)
making all in /Users/owens/Source/bind-9.8.1b2/bin/tests/system/dlzexternal
gcc -I/Users/owens/Source/bind-9.8.1b2 -I/Users/owens/Source/bind-9.8.1b2/lib/dns/include -I../../../../lib/dns/include -I/Users/owens/Source/bind-9.8.1b2/lib/isc/include -I../../../../lib/isc -I../../../../lib/isc/include -I../../../../lib/isc/unix/include -I../../../../lib/isc/nothreads/include -I../../../../lib/isc/powerpc/include -g -O2 -I/opt/local/include/libxml2 -fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c dlopen.c
gcc -g -O2 -I/opt/local/include/libxml2 -fPIC \
-o dlopen dlopen.o -ldl -L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm
gcc -I/Users/owens/Source/bind-9.8.1b2 -I/Users/owens/Source/bind-9.8.1b2/lib/dns/include -I../../../../lib/dns/include -I/Users/owens/Source/bind-9.8.1b2/lib/isc/include -I../../../../lib/isc -I../../../../lib/isc/include -I../../../../lib/isc/unix/include -I../../../../lib/isc/nothreads/include -I../../../../lib/isc/powerpc/include -g -O2 -I/opt/local/include/libxml2 -fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c driver.c
../../../../lib/isc/powerpc/include/isc/atomic.h:103: warning: âisc_atomic_xaddâ defined but not used
../../../../lib/isc/powerpc/include/isc/atomic.h:133: warning: âisc_atomic_storeâ defined but not used
../../../../lib/isc/powerpc/include/isc/atomic.h:157: warning: âisc_atomic_cmpxchgâ defined but not used
gcc -shared -o driver.so driver.o
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [driver.so] Error 1
make[3]: *** [subdirs] Error 1
make[2]: *** [subdirs] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1
I worked around the problem by touching driver.so and continuing with the build, with no ill effects.
Bill.
More information about the bind-workers
mailing list