Subject: graphics/xv fails to build on macppc
To: None <pkgsrc-users@netbsd.org>
From: Loic Hoguin <essen@dev-extend.eu>
List: pkgsrc-users
Date: 03/23/2007 17:51:28
Hello,

I tried to build graphics/xv today on my iBook running Netbsd/macppc
current (4.99.16) and it fails with the following error:

cc -o xv -O2 -fno-strict-aliasing -ansi -Dasm=__asm -fsigned-char      
-L/usr/pkg
/lib -L/usr/X11R6/lib  xv.o xvevent.o xvroot.o xvmisc.o xvimage.o  
xvcolor.o xvsm
ooth.o  xv24to8.o xvgif.o xvpm.o xvinfo.o xvctrl.o xvscrl.o xvalg.o      
xvgifwr.
o xvdir.o xvbutt.o xvpbm.o xvxbm.o xvgam.o xvbmp.o      xvdial.o xvgraf.o  
xvsunr
as.o xvjpeg.o xvps.o xvpopup.o xvdflt.o         xvtiff.o xvtiffwr.o  
xvpds.o xvrl
e.o xviris.o xvgrab.o vprintf.o         xvbrowse.o xvtext.o xvpcx.o  
xviff.o xvta
rga.o xvxpm.o xvcut.o   xvxwd.o xvfits.o xvpng.o xvzx.o xvwbmp.o  
xvpcd.o       x
vmag.o xvpic.o xvmaki.o xvpi.o xvpic2.o xvvd.o xvmgcsfx.o       xvml.o  
-lXext -l
X11 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib  
-L/usr/X11R6/lib
  -Wl,-R/usr/X11R6/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -ljpeg  
-L/usr/pkg/lib -l
tiff -ljpeg -lz -L/usr/pkg/lib -lpng -lz  -L/usr/X11R6/lib  -lm    
-Wl,-rpath,/us
r/pkg/lib:/usr/X11R6/lib
xvmisc.o: In function `xv_getwd':
xvmisc.c:(.text+0x47c): warning: warning: getwd() possibly used unsafely,  
consid
er using getcwd()
xvpcd.o: In function `gethufftable':
xvpcd.c:(.text+0xce8): undefined reference to `alloca'

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/graphics/xv/work/.gcc/bin/gcc -o xv -O2 -fno-strict-aliasing  
-ansi -
Dasm=__asm -fsigned-char -L/usr/pkgsrc/graphics/xv/work/.buildlink/lib  
-L/usr/pk
gsrc/graphics/xv/work/.x11-buildlink/lib xv.o xvevent.o xvroot.o xvmisc.o  
xvimag
e.o xvcolor.o xvsmooth.o xv24to8.o xvgif.o xvpm.o xvinfo.o xvctrl.o  
xvscrl.o xva
lg.o xvgifwr.o xvdir.o xvbutt.o xvpbm.o xvxbm.o xvgam.o xvbmp.o xvdial.o  
xvgraf.
o xvsunras.o xvjpeg.o xvps.o xvpopup.o xvdflt.o xvtiff.o xvtiffwr.o  
xvpds.o xvrl
e.o xviris.o xvgrab.o vprintf.o xvbrowse.o xvtext.o xvpcx.o xviff.o  
xvtarga.o xv
xpm.o xvcut.o xvxwd.o xvfits.o xvpng.o xvzx.o xvwbmp.o xvpcd.o xvmag.o  
xvpic.o x
vmaki.o xvpi.o xvpic2.o xvvd.o xvmgcsfx.o xvml.o -Wl,-R/usr/pkg/lib  
-Wl,-R/usr/X
11R6/lib -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/X11R6/lib  
-I/usr/pkgsrc/graphic
s/xv/work/.buildlink/include  -lXext -lX11 -ljpeg -ltiff -ljpeg -lz -lpng  
-lz -l
m
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/xv/work/xv-3.10a
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/xv
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/xv

Regards,

-- 
Loïc Hoguin
Dev:Extend