ibm-s390-linux / s390-tools

Tools for use with the s390 Linux kernel and device drivers
MIT License
63 stars 59 forks source link

netboot image build fails with undefined reference to `stime' #100

Closed vmorris closed 3 years ago

vmorris commented 3 years ago

Busy box needs to be bumped up to a later version:

using the default:

==========
/usr/bin/ld: coreutils/lib.a(mktemp.o): in function `mktemp_main':
mktemp.c:(.text.mktemp_main+0xb2): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
/usr/bin/ld: util-linux/lib.a(rdate.o): in function `rdate_main':
rdate.c:(.text.rdate_main+0x130): undefined reference to `stime'
/usr/bin/ld: coreutils/lib.a(date.o): in function `date_main':
date.c:(.text.date_main+0x2a0): undefined reference to `stime'
collect2: error: ld returned 1 exit status
Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS.
Example: CONFIG_EXTRA_LDLIBS="pthread dl tirpc audit pam"
make[1]: *** [Makefile:717: busybox_unstripped] Error 1
make[1]: Leaving directory '/home/vmorris/s390-tools/netboot/busybox-1.27.1'
make: *** [Makefile.pxelinux.0:37: busybox-1.27.1/_install] Error 2

using busybox v1.32.0:

make[1]: Leaving directory '/home/vmorris/s390-tools/netboot/busybox-1.32.0'
/bin/bash mk-pxelinux-ramfs -b busybox-1.32.0/_install -k 5.9.9-200.fc33.s390x pxelinux.initramfs
mk-pxelinux-ramfs: Building in /tmp/tmp.SnmjDZ9RIP
mk-pxelinux-ramfs: Copying kexec
mk-pxelinux-ramfs: Copying virtio modules
mk-pxelinux-ramfs: Copying busybox files
mk-pxelinux-ramfs: Copying af_packet modules
mk-pxelinux-ramfs: Making init script
mk-pxelinux-ramfs: Making DHCP script
mk-pxelinux-ramfs: Making PXE boot script
Building initramfs
13116 blocks
/bin/bash mk-s390image /boot/vmlinuz-5.9.9-200.fc33.s390x pxelinux.0 -r pxelinux.initramfs