r261034: buildworld fails: undefined reference to `DES_ecb_encrypt'

From: O. Hartmann <ohartman_at_zedat.fu-berlin.de>
Date: Fri, 24 Jan 2014 11:42:45 +0100
With  r261034, I get the error shown below on one specific box running
kernel/world

11.0-CURRENT #0 r261034: Wed Jan 22 20:14:05 CET 2014 amd64

Another box compiles the same source without any problems (running
kernel/world 

11.0-CURRENT #4 r261091: Thu Jan 23 22:46:03 CET 2014 amd64

My buildworld process on all systems is to delete the content
of /usr/obj first before building the world/kernel, so remnants of
faulty code or inconsistencies regarding the source tree are not likely.

How to repair this strange behaviour?

Regards,

Oliver

[...]
(cd /usr/src/rescue/rescue/../../usr.bin/id &&  make
-DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/id/ depend && make
-DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/id/ id.o) `id.o'
is up to date. (cd /usr/src/rescue/rescue/../../usr.sbin/chroot &&
make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chroot/
depend && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE
DIRPRFX=rescue/rescue/chroot/ chroot.o) `chroot.o' is up to date.
(cd /usr/src/rescue/rescue/../../usr.sbin/chown &&  make -DRESCUE
CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chown/ depend && make
-DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chown/ chown.o)
`chown.o' is up to date. cc  -static -o rescue rescue.o cat.lo
chflags.lo chio.lo chmod.lo cp.lo date.lo dd.lo df.lo echo.lo ed.lo
expr.lo getfacl.lo hostname.lo kenv.lo kill.lo ln.lo ls.lo mkdir.lo
mv.lo pkill.lo ps.lo pwd.lo realpath.lo rm.lo rmdir.lo setfacl.lo sh.lo
stty.lo sync.lo test.lo rcp.lo csh.lo badsect.lo camcontrol.lo
ccdconfig.lo clri.lo devfs.lo dmesg.lo dump.lo dumpfs.lo dumpon.lo
fsck.lo fsck_ffs.lo fsck_msdosfs.lo fsdb.lo fsirand.lo gbde.lo geom.lo
ifconfig.lo init.lo kldconfig.lo kldload.lo kldstat.lo kldunload.lo
ldconfig.lo md5.lo mdconfig.lo mdmfs.lo mknod.lo mount.lo
mount_cd9660.lo mount_msdosfs.lo mount_nfs.lo mount_nullfs.lo
mount_udf.lo mount_unionfs.lo newfs.lo newfs_msdos.lo nos-tun.lo
ping.lo reboot.lo restore.lo rcorder.lo route.lo routed.lo rtquery.lo
rtsol.lo savecore.lo spppcontrol.lo swapon.lo sysctl.lo tunefs.lo
umount.lo atmconfig.lo ping6.lo ipf.lo zfs.lo zpool.lo bsdlabel.lo
fdisk.lo dhclient.lo head.lo mt.lo nc.lo sed.lo tail.lo tee.lo gzip.lo
bzip2.lo less.lo xz.lo tar.lo vi.lo id.lo chroot.lo
chown.lo /usr/obj/usr/src/rescue/rescue/../librescue/exec.o /usr/obj/usr/src/rescue/rescue/../librescue/getusershell.o /usr/obj/usr/src/rescue/rescue/../librescue/login_class.o /usr/obj/usr/src/rescue/rescue/../librescue/popen.o /usr/obj/usr/src/rescue/rescue/../librescue/rcmdsh.o /usr/obj/usr/src/rescue/rescue/../librescue/sysctl.o /usr/obj/usr/src/rescue/rescue/../librescue/system.o
-lcrypt -ledit -lkvm -ll -ltermcap -lutil -lalias -lcam -lcurses
-ldevstat -lipsec -lipx -lavl -ljail -lzfs_core -lzfs -lnvpair
-lpthread -luutil -lumem -lgeom -lbsdxml -lkiconv -lmd -lsbuf -lufs -lz
-lbz2 -llzma -larchive -lcrypto -lm nc.lo: In function `_$$hide$$ nc.lo
main': (.text+0x622): warning: warning: mktemp() possibly used
unsafely; consider using mkstemp() ed.lo: In function `_$$hide$$ ed.lo
cbc_decode': (.text+0xddc): undefined reference to `DES_ecb_encrypt'
ed.lo: In function `_$$hide$$ ed.lo cbc_encode': (.text+0xf81):
undefined reference to `DES_ecb_encrypt' ed.lo: In function `_$$hide$$
ed.lo cbc_encode': (.text+0x100a): undefined reference to
`DES_ecb_encrypt' ed.lo: In function `_$$hide$$ ed.lo get_keyword':
(.text+0x1187): undefined reference to `DES_set_odd_parity' ed.lo: In
function `_$$hide$$ ed.lo get_keyword': (.text+0x1194): undefined
reference to `DES_set_key' ed.lo: In function `_$$hide$$ ed.lo
set_des_key': (.text+0x15a3): undefined reference to
`DES_set_odd_parity' ed.lo: In function `_$$hide$$ ed.lo set_des_key':
(.text+0x15b4): undefined reference to `DES_set_key' cc: error: linker
command failed with exit code 1 (use -v to see invocation) *** Error
code 1

Stop.
make[5]: stopped in /usr/obj/usr/src/rescue/rescue
*** Error code 1

Received on Fri Jan 24 2014 - 09:42:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:46 UTC