Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 35260

Summary: media-gfx/xv-3.10a-r3 fails to emerge, redefinition of sys_errlist, after fix fails on libX11
Product: Gentoo Linux Reporter: Josh Grebe (RETIRED) <squash>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Josh Grebe (RETIRED) gentoo-dev 2003-12-07 07:50:38 UTC
cc -mcpu=i586 -O3 -pipe  -DDOJPEG -Ijpeg -DDOTIFF -Itiff -DDOPDS         -c 
xv.c 
In file included from xv.c:11: 
xv.h:119: conflicting types for `sys_errlist' 
/usr/include/bits/sys_errlist.h:28: previous declaration of `sys_errlist' 
make: *** [xv.o] Error 1 
 
After commenting out the define of sys_errlist, the compile finishes up to 
linking: 
cc -o xv -mcpu=i586 -O3 -pipe  -DDOJPEG -Ijpeg -DDOTIFF -Itiff -DDOPDS         
xv.o xvevent.o xvroot 
.o xvmisc.o xvimage.o xvcolor.o xvsmooth.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 xvsunras.o xvjpeg.o 
xvps.o xvpopup.o xvdflt.o xvtiff.o xvtiffwr.o xvpds.o xvrle.o xviris.o 
xvgrab.o vprintf.o xvbrowse.o 
 xvtext.o xvpcx.o xviff.o xvtarga.o xvxpm.o xvcut.o xvxwd.o xvfits.o -lX11 
jpeg/libjpeg.a tiff/libti 
ff.a -lm 
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/../../../../i586-pc-linux-gnu/bin/ld: 
cannot find -lX11 
collect2: ld returned 1 exit status 
 
After adding -L/usr/X11R6/lib to LIBS in the Makefile, it completes 
sucessfully. 
 
I am able to control-z the emerge process right before it starts compiling, 
make those two changes, then resume the process, and it completes successfully 
(with the following warnings:) 
 
xv.o(.text+0x7c3c): In function `UncompressFile': 
: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead 
xvmisc.o(.text+0x207c): In function `xv_getwd': 
: warning: the `getwd' function is dangerous and should not be used. 
xv.o(.text+0x7bbc): In function `UncompressFile': 
: warning: the use of `mktemp' is dangerous, better use `mkstemp' 
 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Josh Grebe (RETIRED) gentoo-dev 2003-12-30 21:05:44 UTC
This appears to work now...