[hobbit] Missing libpcre and libgcc in compiled binaries

Galen Johnson Galen.Johnson at sas.com
Mon Jul 16 21:28:52 CEST 2007


Have you tried updating your library path using crle?

=G=

-----Original Message-----
From: Matthew Epp [mailto:matthew.epp at us.army.mil] 
Sent: Monday, July 16, 2007 2:22 PM
To: hobbit at hswn.dk
Subject: [hobbit] Missing libpcre and libgcc in compiled binaries

I'm encountering an odd problem doing a rebuild of the Hobbit server. 
I'm using the same Solaris 8 system that I originally built my server 
on, however I no longer seem to be getting the pcre and gcc libs linked 
to my binaries, and they're entirely different sizes as well. Example:

Original hobbitsvc.cgi binary:
Size: 1374336
$ldd hobbitsvc.cgi
         libpcre.so.0 =>  /usr/local/lib/libpcre.so.0
         libresolv.so.2 =>        /usr/lib/libresolv.so.2
         libsocket.so.1 =>        /usr/lib/libsocket.so.1
         libnsl.so.1 =>   /usr/lib/libnsl.so.1
         libc.so.1 =>     /usr/lib/libc.so.1
         libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
         libdl.so.1 =>    /usr/lib/libdl.so.1
         libmp.so.2 =>    /usr/lib/libmp.so.2
         /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1

New hobbitsvc.cgi binary:
Size: 532124
$ldd hobbitsvc.cgi
         libresolv.so.2 =>        /usr/lib/libresolv.so.2
         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,Sun-Fire-280R/lib/libc_psr.so.1

I've tried numerous fixes. Set all the paths in LD_LIBRARY_PATH, added 
-R/usr/loca/lib to the Makefile for PCRE. Using the Sunfreeware SMCgcc 
3.4.6 package with SMCmake installed also. I don't get any errors when 
running make or make install. I know it's actually using gcc:

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -DSunOS -I. -I/build/hobbit-4.2.0/include 
-I/usr/local/include -o hobbitsvc.cgi hobbitsvc.o hobbitsvc-info.o 
hobbitsvc-trends.o ../lib/libbbgen.a -L/usr/local/lib -R/usr/local/lib 
-lpcre -lresolv -lsocket -lnsl

Am I missing something stupidly obvious here?

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk





More information about the Xymon mailing list