From: David O'C. <dav...@cs...> - 2012-08-14 11:57:25
|
Hi, I ran into the same problem encountered by Mark Nejedlo in May. I joined the mailing list to reply! My workaround is to statically link against libresolv.a for the binaries in src/tools. I've attached a patch for that. I had to do something similar with openca-ocspd. I have been working on producing up-to-date EL5 RPMs for both. Kind regards, David On 2012-05-07 Mark Nejedlo wrote: > I am running into build errors when I try to build libpki. Configure and make run fine until it reaches: > > libtool: link: gcc -g -O2 -fstack-check -maccumulate-outgoing-args -Wl,-rpath -Wl_tool-pki-tool.o -L/usr ../.libs/libpki.so -L/usr/kerberos/lib64 -lpthread -lrt -lresolv -Wl,-rpath -Wl,/opt/libpki-0.6.7/lib64 > > at which point the following errors are thrown: > > ../.libs/libpki.so: undefined reference to `__ns_initparse' > ../.libs/libpki.so: undefined reference to `__ns_name_uncompress' > ../.libs/libpki.so: undefined reference to `__ns_parserr' > > Google tells me that these are internal functions of libresolv and aren't exported. Any ideas how to work around this? > > I am building on RedHat Enterprise 5.6 for x86_64. > > Mark -- Ánra Taighde - Scoil na hEolaíochta Ríomhaireachta ⁊ na Staitisticí, Coláiste na Tríonóide, Baile Átha Cliath, BÁC 2 Research Fellow - School of Computer Science & Statistics, Trinity College Dublin, Dublin 2 T: +353 1 896 1720 |