pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Patch for emulators/libdsk



Hi,

i am using pkgsrc-2020Q2 on linux/sparc64.

On linux/sparc64 and possibly also the other architectures,
emulators/libdsk throws this error during building:

Making all in tools
/bin/bash ../libtool  --tag=CC    --mode=link cc  -Wall -DNOTWINDLL
-O2 -D_FORTIFY_SOURCE=2   -Wl,-R/usr/pkg/lib -o dsktrans dsktrans.o
utilopts.o  formname.o bootsec.o ../lib/libdsk.la -lz
libtool: link: cc -Wall -DNOTWINDLL -O2 -D_FORTIFY_SOURCE=2 -Wl,-rpath
-Wl,/usr/pkg/lib -o .libs/dsktrans dsktrans.o utilopts.o formname.o
bootsec.o  ../lib/.libs/libdsk.so -lz -Wl,-rpath -Wl,/usr/pkg/lib
/usr/bin/ld: ../lib/.libs/libdsk.so: undefined reference to `major'
collect2: error: ld returned 1 exit status
*** Error code 1


To fix it, it needs two sys/sysmacros.h includes like here:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e626214cc3ff526e5ee87e2567d5fda930949726

Regards,
Connor


Home | Main Index | Thread Index | Old Index