Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46851 - Gimp 2.0.0 fails to build on screenshot plugin because -lX11 linking failed.
Summary: Gimp 2.0.0 fails to build on screenshot plugin because -lX11 linking failed.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-05 06:45 UTC by Marcin Wojtczuk
Modified: 2004-06-26 02:04 UTC (History)
0 users

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


Attachments
Fixes linking to -lX11 in screenshot plugin (gimp-2.0.0-screenshotX11.patch,385 bytes, patch)
2004-04-05 06:46 UTC, Marcin Wojtczuk
Details | Diff
Adds gimp-2.0.0-screenshotX11.patch to gimp-2.0.0.ebuild (gimp-2.0.0.ebuild.patch,643 bytes, patch)
2004-04-05 06:49 UTC, Marcin Wojtczuk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Wojtczuk 2004-04-05 06:45:23 UTC
Authors of gimp recognize need to link this plugin explicitly with -lX11. This is done via special variable LIBSCREENSHOT that should contain both -L/usr/X11R6/lib and -lX11. It doesn't for unknown reason. The fix is to explicitly set LIBSCREENSHOT variable to '-L/usr/X11R6/lib -lX11' instead of $X_LIBS in configure.in and recreate configure. Patches will follow.

Reproducible: Always
Steps to Reproduce:
1. ebuild gimp



Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r30, 2.4.25)
=================================================================
System uname: 2.4.25 i686 AMD Athlon(tm) 
Gentoo Base System version 1.4.2.8
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
(...)
USE="3dnow alsa apm avi berkdb bonobo cdr crypt cups dga foomaticdb gd gdbm ggi
gif gpm guile imlib java jpeg justify kde libg++ libwww mad mbox mikmod mmx mpeg
ncurses oggvorbis opengl oss pdflib png python qt quicktime readline sdl slang
spell sse ssl svga tcltk tcpd tetex truetype x86 xmms xv zlib"
Comment 1 Marcin Wojtczuk 2004-04-05 06:46:24 UTC
Created attachment 28732 [details, diff]
Fixes linking to -lX11 in screenshot plugin
Comment 2 Marcin Wojtczuk 2004-04-05 06:49:27 UTC
Created attachment 28733 [details, diff]
Adds gimp-2.0.0-screenshotX11.patch to gimp-2.0.0.ebuild

Adds gimp-2.0.0-screenshotX11.patch to .ebuild and and recreates configure
script via autoconf line in src_compile().
Comment 3 foser (RETIRED) gentoo-dev 2004-04-06 02:57:38 UTC
i'm not convinved this is a problem, works just fine here. You only need to have X in your USE flags, which you don't have. I suppose it doesn't break the building process ?

ps. and don't just skip parts of emerge info, we want it all in every report. You don't have to filter it for us on what you deem important.
Comment 4 Marcin Wojtczuk 2004-06-23 07:25:30 UTC
Having '+X' in USE is unnacteptable solution. I don't want hundrets of gui lines of code build (like aumix) just to make gimp ebuild work. Force this via internal methods instead of fail-prone user side. Users always have crazy ideas and gentoo should work properly in as much of those situations as possible. Making users add X to USE just because "everyone" has this is _not_ a good idea.
Comment 5 foser (RETIRED) gentoo-dev 2004-06-23 07:58:42 UTC
It's an X specific extension, so it makes perfect sense as part of the X flag. I don't see the problem there.
Comment 6 Marcin Wojtczuk 2004-06-26 02:04:42 UTC
You are completly right. This bug is invalid.