pkgsrc-Users archive

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

"ld: cannot find -lnbcompat" building cwrappers



On two machines (so far) running 10.0_RC6/amd64, I am unable to 
build "pkgtools/cwrappers".  I complains:

[...]
#      link  cwrappers-20220403/as-wrapper
gcc   -Wl,-zrelro -Wl,-R/usr/pkg/lib   -pie  -shared-libgcc  -Wl,--warn-shared-textrel -Wl,-z,relro     -o as-wrapper  alloc.o cleanup-cc.o common.o reorder-cc.o generic-transform-cc.o normalise-cc.o as-wrapper.o normalise-as.o  -Wl,-rpath-link,/lib  -L=/lib -lnbcompat     
ld: cannot find -lnbcompat
*** [as-wrapper] Error code 1

make: stopped in /tmp/pkgsrc/pkgtools/cwrappers/work/cwrappers-20220403
1 error

make: stopped in /tmp/pkgsrc/pkgtools/cwrappers/work/cwrappers-20220403
*** Error code 2

Stop.
make[1]: stopped in /x/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/pkgtools/cwrappers


Earlier in the build output, it claims to build "libnbcompat":

[...]
===> Configuring for cwrappers-20220403
=> Configuring and building libnbcompat
[...]
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbcompat/config.h
/usr/bin/awk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
gcc -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc/pkgtools/cwrappers/work/libnbcompat -I. -I.  -O2 -DHAVE_CONFIG_H -c glob.c
ar cr libnbcompat.a glob.o
ranlib libnbcompat.a
[...]

Is "glob.o" the only thing needed for "cwrappers" libnbcompat.a?
It was placed here during the build of "cwrappers":

-rw-rw-r--  1 sysop  wheel  8594 Mar 17 16:17 /tmp/pkgsrc/pkgtools/cwrappers/work/libnbcompat/libnbcompat.a

What's odd is the second machine I tried to build it on previously
succeeded building "cwrappers".  Now it fails just like the one I first
saw fail.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index