Problem: [Solaris 8] After re-compiling OpenSSH after Zlib upgrade, 'ldd' wasn't showing the library in the OpenSSH binaries. I wanted to be sure they were using the latest Zlib library, and not Sun's own (/usr/lib/libz.so). Solution: My new Zlib library /usr/local/lib/zlib.a is STATIC, therefore ldd won't show it. Duh. If Sun's Zlib was being used, it _would_ show up since it's a shared object (.so). I just noticed on the Bugtraq list, someone mentioned 'crle', which looks pretty cool! It allows you to set runtime linking parameters so you don't need LD_LIBRARY_PATH. Dave Foster > > I am re-compiling my OpenSSH 3.1 implementation following > the recent Zlib vulnerability, and I notice that the binaries > don't seem to link to the Zlib library. > > I'm using > > ./configure ... --with-zlib=/usr/local/lib > > but > > $ ldd ssh > libsocket.so.1 => /usr/lib/libsocket.so.1 > libnsl.so.1 => /usr/lib/libnsl.so.1 > libc.so.1 => /usr/lib/libc.so.1 > libdl.so.1 => /usr/lib/libdl.so.1 > libmp.so.2 => /usr/lib/libmp.so.2 > /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1 > > > And just today there was a post from someone on Bugtraq who used --with-zlib > but found that HIS binaries linked to Sun's own library in /usr/lib. He > said he couldn't get it to use his updated version. > > What gives? > > Dave Foster > << All opinions expressed are mine, not the University's >> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= David Foster National Center for Microscopy and Imaging Research Programmer/Analyst University of California, San Diego dfoster@ucsd.edu Department of Neuroscience, Mail 0608 (858) 534-7968 http://ncmir.ucsd.edu/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable." -- George Bernard Shaw _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Wed Mar 13 16:52:14 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:36 EST