Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 1996 03:00:59 -0700
From:      Julian Elischer <julian@whistle.com>
To:        questions@freebsd.org
Subject:   Mysterious NON linking of DES
Message-ID:  <3247B15B.398A68D@whistle.com>

next in thread | raw e-mail | index | archive | help
I'm trying to link the SAMBA daemon with -static
(I just "bmaked" it so i can 'Crunch' samba with some other stuff
for a tiny system)

the link line is as follows...
cc  -DSMBLOGFILE=\"/var/log/log.smb\"\
 -DNMBLOGFILE=\"/var/log/log.nmb\"\
 -DCONFIGFILE=\"/data/net/samba/smb.conf\"\
 -DLMHOSTSFILE=\"/data/net/samba/lmhosts\"\
 -DLOCKDIR=\"/var/spool/lock\"\
 -DSMBRUN=\"/whistle/bin/smbrun\" -DWORKGROUP=\"WORKGROUP\"\
 -DGUEST_ACCOUNT=\"nobody\" -DFreeBSD   \
 -DSMB_PASSWD=\"/whistle/bin/smbpasswd\"\
 -DSMB_PASSWD_FILE=\"/whistle/private/smbpasswd\"\
 -I/usr/image/whistle/include \
 -I/usr/prod/ia/whistle/bin/samba/source/smbd/../include\
 -I/usr/image/usr/include  -o smbd server.o trans2.o message.o dir.o\
 printing.o locking.o ipc.o reply.o mangle.o chgpasswd.o password.o\
 -L/usr/image/usr/lib -static -lcrypt -ldes -L../smblib -lsmb
                              ^^^^^^^^^^^^^

smbencrypt.o: Undefined symbol `_des_set_odd_parity' referenced from
text segment
smbencrypt.o: Undefined symbol `_des_set_key' referenced from text
segment
smbencrypt.o: Undefined symbol `_des_ecb_encrypt' referenced from text
segment
smbencrypt.o: Undefined symbol `_des_set_key' referenced from text
segment
smbencrypt.o: Undefined symbol `_des_ecb_encrypt' referenced from text
segment
*** Error code 1

Now as plain as day, libdes.a and libcrypt.a are mentionned there..
and if I do an nm on lindes.a i see:
# nm /usr/lib/libdes.a|grep _des_ecb_encrypt    
         U _des_ecb_encrypt
         U _des_ecb_encrypt
00000870 T _des_ecb_encrypt
# 

so the dammed thing is there....
why can't it link?
If I lik without -static, it seems to work..
but that's no good for me.


any pointers greatly appreciated..
I'm going home and giving up for the night :)

julian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3247B15B.398A68D>