Subject: pkg/18607: building of gv-3.5.8nb2 fails
To: None <gnats-bugs@gnats.netbsd.org>
From: None <florence.henry@obspm.fr>
List: netbsd-bugs
Date: 10/10/2002 05:53:32
>Number:         18607
>Category:       pkg
>Synopsis:       building of gv-3.5.8nb2 fails
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 10 05:54:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Florence HENRY
>Release:        NetBSD 1.6
>Organization:
>Environment:
NetBSD kiwi 1.6 NetBSD 1.6 (FLOKERN6) #1: Sat Sep 28 11:15:12 UTC 2002     root@kiwi:/usr/src/sys/arch/i386/compile/FLOKERN6 i386
>Description:
the package gv-3.5.8nb2 fails at building with a pkgsrc.tar.gz downloaded today on the main ftp server (file date : 10/05/02).

typing "make" in /usr/pkgsrc/print/gv leads some errors that are due to the fact that gccmakedep and gcc do not find X11/Xarch.h whereas it does exist on my system, and the flag " -I/usr/X11R6/include " is present on the command line !

a "ls -l /usr/X11R6/include/X11/Xarch.h" produces

-r--r--r--  1 root  wheel  3511 Sep  8 14:57 /usr/X11R6/include/X11/Xarch.h

and here are the messages of "make":

root@kiwi[/usr/pkgsrc/print/gv]#make
=> Checksum OK for gv-3.5.8.tar.gz.
===> Extracting for gv-3.5.8nb2
===> Required installed package {ghostscript-esp>=6.01,ghostscript-gnu>=6.01,ghostscript-gnu-x11>=6.01,ghostscript>=6.01}: ghostscript-6.01nb4 found
===> Required installed package Xaw3d-1.5: Xaw3d-1.5 found
===> Required installed package x11-links>=0.8: x11-links-0.8 found
/bin/mv /usr/pkgsrc/print/gv/work/gv-3.5.8/doc/gv.man /usr/pkgsrc/print/gv/work/gv-3.5.8/source/
===> Patching for gv-3.5.8nb2
===> Applying NetBSD patches for gv-3.5.8nb2
===> Buildlinking for gv-3.5.8nb2
===> Configuring for gv-3.5.8nb2
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
make Makefiles
making Makefiles in doc...
making Makefiles in doc/source...
making Makefiles in source...
make includes
including in ./source...
creating gv_intern_res_unix.dat
creating gv_intern_res_unix.h
creating gv_make_res.dat
creating gv_class.ad
creating gv_class.h
creating gv_spartan.h
make depend
depending in ./doc...
depending in ./doc/source...
rm -f .depend
gccmakedep -f-  --   -I/usr/X11R6/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO     -DUSE_MAKEDEPEND --  > .depend
depending in ./source...
creating gv_user.ad
creating gv_system.ad
creating GV.ad
rm -f .depend
gccmakedep -f-  --   -I/usr/X11R6/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DNON_BLOCKING_IO     -DUSE_SIGNAL_HANDLER    -DUSER_DEFAULTS=\
"~/.gv\" -DGV_LIBDIR=\"/usr/X11R6/lib/X11/gv/\" -DGV_CODE  -DUSE_FALLBACK_STYLES        -DUSE_MAKEDEPEND -- Aaa.c Aaa_bison.c Aaa_lex.c Button.c Clip.c FileSel.c Frame.c Ghostview.c MButton.c Switch.c Vlist.c actions.c callbacks.c confirm.c dialog.c doc_misc.c error.c file.c info.c main.c media.c misc.c miscmenu.c misc_private.c note.c options.c options_fs.c options_gs.c options_gv.c options_setup.c process.c popup.c ps.c resource.c save.c scale.c signal.
c version.c widgets_misc.c zoom.c      Scrollbar.c          > .depend
In file included from FileSel.c:52:
/usr/pkg/share/x11-links/include/X11/Xos.h:284: X11/Xarch.h: No such file or directory
In file included from Ghostview.c:45:
/usr/pkg/share/x11-links/include/X11/Xos.h:284: X11/Xarch.h: No such file or directory
In file included from dialog.c:40:
/usr/pkg/share/x11-links/include/X11/Xos.h:284: X11/Xarch.h: No such file or directory
In file included from error.c:40:
/usr/pkg/share/x11-links/include/X11/Xos.h:284: X11/Xarch.h: No such file or directory
In file included from misc.c:96:
/usr/pkg/share/x11-links/include/X11/Xos.h:284: X11/Xarch.h: No such file or directory
In file included from ps.c:81:
/usr/pkg/share/x11-links/include/X11/Xos.h:284: X11/Xarch.h: No such file or directory

