More strangenes in compile.


Subject: More strangenes in compile.
From: Mathias Meisfjordskar (mathias dot meisfjordskar at usit dot uio dot no)
Date: Wed Apr 02 2003 - 10:59:05 EST


From 'make > mylog' I get:

/bin/sh ../libtool --mode=link gcc -Wall -W -Wall -g -O2 \
        -L/usr/local/lib \
        -Wl,-rpath,/usr/local/lib \
        -L/ldap/util/openssl/lib \
        -L/ldap/util/sasl/lib \
        -L/ldap/util/db/lib \
        -Wl,-rpath,/ldap/util/openssl/lib \
        -Wl,-rpath,/ldap/util/sasl/lib \
        -Wl,-rpath,/ldap/util/db/lib \
        -lcrypt -module -export-dynamic \
        -rpath /usr/lib/sasl2 -o libdigestmd5.la \
        -version-info 2:12:0 \
        digestmd5.lo digestmd5_init.lo plugin_common.lo \
        -lcrypto -lresolv -lresolv

which gives:

gcc -shared digestmd5.lo digestmd5_init.lo plugin_common.lo \
        -L/usr/local/lib \
        -L/ldap/util/openssl/lib \
        -L/ldap/util/sasl/lib \
        -L/ldap/util/db/lib \
        -lcrypt -lcrypto -lresolv -lresolv -lc \
        -Wl,-soname -Wl,libdigestmd5.so.2 \
        -o .libs/libdigestmd5.so.2.0.12

beeblebrox.uio.no# ldd .libs/libdigestmd5.so
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40015000)
        libcrypto.so.0.9.7 => not found
        libresolv.so.2 => /lib/libresolv.so.2 (0x40043000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

So I tried this:

gcc -shared digestmd5.lo digestmd5_init.lo plugin_common.lo \
        -L/usr/local/lib \
        -L/ldap/util/openssl/lib \
        -L/ldap/util/sasl/lib \
        -L/ldap/util/db/lib \
        -Wl,-rpath,/ldap/util/openssl/lib \
        -Wl,-rpath,/ldap/util/sasl/lib \
        -Wl,-rpath,/ldap/util/db/lib \
        -lcrypt -lcrypto -lresolv -lresolv -lc \
        -Wl,-soname -Wl,libdigestmd5.so.2 \
        -o .libs/libdigestmd5.so.2.0.12

Which gives me:

beeblebrox.uio.no# ldd .libs/libdigestmd5.so
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40015000)
        libcrypto.so.0.9.7 => /ldap/util/openssl/lib/libcrypto.so.0.9.7 (0x40043000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x4013b000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        libdl.so.2 => /lib/libdl.so.2 (0x4014c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

So what is wrong? I've parsed some of the output from '/bin/sh -x
../libtool', but I'm not sure where the actual error is.

The log shows "compile_command" and "finalize_command" as they are
buildt and they look good, but I gave up following variables after
some time.

I know this is a problem for others. I've helped others with this
problem, but I haven't had this problem before now.

-- 
Mathias Meisfjordskar
GNU/Linux addict.

"If it works; HIT IT AGAIN!"







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD