Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43618 - scrot 0.6 doesn't compile
Summary: scrot 0.6 doesn't compile
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-03 09:22 UTC by Markus Rothe (RETIRED)
Modified: 2004-06-01 08:23 UTC (History)
2 users (show)

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


Attachments
Patch for scrot-0.6 to make it work with the latest giblib (scrot-patch.diff,4.65 KB, patch)
2004-03-24 12:30 UTC, Eddahbi Karim
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2004-03-03 09:22:14 UTC
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"
Comment 1 Paul Thompson 2004-03-18 13:02:45 UTC
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.
Comment 2 Eddahbi Karim 2004-03-24 12:26:40 UTC
I made a patch, could you test it ?
Comment 3 Eddahbi Karim 2004-03-24 12:30:05 UTC
Created attachment 27949 [details, diff]
Patch for scrot-0.6 to make it work with the latest giblib

Test the software itself too ! =)
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2004-03-24 21:09:49 UTC
well... I don't have the knowledge to test it, but I'll try to google for it this afternoon.
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2004-03-26 12:46:53 UTC
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"??
Comment 6 Eddahbi Karim 2004-03-30 05:47:45 UTC
Hmm TEST-REQUEST would be better, isn't it ?
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2004-03-30 06:26:51 UTC
ok...
Comment 8 Aniruddha Shankar 2004-05-30 23:53:25 UTC
Is there an ebuild I can test out ? 
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2004-05-31 00:47:38 UTC
It is probaly easyer to use the ~x86 version of scrot... I use it since month and hadn't had any problems.

Markus
Comment 10 Markus Rothe (RETIRED) gentoo-dev 2004-05-31 00:48:35 UTC
s/probaly/probably
Comment 11 Aniruddha Shankar 2004-05-31 22:12:22 UTC
Are there any objections to unmasking the current ~x86 version ?
Comment 12 Markus Rothe (RETIRED) gentoo-dev 2004-06-01 08:23:00 UTC
no... ;-)

Markus