pkgsrc-Users archive

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

Patch for emulators/libdsk


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/ -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/ -lz -Wl,-rpath -Wl,/usr/pkg/lib
/usr/bin/ld: ../lib/.libs/ 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:


Home | Main Index | Thread Index | Old Index