Subject: Building gv on Darwin 6.6 from pkgsrc
To: None <tech-pkg@netbsd.org>
From: Anders Andersen <aa@computer.org>
List: tech-pkg
Date: 05/30/2003 16:00:22
I've got some problems compiling gv on Darwin 6.6 from pksrc.  First
I got some warnings:

===> Registering installation for Xaw3d-1.5
===> Returning to build of gv-3.5.8nb3
===> Required installed package x11-links>=0.12: x11-links-0.12 found
/bin/mv /Volumes/NetBSD/pkgsrc/print/gv/work/gv-3.5.8/doc/gv.man
/Volumes/NetBSD/pkgsrc/print/gv/work/gv-3.5.8/source/
===> Patching for gv-3.5.8nb3
===> Applying pkgsrc patches for gv-3.5.8nb3
===> Buildlinking for gv-3.5.8nb3
===> Configuring for gv-3.5.8nb3
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
make Makefiles

(... generating make and .h files ...)

make depend
depending in ./doc...
make[1]: Nothing to be done for `depend'.
depending in ./doc/source...
gccmakedep  --   -I/usr/X11R6/include    -D__DARWIN__ -DNO_ALLOCA -DX_LOCALE
-DUSE_MAKEDEPEND --
depending in ./source...
creating gv_user.ad
creating gv_system.ad
creating GV.ad
gccmakedep  --   -I/usr/X11R6/include    -D__DARWIN__ -DNO_ALLOCA -DX_LOCALE
-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    setenv.c getenv.c
Scrollbar.c        
In file included from Aaa.c:49:
Aaa_intern.h:44:27: warning: pasting "/" and "Xlib" does not give a valid
preprocessing token
Aaa_intern.h:44:27: warning: pasting "h" and ">" does not give a valid
preprocessing token


These warnings are repeated many times.  At the end I got this error:

cc -arch ppc -g -O2 -Wall -Wpointer-arith -no-cpp-precomp
-I/usr/X11R6/include    -D__DARWIN__ -DNO_ALLOCA -DX_LOCALE
-DNON_BLOCKING_IO     -DUSE_SIGNAL_HANDLER    -DUSER_DEFAULTS=\"~/.gv\"
-DGV_LIBDIR=\"/usr/X11R6/lib/X11/gv/\" -DGV_CODE  -DUSE_FALLBACK_STYLES
-no-cpp-precomp -I/usr/pkg/include -I/usr/X11R6/include  -c -o setenv.o
setenv.c
setenv.c: In function `setenv':
setenv.c:44: argument `name' doesn't match prototype
/usr/include/stdlib.h:147: prototype declaration
setenv.c:44: argument `value' doesn't match prototype
/usr/include/stdlib.h:147: prototype declaration
setenv.c:53: warning: implicit declaration of function `strlen'
setenv.c:58: warning: suggest parentheses around assignment used as truth
value
setenv.c:79: warning: implicit declaration of function `memcpy'
setenv.c:90: warning: suggest parentheses around assignment used as truth
value
setenv.c: In function `unsetenv':
setenv.c:101: argument `name' doesn't match prototype
/usr/include/stdlib.h:214: prototype declaration
make: *** [setenv.o] Error 1
*** Error code 2

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/print/gv/work/gv-3.5.8
*** Error code 1


Any ideas?

(aa)