===> Building for gv-3.5.8nb2
making all in ./source...
gcc -O2      -I/usr/X11R6/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DNON_BLOCKING_IO     -DUSE_SIGNAL_HANDLER    -DUSER_DEFAULTS=\"~/.gv\"
 -DGV_LIBDIR=\"/usr/X11R6/lib/X11/gv/\" -DGV_CODE  -DUSE_FALLBACK_STYLES        -I/usr/pkg/include -I/usr/X11R6/include   -c Aaa.c
gcc -O2      -I/usr/X11R6/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DNON_BLOCKING_IO     -DUSE_SIGNAL_HANDLER    -DUSER_DEFAULTS=\"~/.gv\"
 -DGV_LIBDIR=\"/usr/X11R6/lib/X11/gv/\" -DGV_CODE  -DUSE_FALLBACK_STYLES        -I/usr/pkg/include -I/usr/X11R6/include   -c Aaa_bison.c
gcc -O2      -I/usr/X11R6/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DNON_BLOCKING_IO     -DUSE_SIGNAL_HANDLER    -DUSER_DEFAULTS=\"~/.gv\"
 -DGV_LIBDIR=\"/usr/X11R6/lib/X11/gv/\" -DGV_CODE  -DUSE_FALLBACK_STYLES        -I/usr/pkg/include -I/usr/X11R6/include   -c Aaa_lex.c
gcc -O2      -I/usr/X11R6/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DNON_BLOCKING_IO     -DUSE_SIGNAL_HANDLER    -DUSER_DEFAULTS=\"~/.gv\"
 -DGV_LIBDIR=\"/usr/X11R6/lib/X11/gv/\" -DGV_CODE  -DUSE_FALLBACK_STYLES        -I/usr/pkg/include -I/usr/X11R6/include   -c Button.c
gcc -O2      -I/usr/X11R6/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DNON_BLOCKING_IO     -DUSE_SIGNAL_HANDLER    -DUSER_DEFAULTS=\"~/.gv\"
 -DGV_LIBDIR=\"/usr/X11R6/lib/X11/gv/\" -DGV_CODE  -DUSE_FALLBACK_STYLES        -I/usr/pkg/include -I/usr/X11R6/include   -c Clip.c
gcc -O2      -I/usr/X11R6/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DNON_BLOCKING_IO     -DUSE_SIGNAL_HANDLER    -DUSER_DEFAULTS=\"~/.gv\"
 -DGV_LIBDIR=\"/usr/X11R6/lib/X11/gv/\" -DGV_CODE  -DUSE_FALLBACK_STYLES        -I/usr/pkg/include -I/usr/X11R6/include   -c FileSel.c
In file included from FileSel.c:52:
/usr/pkg/share/x11-links/include/X11/Xos.h:284: X11/Xarch.h: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/gv/work/gv-3.5.8/source
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/gv/work/gv-3.5.8
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/gv
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/gv

>How-To-Repeat:
cd /usr/pksrc/print/gv/
make clean
make
>Fix:
cd /usr/pksrc/print/gv/
make clean
make ; # here it fails as reported
cd work/gv-3.5.8/ 
make ; # yes ! it works here !!!
cd ../..
make install

but it is not really a fix ...
>Release-Note:
>Audit-Trail:
>Unformatted: