Subject: pkg/15031: Unable to build gv package
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jaco@teaser.fr>
List: netbsd-bugs
Date: 12/22/2001 14:10:27
>Number:         15031
>Category:       pkg
>Synopsis:       build of gv package fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 22 05:12:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Eric Jacoboni
>Release:        NetBSD 1.5ZA Fri Dec 21 16:00:12 CET 2001
>Organization:
None	
>Environment:
System: NetBSD titine.fr.eu.org 1.5ZA NetBSD 1.5ZA (TITINE-Current-20010918) #17: Fri Dec 21 16:00:12 CET 2001 root@titine.fr.eu.org:/usr/src.cvsup/sys/arch/i386/compile/TITINE i386
Architecture: i386
Machine: i386
>Description:
When i try to build gv from ports, the build process fails : 
yesterday, it stops while complaining about the lack of Xaw3d libs 
(but they are in /usr/local/lib). Today, it fails about some option of gcc.

# ls -l /usr/local/lib/libXaw*
ls -l /usr/local/lib/libXaw*
-rw-r--r--  1 root  wheel  330788 May  7  2001 /usr/local/lib/libXaw3d.a
lrwxr-xr-x  1 root  wheel      15 May  7  2001 /usr/local/lib/libXaw3d.so -> libXaw3d.so.6.1
lrwxr-xr-x  1 root  wheel      15 May  7  2001 /usr/local/lib/libXaw3d.so.6 -> libXaw3d.so.6.1
-r-xr-xr-x  1 root  wheel  288823 May  7  2001 /usr/local/lib/libXaw3d.so.6.1

Here is what i get when i try to build (/usr/ports is a symlink to 
/usr/pkgsrc).

# cd /usr/ports/print/gv
# make
===> Validating dependencies for gv-3.5.8
=> Checksum OK for gv-3.5.8.tar.gz.
===> Extracting for gv-3.5.8
===> Required installed package ghostscript-[6-9]*: ghostscript-6.01nb1 found
===> Required installed package Xaw3d-1.5: Xaw3d-1.5 found
/bin/mv /usr/pkgsrc/print/gv/work.i386/gv-3.5.8/doc/gv.man /usr/pkgsrc/print/gv/work.i386/gv-3.5.8/source/
===> Patching for gv-3.5.8
===> Applying NetBSD patches for gv-3.5.8
===> Configuring for gv-3.5.8
=> Linking Xaw3d files into /usr/pkgsrc/print/gv/work.i386/.buildlink.
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
gcc: invalid option -- M
gcc: usage 'gcc [ -VqfnkN ] [ -i <istring> ] [ filename ... ]'
=> Removing rpath references to buildlink directories.
===> Building for gv-3.5.8
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/pkgsrc/print/gv/work.i386/.buildlink/include  -c Aaa.c
gcc: invalid option -- O
gcc: usage 'gcc [ -VqfnkN ] [ -i <istring> ] [ filename ... ]'
*** Error code 33

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

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

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

Stop.
make: stopped in /usr/ports/print/gv
# 

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: