From owner-freebsd-questions Tue Sep 24 03:04:01 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA20390 for questions-outgoing; Tue, 24 Sep 1996 03:04:01 -0700 (PDT) Received: from alpo.whistle.com (s205m1.whistle.com [207.76.205.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA20356 for ; Tue, 24 Sep 1996 03:03:55 -0700 (PDT) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.7.5/8.7.3) with SMTP id DAA11843 for ; Tue, 24 Sep 1996 03:02:40 -0700 (PDT) Message-ID: <3247B15B.398A68D@whistle.com> Date: Tue, 24 Sep 1996 03:00:59 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: questions@freebsd.org Subject: Mysterious NON linking of DES Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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