Re: Problems with RPM and compiled - no hdf_init symbol

"Paul Wayper" <[email protected]>
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
--- In [email protected], "Paul Wayper" <paulway@...> wrote:
>
> --- In [email protected], Brandon Long <blong@> wrote:
> >
> > Hmm, is it somehow not linking in the libneo_utl library into the .so?
> 
> I'd say so:
> 
> [paulway@baptest mixes]$ perl ~/coding/perl/mixulator.pl test.txt
> perl: symbol lookup error:
>
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/ClearSilver/ClearSilver.so:
> undefined symbol: hdf_init
> [paulway@baptest mixes]$ ldd
>
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/ClearSilver/ClearSilver.so
>        linux-gate.so.1 =>  (0x00d95000)
>         libz.so.1 => /lib/libz.so.1 (0x001ed000)
>         libc.so.6 => /lib/libc.so.6 (0x00dac000)
>         /lib/ld-linux.so.2 (0x80000000)

I thought about this a bit more and realised that this wasn't the
right test.  So I did a distclean and remade the thing and looked at
the Perl compilation part.  Here's the relevant lines:

Running Mkbootstrap for ClearSilver ()
chmod 644 ClearSilver.bs
rm -f blib/arch/auto/ClearSilver/ClearSilver.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib
ClearSilver.o  -o blib/arch/auto/ClearSilver/ClearSilver.so      \
           -L/home/paulway/coding/clearsilver-0.10.5/perl/../libs
-lneo_cgi -lneo_cs -lneo_utl -lz      \
          
chmod 755 blib/arch/auto/ClearSilver/ClearSilver.so
cp ClearSilver.bs blib/arch/auto/ClearSilver/ClearSilver.bs
chmod 644 blib/arch/auto/ClearSilver/ClearSilver.bs

So it is actually accessing libneo_*.a in the libs/ directory.  But
why it then doesn't know about hdf_init I have no idea.

Any more learned ideas?

Have fun,

Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.