[OpenIndiana-discuss] BIND 9.11.2 compile problems on OpenIndiana

Tim Mooney Tim.Mooney at ndsu.edu
Thu Sep 21 19:24:52 UTC 2017


In regard to: [OpenIndiana-discuss] BIND 9.11.2 compile problems on...:

> making all in /usr/local/src/b/bind-9.11.2/bin/tests/system/dyndb/driver
> CLEANED=`echo "../../../../../lib/dns/libdns.a ../../../../../lib/isc/libisc.a 
> -L/Applications/openssl-1.0.2l.64/lib -R/Applications/openssl-1.0.2l.64/lib 
> -R/Applications/openssl-1.0.2l.64/lib -lcrypto ../../../../../lib/dns/libdns.a 
> ../../../../../lib/isc/libisc.a -ldl -lnsl -lsocket -lscf -lpthread -lcrypto 
> -lssl -lthread -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl" 
> | cat`; \
> ld -L/Applications/openssl-1.0.2l.64/lib -G -z text -o sample.so db.o 
> driver.o instance.o  lock.o log.o syncptr.o zone.o \
> 	${CLEANED}

You're trying to generate a shared object ('-G' option to 'ld', '-o
sample.so' for the object) but you're (probably) linking against non-PIC
code.

Try including your compiler's option to generate position independent code
(PIC) in the CFLAGS for everything, even the object files that go into
the "static" libraries.  You will need to rebuild everything.

> Text relocation remains                 	referenced

There might be multiple things that can trigger "Text relocation remains",
but most of the time the first thing you should look at is to make sure
everything that's going into your shared object was generated PIC.

Tim
-- 
Tim Mooney                                             Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building                  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164



More information about the openindiana-discuss mailing list