Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19567 - emerge xloadimage src_compile error
Summary: emerge xloadimage src_compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-18 13:12 UTC by Bas van Dijk
Modified: 2003-04-18 13:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bas van Dijk 2003-04-18 13:12:37 UTC
---------------------------------------------------------- 
emerge xloadimage 
... 
gcc -o xloadimage bright.o clip.o cmuwmraster.o compress.o config.o dither.o faces.o 
fbm.o fill.o gif.o halftone.o imagetypes.o img.o jpeg.o mac.o mc_tables.o mcidas.o 
merge.o misc.o new.o niff.o options.o pbm.o pcx.o pdsuncomp.o reduce.o rle.o rlelib.o 
root.o rotate.o send.o smooth.o sunraster.o tiff.o undither.o value.o vff.o vicar.o 
window.o xbitmap.o xloadimage.o xpixmap.o xwd.o zio.o zoom.o png.o build.o  
-L/usr/X11R6/lib -lX11  -ltiff -ljpeg -lpng -lz -lm 
img.o(.text+0x2d9): In function `xread_img': 
: undefined reference to `errno' 
collect2: ld returned 1 exit status 
make: *** [xloadimage] Error 1 
make: *** Waiting for unfinished jobs.... 
 
!!! ERROR: x11-misc/xloadimage-4.1 failed. 
!!! Function src_compile, Line 319, Exitcode 2 
!!! emake failed 
---------------------------------------------------------- 
 
In "xloadimage.c " in function: "xread_img" the variable: "errno" is used but not 
declared. 
 
To fix the problem just declare  "int errno=0" somewhere as a global variable. 
 
I think it's best to send this bug upstream to the xloadimage team...
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-04-18 13:17:54 UTC
the -r1 has had the fix forever.  moved that to stable x86.