Subject: pkg/37232: x11/xdm3d fails to build with modular-xorg-server
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <diro@nixsyspaus.org>
List: pkgsrc-bugs
Date: 10/27/2007 11:20:00
>Number:         37232
>Category:       pkg
>Synopsis:       x11/xdm3d fails to build with modular-xorg-server
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 27 11:20:00 +0000 2007
>Originator:     diro@nixsyspaus.org
>Release:        NetBSD 3.1
>Organization:
>Environment:
NetBSD themobe 3.1 NetBSD 3.1 (THEMOBE) #6: Sun Oct 14 03:37:26 EDT 2007  root@themobe:/usr/src/sys/arch/i386/compile/THEMOBE i386
Architecture: i386
Machine: i386
>Description:
=> Bootstrap dependency digest>=20010302: digest-20070803 found
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `download-vulnerability-list'.
=> Checksum SHA1 OK for xdm3d-1.0.tar.gz
=> Checksum RMD160 OK for xdm3d-1.0.tar.gz
===> Installing dependencies for xdm3d-1.0nb1
=> Build dependency imake-[0-9]*: imake-1.0.2nb2 found
=> Build dependency imake-[0-9]*: imake-1.0.2nb2 found
=> Build dependency imake-[0-9]*: imake-1.0.2nb2 found
=> Build dependency imake-[0-9]*: imake-1.0.2nb2 found
=> Build dependency compositeproto>=0.3.1: compositeproto-0.4 found
=> Build dependency fixesproto>=3.0.0: fixesproto-4.0 found
=> Build dependency fontsproto>=2.0: fontsproto-2.0.2 found
=> Build dependency randrproto>=1.2.0: randrproto-1.2.1 found
=> Build dependency renderproto>=0.9.1: renderproto-0.9.2 found
=> Build dependency videoproto>=2.2.1: videoproto-2.2.2 found
=> Build dependency xextproto>=7.0: xextproto-7.0.2 found
=> Build dependency inputproto>=1.4: inputproto-1.4.2.1 found
=> Build dependency xf86driproto>=2.0.3: xf86driproto-2.0.3 found
=> Build dependency glproto>=1.4.6: glproto-1.4.8 found
=> Build dependency kbproto>=1.0.2: kbproto-1.0.3 found=> Build dependency xproto>=7.0.9: xproto-7.0.10 found
=> Full dependency modular-xorg-server>=1.2.99: modular-xorg-server-1.3.0.0nb3 found
=> Full dependency libXmu>=1.0.0: libXmu-1.0.3 found
=> Full dependency libXt>=1.0.0: libXt-1.0.5 found
=> Full dependency libXau>=1.0: libXau-1.0.3 found
===> Overriding tools for xdm3d-1.0nb1
===> Extracting for xdm3d-1.0nb1
===> Patching for xdm3d-1.0nb1
=> Applying pkgsrc patches for xdm3d-1.0nb1
===> Creating toolchain wrappers for xdm3d-1.0nb1
src=/usr/pkg/lib/pkgconfig/compositeproto.pc  dst=/usr/pkgsrc/x11/xdm3d/work/.buildlink/lib/pkgconfig/compositeext.pc;  /bin/mkdir -p /usr/pkgsrc/x11/xdm3d/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
src=/usr/pkg/lib/pkgconfig/fixesproto.pc  dst=/usr/pkgsrc/x11/xdm3d/work/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p /usr/pkgsrc/x11/xdm3d/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for xdm3d-1.0nb1
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/pkg/lib/X11/config
make Makefiles
making Makefiles in config...
        mv -f Makefile Makefile.bak
make includes
rm -f greet.c
ln -s greeter/greet.c greet.c
rm -f verify.c
ln -s greeter/verify.c verify.c
rm -f Login.c
ln -s greeter/Login.c Login.c
rm -f Login.h
ln -s greeter/Login.h Login.h
rm -f LoginP.h
ln -s greeter/LoginP.h LoginP.h
including in ./config...
rm -f Xservers.ws
cpp -traditional    -DBINDIR=/usr/pkg/bin <Xserv.ws.cpp | sed -e '/^#  *[0-9][0-9]*  *.*$/d'                    -e '/^#line  *[0-9][0-9]*  *.*$/d'                      -e '/^[         ]*XCOMM$/s/XCOMM/#/'                    -e '/^[         ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/'                        -e '/^[         ]*XHASH/s/XHASH/#/'                     -e '/\@\@$/s/\@\@$/\\/' >Xservers.ws
rm -f Xservers
ln -s Xservers.ws Xservers
make depend
rm -f .depend
makedepend -f-  --   -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                             -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -DUSE_MAKEDEPEND -- auth.c daemon.c server.c dpylist.c dm.c error.c file.c             netaddr.c reset.c resource.c protodpy.c policy.c                session.c socket.c streams.c util.c xdmcp.c             mitauth.c               genauth.c access.c choose.c             xdmauth.c rpcauth.c  greet.c verify.c Login.c xdmshell.c chooser.c sessreg.c        > .depend
makedepend: warning:  session.c, line 53: cannot find include file "rpc/key_prot.h"
        not in /usr/pkg/include/rpc/key_prot.h
        not in /usr/include/rpc/key_prot.h
makedepend: warning:  rpcauth.c, line 43: cannot find include file "rpc/key_prot.h"
        not in /usr/pkg/include/rpc/key_prot.h
        not in /usr/include/rpc/key_prot.h
makedepend: warning:  greet.c, line 86: cannot find include file "rpc/key_prot.h"
        not in /usr/pkg/include/rpc/key_prot.h
        not in /usr/include/rpc/key_prot.h
depending in ./config...
===> Building for xdm3d-1.0nb1
rm -f auth.o
cc -c -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                              -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -DBSD44SOCKETS auth.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c daemon.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c server.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c dpylist.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c dm.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c error.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c file.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c netaddr.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c reset.c
rm -f resource.o
cc -c -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                              -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 '-DDEF_SERVER_LINE=":0 local /usr/pkg/bin/X :0"'               '-DXRDB_PROGRAM="/usr/pkg/bin/xrdb"'            '-DDEF_SESSION="/usr/pkg/bin/xterm -ls"'                '-DDEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin"'              '-DDEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/bin"'                '-DDEF_SYSTEM_SHELL="/bin/sh"'                  '-DDEF_FAILSAFE_CLIENT="/usr/pkg/bin/xterm"'            '-DDEF_XDM_CONFIG="/usr/pkg/share/xdm3d/xdm-config"'            '-DDEF_CHOOSER="/usr/pkg/share/xdm3d/chooser"'                  '-DDEF_AUTH_DIR="/usr/pkg/share/xdm3d"'     
             '-DDEF_GREETER_LIB="/usr/pkg/share/xdm3d/libXdmGreet.so"' resource.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c protodpy.c
rm -f policy.o
cc -c -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                              -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                  policy.c
cc -O2 -fno-strict-aliasing      -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DBINDIR=\"/usr/pkg/bin\" -DXDMDIR=\"/usr/pkg/share/xdm3d\"                                 -DHASXDMAUTH -DSECURE_RPC                -DTCPCONN -DUNIXCONN           -DGREET_USER_STATIC -DFRAGILE_DEV_MEM           -DOSMAJORVERSION=3              -DOSMINORVERSION=1                 -I/usr/pkg/include -c session.c
session.c:53:27: rpc/key_prot.h: No such file or directory
session.c: In function `StartClient':
session.c:601: error: `HEXKEYBYTES' undeclared (first use in this function)
session.c:601: error: (Each undeclared identifier is reported only once
session.c:601: error: for each function it appears in.)
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/x11/xdm3d/work/xdm
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/x11/xdm3d
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/x11/xdm3d


Not sure what rpc/key_prot.h is, but i couldn't find it on my system or in pkgsrc anywhere.
>How-To-Repeat:
Add to Makefile:

.if ${X11_TYPE} == "modular"
.include "../../x11/modular-xorg-server/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXau/buildlink3.mk"
.endif

setenv X11_TYPE modular; bmake depend; bmake; in pkgsrc-2007Q3/x11/xdm3d
>Fix: