when I try to "emerge scrot" I get this error: imlib.c: In function `init_x_and_imlib': imlib.c:41: warning: implicit declaration of function `eprintf' gcc -march=athlon-xp -O3 -pipe -fomit-frame-pointer -L/usr/X11R6/lib -o scrot main.o getopt.o getopt1.o options.o imlib.o -lX11 -L/usr/lib -lgiblib -L/usr/lib -lImlib2 -lfreetype -lz -lm -ldl -lXext -lXext -lX11 -L/usr/X11R6/lib -lm main.o(.text+0x1be): In function `main': /var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:89: undefined reference to `eprintf' main.o(.text+0x1cf):/var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:83: undefined reference to `eprintf' main.o(.text+0x1e4):/var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:72: undefined reference to `eprintf' main.o(.text+0x1f5):/var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:64: undefined reference to `eprintf' main.o(.text+0x22b):/var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:43: undefined reference to `_estrdup' main.o(.text+0x23c):/var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:44: undefined reference to `_estrdup' main.o(.text+0x5f8): In function `scrot_sel_and_grab_image': /var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:266: undefined reference to `eprintf' main.o(.text+0xb37):/var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:184: undefined reference to `eprintf' main.o(.text+0xc60): In function `im_printf': /var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:494: undefined reference to `_estrdup' main.o(.text+0x1054): In function `scrot_grab_shot_multi': /var/tmp/portage/scrot-0.6/work/scrot-0.6/src/main.c:570: undefined reference to `_estrdup' options.o(.text+0xfe): In function `scrot_parse_option_array': /var/tmp/portage/scrot-0.6/work/scrot-0.6/src/options.c:87: undefined reference to `_estrdup' options.o(.text+0x21e):/var/tmp/portage/scrot-0.6/work/scrot-0.6/src/options.c:130: undefined reference to `weprintf' options.o(.text+0x252): In function `name_thumbnail': /var/tmp/portage/scrot-0.6/work/scrot-0.6/src/options.c:147: undefined reference to `_emalloc' imlib.o(.text+0x148): In function `init_x_and_imlib': /var/tmp/portage/scrot-0.6/work/scrot-0.6/src/imlib.c:41: undefined reference to `eprintf' collect2: ld returned 1 exit status make[1]: *** [scrot] Error 1 make[1]: Leaving directory `/var/tmp/portage/scrot-0.6/work/scrot-0.6/src' make: *** [all-recursive] Error 1 !!! ERROR: media-gfx/scrot-0.6 failed. !!! Function src_compile, Line 19, Exitcode 2 !!! (no error message) here is my "emerge info" output: Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3) ================================================================= System uname: 2.6.3 i686 AMD Athlon(TM) XP2400+ Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/backup/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa apm avi berkdb cdr crypt cups dedicated directfb dv dvb dvd emacs encode esd fbcon foomaticdb gdbm gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml imap imlib ipv6 java jpeg libg++ libwww lirc mad maildir mikmod mmx motif mpeg ncurses nls nocardbus nowin nptl oggvorbis opengl oss pam pdflib perl png pnp python qt quicktime readline sdl slang spell sse ssl svga tcpd truetype usb video_cards_radeon videos wxwindows x86 xinerama xml xml2 xmms xosd xv zlib"
0.6 fails in the same way for me-- the references to 'eprintf' and friends probably are supposed to be handled by giblib, but with giblib-1.2.3, the latest default, the exported interface is 'gib_eprintf', etc.Perhaps scrot-0.6 requires an older version of giblib. Regardless, scrot-0.8 builds fine, and seems to work.
I made a patch, could you test it ?
Created attachment 27949 [details, diff] Patch for scrot-0.6 to make it work with the latest giblib Test the software itself too ! =)
well... I don't have the knowledge to test it, but I'll try to google for it this afternoon.
I added the following lines in the ebuild and now it compiles and works: src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/scrot-patch.diff } (and of cause I put the patch in the correct directory) By the way: What should I mark this bug now? Maybe "WORKSFORME"??
Hmm TEST-REQUEST would be better, isn't it ?
ok...
Is there an ebuild I can test out ?
It is probaly easyer to use the ~x86 version of scrot... I use it since month and hadn't had any problems. Markus
s/probaly/probably
Are there any objections to unmasking the current ~x86 version ?
no... ;-) Markus