Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113407 - media-gfx/xsvg-0.2.0: cannot compile xsvg.c: In function `find_argb_visual'
Summary: media-gfx/xsvg-0.2.0: cannot compile xsvg.c: In function `find_argb_visual'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 15:31 UTC by Martin Mokrejš
Modified: 2007-04-25 18:53 UTC (History)
1 user (show)

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


Attachments
xsvg-0.2.0-cairo.diff (xsvg-0.2.0-cairo.diff,1007 bytes, patch)
2005-11-26 15:38 UTC, Marcelo Goes (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2005-11-23 15:31:11 UTC
make[2]: Entering directory `/var/tmp/portage/xsvg-0.2.0/work/xsvg-0.2.0/src'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/cairo -I/usr/include/libxml2  
-Wall -Wpointer-arith -Wstrict-prototypes       -Wmissing-prototypes
-Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -O2
-march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -MT args.o -MD -MP
-MF ".deps/args.Tpo" -c -o args.o args.c; \
then mv -f ".deps/args.Tpo" ".deps/args.Po"; else rm -f ".deps/args.Tpo"; exit 1; fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/cairo -I/usr/include/libxml2  
-Wall -Wpointer-arith -Wstrict-prototypes       -Wmissing-prototypes
-Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -O2
-march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -MT xsvg.o -MD -MP
-MF ".deps/xsvg.Tpo" -c -o xsvg.o xsvg.c; \
then mv -f ".deps/xsvg.Tpo" ".deps/xsvg.Po"; else rm -f ".deps/xsvg.Tpo"; exit 1; fi
xsvg.c: In function `find_argb_visual':
xsvg.c:239: error: `XVisualInfo' undeclared (first use in this function)
xsvg.c:239: error: (Each undeclared identifier is reported only once
xsvg.c:239: error: for each function it appears in.)
xsvg.c:239: error: `xvi' undeclared (first use in this function)
xsvg.c:240: error: parse error before "template"
xsvg.c:243: error: `XRenderPictFormat' undeclared (first use in this function)
xsvg.c:243: error: `format' undeclared (first use in this function)
xsvg.c:246: error: `template' undeclared (first use in this function)
xsvg.c:249: warning: implicit declaration of function `XGetVisualInfo'
xsvg.c:249: warning: nested extern declaration of `XGetVisualInfo'
xsvg.c:250: error: `VisualScreenMask' undeclared (first use in this function)
xsvg.c:251: error: `VisualDepthMask' undeclared (first use in this function)
xsvg.c:252: error: `VisualClassMask' undeclared (first use in this function)
xsvg.c:260: warning: implicit declaration of function `XRenderFindVisualFormat'
xsvg.c:260: warning: nested extern declaration of `XRenderFindVisualFormat'
xsvg.c:261: error: `PictTypeDirect' undeclared (first use in this function)
xsvg.c: In function `win_name':
xsvg.c:314: error: `XWMHints' undeclared (first use in this function)
xsvg.c:314: error: `wmhints' undeclared (first use in this function)
xsvg.c:315: error: `XSizeHints' undeclared (first use in this function)
xsvg.c:315: error: `normalhints' undeclared (first use in this function)
xsvg.c:316: error: `XClassHint' undeclared (first use in this function)
xsvg.c:316: error: `classhint' undeclared (first use in this function)
xsvg.c:330: warning: implicit declaration of function `XAllocSizeHints'
xsvg.c:330: warning: nested extern declaration of `XAllocSizeHints'
xsvg.c:337: warning: implicit declaration of function `XAllocClassHint'
xsvg.c:337: warning: nested extern declaration of `XAllocClassHint'
xsvg.c:341: warning: implicit declaration of function `XAllocWMHints'
xsvg.c:341: warning: nested extern declaration of `XAllocWMHints'
xsvg.c:342: error: `InputHint' undeclared (first use in this function)
xsvg.c:345: warning: implicit declaration of function `Xutf8SetWMProperties'
xsvg.c:345: warning: nested extern declaration of `Xutf8SetWMProperties'
xsvg.c: In function `win_full':
xsvg.c:357: error: `XSizeHints' undeclared (first use in this function)
xsvg.c:357: error: `hints' undeclared (first use in this function)
xsvg.c:357: warning: nested extern declaration of `XAllocSizeHints'
xsvg.c:361: error: `PSize' undeclared (first use in this function)
xsvg.c:361: error: `PWinGravity' undeclared (first use in this function)
xsvg.c:369: error: `PPosition' undeclared (first use in this function)
xsvg.c:403: warning: implicit declaration of function `XSetWMNormalHints'
xsvg.c:403: warning: nested extern declaration of `XSetWMNormalHints'
xsvg.c: In function `win_init':
xsvg.c:548: error: too few arguments to function `cairo_create'
xsvg.c:551: warning: implicit declaration of function
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
xsvg.c:551: warning: nested extern declaration of
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
xsvg.c:554: warning: implicit declaration of function
`cairo_set_rgb_color_REPLACED_BY_cairo_set_source_rgb'
xsvg.c:554: warning: nested extern declaration of
`cairo_set_rgb_color_REPLACED_BY_cairo_set_source_rgb'
xsvg.c: In function `win_grow_pixmap':
xsvg.c:626: warning: nested extern declaration of
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
make[2]: *** [xsvg.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/xsvg-0.2.0/work/xsvg-0.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xsvg-0.2.0/work/xsvg-0.2.0'
make: *** [all] Error 2

!!! ERROR: media-gfx/xsvg-0.2.0 failed.

# emerge info
Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14
i686)
=================================================================
System uname: 2.6.14 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.12.0_pre10
ccache version 2.4 [disabled]
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/spool/PBS
/var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 FFmpeg X Xaw3d aalib acl acpi alsa apache2 apm arts ati audiofile avi
bidi bitmap-fonts bonobo bzip2 caca cdparanoia cdr crypt cscope cups curl dba
dga directfb divx divx4 divx4linux divx5 divx5linux dvb dvd dvdr dvdread eds
emacs emacs-w3 emboss encode esd ethereal evo exif expat f77 faad faad2 fam fame
fbcon ffmpeg flac flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif glut
gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc idn ifc imagemagick imlib imlib2
innodb ipv6 ithreads java jpeg junit lcms leim libg++ libwww live lzo mad mcal
mesa mhash mikmod ming mmx mmx2 mng motif mozilla mp3 mpeg mule mysql ncurses
network nls nptl ogg oggvorbis opengl oss pam pcre pda pdflib perl plotutils
plugin png ppds pthread pthreads python qt qtx quicktime readline recode rtc
samba scanner sdl slang slp spell sse sse2 ssl svg svga tcltk tcpd tetex theora
thread threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l
v4l2 vorbis win32 winvidix wmf xine xml xml2 xmms xosd xv xvid xvmc zeo zlib
video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Marcelo Goes (RETIRED) gentoo-dev 2005-11-26 15:38:12 UTC
Created attachment 73653 [details, diff]
xsvg-0.2.0-cairo.diff

I still get a ld problem, but maybe this helps...
Comment 2 Martin Mokrejš 2005-11-27 11:16:13 UTC
Yes, with the patch I get the following ld error:


if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/cairo -I/usr/include/libxml2  
-Wall -Wpointer-arith -Wstrict-prototypes       -Wmissing-prototypes
-Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -O2
-march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -MT xsvg.o -MD -MP
-MF ".deps/xsvg.Tpo" -c -o xsvg.o xsvg.c; \
then mv -f ".deps/xsvg.Tpo" ".deps/xsvg.Po"; else rm -f ".deps/xsvg.Tpo"; exit 1; fi
xsvg.c: In function `win_init':
xsvg.c:553: warning: implicit declaration of function
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
xsvg.c:553: warning: nested extern declaration of
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
xsvg.c:553: warning: assignment makes pointer from integer without a cast
xsvg.c: In function `win_grow_pixmap':
xsvg.c:631: warning: nested extern declaration of
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
i686-pc-linux-gnu-gcc  -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/include/cairo -I/usr/include/libxml2   -Wall -Wpointer-arith
-Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations    
-Wnested-externs -fno-strict-aliasing -O2 -march=pentium4 -mmmx -msse -msse2
-fomit-frame-pointer -pipe   -o xsvg  -lsvg-cairo -lsvg -lpng -ljpeg -lcairo
-lxml2 -lz -lm -lXcursor -lXrender -lX11 -lXext   args.o xsvg.o  
xsvg.o: In function `win_grow_pixmap':
xsvg.c:(.text+0x537): undefined reference to
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
xsvg.o: In function `main':
xsvg.c:(.text+0x8bc): undefined reference to
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
xsvg.c:(.text+0x8fb): undefined reference to
`cairo_set_target_surface_DEPRECATED_BY_cairo_create'
collect2: ld returned 1 exit status
make[2]: *** [xsvg] Error 1
make[2]: Leaving directory `/var/tmp/portage/xsvg-0.2.0/work/xsvg-0.2.0/src'
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-12 19:54:34 UTC
Try w/ 0.2.1
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2007-03-12 21:00:13 UTC
0.20 is not in tree anymore.
Comment 5 Martin Mokrejš 2007-04-25 18:53:48 UTC
Seems fixed in 0.2.1.