Subject: Re: xconsole failed build
To: None <port-macppc@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-macppc
Date: 11/14/2004 03:15:37
In article <Pine.NEB.4.61.0411132104580.28500@phenotype.laffeycomputer.com>,
Joe Laffey <joe@laffeycomputer.com> wrote:
>I am getting a build failure when trying to build userland with the -x 
>option to build.sh. I am building from sources checked out last night in 
>the netbsd-2.0 tree.

That is really unfortunate. We don't have 2.0 tag for xsrc so a recent
change I made to xconsole broke the 2.0 branch. We should bring up the
Makefile up-to-head in the xconsole directory or revert the change. I'd
rather do the first since the reason for the change is security related.

christos

>
>Here is the error output:
>#   compile  xconsole/xconsole.o
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/powerpc--netbsd-gcc 
>-O2 -O2 -mcpu=750   -Werror   -D
>CSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/dest/usr/X11R6/include 
>-nostdinc -isystem /usr/dest/usr/inclu
>de  -c    /usr/xsrc/xfree/xc/programs/xconsole/xconsole.c
>#      link  xconsole/xconsole
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/powerpc--netbsd-gcc 
>-Wl,-nostdlib   -Wl,-rpath-link,
>/usr/dest/usr/X11R6/lib  -R/usr/X11R6/lib  -L/usr/dest/usr/X11R6/lib   -o 
>xconsole  -Wl,-rpath-link,/usr/dest
>/lib:/usr/dest/usr/lib  -L/usr/dest/lib  -B/usr/dest/usr/lib/ 
>-B/usr/dest/usr/lib/   xconsole.o -lXaw -lXmu -
>lXt -lSM -lICE -lXpm -lXext -lX11   -L/usr/dest/usr/lib 
>-L/usr/dest/usr/lib
>xconsole.o(.text+0x1174): In function `get_pty':
>: undefined reference to `openpty'
>collect2: ld returned 1 exit status
>
>*** Failed target:  xconsole
>*** Failed command: 
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/powerpc--netbsd-gcc 
>-Wl,-nostdli
>b -Wl,-rpath-link,/usr/dest/usr/X11R6/lib -R/usr/X11R6/lib 
>-L/usr/dest/usr/X11R6/lib -o xconsole -Wl,-rpath-l
>ink,/usr/dest/lib:/usr/dest/usr/lib -L/usr/dest/lib -B/usr/dest/usr/lib/ 
>-B/usr/dest/usr/lib/ xconsole.o -lXa
>w -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -L/usr/dest/usr/lib 
>-L/usr/dest/usr/lib
>*** Error code 1
>
>Stop.
>nbmake: stopped in /home/src/src/x11/bin/xconsole
>
>*** Failed target:  dependall
>*** Failed command: cd /home/src/src/x11/bin/xconsole; 
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/b
>in/nbmake realall
>*** Error code 1
>
>Stop.
>nbmake: stopped in /home/src/src/x11/bin/xconsole
>
>*** Failed target:  dependall-xconsole
>*** Failed command: targ=dependall;dir=xconsole; case "$dir" in /*) echo 
>"$targ ===> $dir"; cd "$dir"; /usr/o
>bj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/nbmake 
>"_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> bin
>/$dir"; cd "/home/src/src/x11/bin/$dir"; 
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/nbmake "_TH
>ISDIR_=bin/$dir/" $targ; ;; esac
>*** Error code 1
>
>Stop.
>nbmake: stopped in /home/src/src/x11/bin
>
>*** Failed target:  dependall-bin
>*** Failed command: targ=dependall;dir=bin; case "$dir" in /*) echo "$targ 
>===> $dir"; cd "$dir"; /usr/obj/ho
>me/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/nbmake "_THISDIR_=$dir/" 
>$targ; ;; *) echo "$targ ===> $dir"; c
>d "/home/src/src/x11/$dir"; 
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/nbmake 
>"_THISDIR_=$dir/"
>  $targ; ;; esac
>*** Error code 1
>
>
>Stop.
>nbmake: stopped in /home/src/src/x11
>
>*** Failed target:  do-build
>*** Failed command: (cd /home/src/src/x11 && 
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/nbmake
>dependall)
>*** Error code 1
>
>Stop.
>nbmake: stopped in /home/src/src/x11
>
>*** Failed target:  build
>*** Failed command: (cd /home/src/src/x11 && 
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/nbmake
>do-build)
>*** Error code 1
>
>Stop.
>nbmake: stopped in /home/src/src/x11
>
>*** Failed target:  do-x11
>*** Failed command: (cd /home/src/src/x11 && 
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/nbmake
>build)
>*** Error code 1
>
>Stop.
>nbmake: stopped in /home/src/src
>
>*** Failed target:  build
>*** Failed command: (cd /home/src/src && 
>/usr/obj/home/src/src/tooldir.NetBSD-2.0_RC4-powerpc/bin/nbmake do-x
>11)
>*** Error code 1
>
>Stop.
>nbmake: stopped in /home/src/src
>
>ERROR: Failed to make build
>*** BUILD ABORTED ***
>
>
>
>----------------------------------------------------------------------
>
>Adding -lutil to the LDADD line in: 
>/home/src/src/x11/bin/xconsole/Makefile
>
>seems to fix the problem.
>
>Can anyone confirm or deny?
>
>--
>Joe Laffey                |        Visual Effects for Film and Video
>LAFFEY Computer Imaging   |        ---------------------------------
>St. Louis, MO             |        Show Reel at http://LAFFEY.tv/?s
>USA                       |        ---------------------------------
>--------------------------------------------------------------------------
>Mail here will be rejected --> "Real Trap" <r_trap@laffeycomputer.com>
>