Subject: build.sh -x fails for netbsd-2-0
To: None <netbsd-users@NetBSD.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: netbsd-users
Date: 11/17/2004 17:02:07
I've cvs'ed /usr/xsrc and /usr/src (with netbsd-2-0 tag). When building
with 'sh build.sh -x -u -T /usr/tools -M /usr/obj -D /usr/build distribution'
I get an 'undefined reference to `openpty''. Looks like a missing -lutil.
[...]
dependall ===> bin/xconsole
# create xconsole/xconsole.d
CC=/usr/tools/bin/i386--netbsdelf-gcc /usr/tools/bin/nbmkdep -f xconsole.d -- -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/build/usr/X11R6/include -nostdinc -isystem /usr/build/usr/include /usr/xsrc/xfree/xc/programs/xconsole/xconsole.c
# create xconsole/.depend
rm -f .depend
CC=/usr/tools/bin/i386--netbsdelf-gcc /usr/tools/bin/nbmkdep -d -f .depend -s .o\ .ln xconsole.d
# compile xconsole/xconsole.o
/usr/tools/bin/i386--netbsdelf-gcc -O2 -Werror -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/build/usr/X11R6/include -nostdinc -isystem /usr/build/usr/include -c /usr/xsrc/xfree/xc/programs/xconsole/xconsole.c
# link xconsole/xconsole
/usr/tools/bin/i386--netbsdelf-gcc -Wl,-nostdlib -Wl,-rpath-link,/usr/build/usr/X11R6/lib -R/usr/X11R6/lib -L/usr/build/usr/X11R6/lib -o xconsole -Wl,-rpath-link,/usr/build/lib:/usr/build/usr/lib -L/usr/build/lib -B/usr/build/usr/lib/ -B/usr/build/usr/lib/ xconsole.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -L/usr/build/usr/lib -L/usr/build/usr/lib
xconsole.o(.text+0xd5c): In function `get_pty':
: undefined reference to `openpty'
collect2: ld returned 1 exit status
*** Failed target: xconsole
*** Failed command: /usr/tools/bin/i386--netbsdelf-gcc -Wl,-nostdlib -Wl,-rpath-link,/usr/build/usr/X11R6/lib -R/usr/X11R6/lib -L/usr/build/usr/X11R6/lib -o xconsole -Wl,-rpath-link,/usr/build/lib:/usr/build/usr/lib -L/usr/build/lib -B/usr/build/usr/lib/ -B/usr/build/usr/lib/ xconsole.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -L/usr/build/usr/lib -L/usr/build/usr/lib
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11/bin/xconsole
*** Failed target: dependall
*** Failed command: cd /usr/src/x11/bin/xconsole; /usr/tools/bin/nbmake realall
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11/bin/xconsole
*** Failed target: dependall-xconsole
*** Failed command: targ=dependall;dir=xconsole; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> bin/$dir"; cd "/usr/src/x11/bin/$dir"; /usr/tools/bin/nbmake "_THISDIR_=bin/$dir/" $targ; ;; esac
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11/bin
*** Failed target: dependall-bin
*** Failed command: targ=dependall;dir=bin; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/usr/src/x11/$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11
*** Failed target: do-build
*** Failed command: (cd /usr/src/x11 && /usr/tools/bin/nbmake dependall)
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11
*** Failed target: build
*** Failed command: (cd /usr/src/x11 && /usr/tools/bin/nbmake do-build)
*** Error code 1
Stop.
nbmake: stopped in /usr/src/x11
*** Failed target: do-x11
*** Failed command: (cd /usr/src/x11 && /usr/tools/bin/nbmake build)
*** Error code 1
Stop.
nbmake: stopped in /usr/src
*** Failed target: build
*** Failed command: (cd /usr/src && /usr/tools/bin/nbmake do-x11)
*** Error code 1
Stop.
nbmake: stopped in /usr/src
*** Failed target: distribution
*** Failed command: (cd /usr/src && /usr/tools/bin/nbmake NOPOSTINSTALL=1 build)
*** Error code 1
Stop.
nbmake: stopped in /usr/src
ERROR: Failed to make distribution
*** BUILD ABORTED ***
#