Solved Unable to find library -lnetbsd

Hi!
FreeBSD 13.1-RELEASE-p2

I am trying to compile libc:

:/usr/src/lib/libc # make

At some point during compilation...
Code:
===> tests/c063 (all)
[Creating objdir /usr/obj/usr/src/i386.i386/lib/libc/tests/c063...]
(cd /usr/src/lib/libc/tests/c063 &&  DEPENDFILE=.depend.faccessat_test  NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/c063/Makefile _RECURSING_PROGS=t  PROG=faccessat_test )
Building /usr/obj/usr/src/i386.i386/lib/libc/tests/c063/t_faccessat.o
Building /usr/obj/usr/src/i386.i386/lib/libc/tests/c063/faccessat_test.full
ld: error: unable to find library -lnetbsd
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Maybe it's a mistake that I didn't make build world first?
Any suggestions?
 
I managed to find a solution to my strange endeavor and got results that interested me ...

Code:
:/usr/src/lib/libnetbsd # make
Building /usr/obj/usr/src/i386.i386/lib/libnetbsd/libnetbsd.a
building static netbsd library
# cd /usr/obj/usr/src/i386.i386/lib/libnetbsd/
# chmod 0444 libnetbsd.a
# cp libnetbsd.a /usr/lib/
# cd /usr/src/lib/libc
:/usr/src/lib/libc # make

After this, the libc compilation completes without error and I got the libraries.
 
Back
Top