Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149689 - emerge enlightenment fails, undefined imlib symbols at link stage
Summary: emerge enlightenment fails, undefined imlib symbols at link stage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-01 00:23 UTC by Vassilii Khachaturov
Modified: 2006-10-03 01:52 UTC (History)
1 user (show)

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 Vassilii Khachaturov 2006-10-01 00:23:26 UTC
during an emerge -uDN enlightenment, the following happens:
i686-pc-linux-gnu-gcc  -O3 -march=pentium3 -mtune=pentium3 -pipe -mmmx -mfpmath=
sse,387 -fomit-frame-pointer  -L/usr/lib -o edox  dox.o file.o format.o text.o t
tfont.o -L/usr/lib -lImlib2 -lfreetype -lz -ldl -lm  -lXxf86vm -lXext  -lX11 -lm
 
dox.o: In function `main':
dox.c:(.text+0x32f): undefined reference to `imlib_context_set_display'
dox.c:(.text+0x33c): undefined reference to `imlib_context_set_visual'
dox.c:(.text+0x349): undefined reference to `imlib_context_set_colormap'
dox.c:(.text+0xa9c): undefined reference to `imlib_context_set_drawable'
dox.c:(.text+0xaa8): undefined reference to `imlib_render_pixmaps_for_whole_image'
dox.c:(.text+0xad3): undefined reference to `imlib_free_pixmap_and_mask'
dox.c:(.text+0xafe): undefined reference to `imlib_context_set_drawable'
dox.c:(.text+0xb0a): undefined reference to `imlib_render_pixmaps_for_whole_image'
dox.c:(.text+0xb35): undefined reference to `imlib_free_pixmap_and_mask'
dox.c:(.text+0xb62): undefined reference to `imlib_context_set_drawable'
dox.c:(.text+0xb6e): undefined reference to `imlib_render_pixmaps_for_whole_image'
dox.c:(.text+0xb99): undefined reference to `imlib_free_pixmap_and_mask'
dox.c:(.text+0xbc6): undefined reference to `imlib_context_set_drawable'
dox.c:(.text+0xbd2): undefined reference to `imlib_render_pixmaps_for_whole_image'
dox.c:(.text+0xbfd): undefined reference to `imlib_free_pixmap_and_mask'
dox.c:(.text+0x1693): undefined reference to `imlib_context_set_drawable'
dox.c:(.text+0x16a5): undefined reference to `imlib_render_image_on_drawable'
format.o: In function `RenderPage':
format.c:(.text+0x351): undefined reference to `imlib_context_set_drawable'
format.c:(.text+0x372): undefined reference to `imlib_render_image_on_drawable_at_size'
format.c:(.text+0x44a): undefined reference to `imlib_context_set_drawable'
format.c:(.text+0x46a): undefined reference to `imlib_render_image_on_drawable_at_size'   
ttfont.o: In function `EFont_draw_string':
ttfont.c:(.text+0x1d6): undefined reference to `imlib_context_set_drawable'
ttfont.c:(.text+0x218): undefined reference to `imlib_create_image_from_drawable'         
ttfont.c:(.text+0x300): undefined reference to `imlib_render_image_on_drawable'
collect2: ld returned 1 exit status
make[3]: *** [edox] Error 1
make[3]: Leaving directory `/var/tmp/portage/enlightenment-0.16.8.1/work/e16-0.16.8.1/dox'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/enlightenment-0.16.8.1/work/e16-0.16.8.1/dox'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/enlightenment-0.16.8.1/work/e16-0.16.8.1'    
make: *** [all] Error 2
          
!!! ERROR: x11-wm/enlightenment-0.16.8.1 failed.

This wasn't mitigated by a one-shot (successful) re-emerge -uDN of imlib and imlib2.
I suspect that enlightenment should have required X use flag of imlib, which happens to be disabled at the moment:

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-
r8 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.5
Last Sync: Thu, 28 Sep 2006 06:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]

dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -mtune=pentium3 -pipe -mmmx -mfpmath=sse,387 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/dev.d /etc/env.d /etc/gconf /etc/init.d /etc/rc.d /etc/revdep-rebuild /etc/terminfo /etc/udev /etc/wget"
CXXFLAGS="-O3 -march=pentium3 -mtune=pentium3 -pipe -mmmx -mfpmath=sse,387 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/"
LANG="ru_RU.KOI8-R"
LINGUAS="en he ru"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="x86 a52 aac alsa apm berkdb bitmap-fonts cdparanoia cli crypt cscope cups divx4linux dlloader doc dri dvdread elibc_glibc fortran gdbm gpm imap input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ linguas_en linguas_he linguas_ru mbox mmx ncurses nls nptl nptlonly pam pcre perl png ppds pppd python readline reflection session spl sse ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

imlib and imlib2 use flags:
[ Searching for packages matching imlib2... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                    ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-libs/imlib2-1.2.1.009 ]
 U I
 - - X     : Adds support for X11
 - - bzip2 : Use the bzlib compression library
 + + doc   : Adds extra documentation (API, Javadoc, etc)
 - - gif   : Adds GIF image support
 + + jpeg  : Adds JPEG image support
 + + mmx   : Adds support for optimizations for Pentium MMX and Athlon class processors
 - - mp3   : Add support for reading mp3 files
 + + nls   : Adds Native Language Support (using gettext - GNU locale utilities)
 + + png   : Adds support for libpng (PNG images)
 - - tiff  : Adds support for the tiff image format
 + + zlib  : Adds support for zlib (de)compression
asus3 ~ # equery uses imlib       
[ Searching for packages matching imlib... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                    ]
[                  : Right column (I) - USE flags packages was installed with ]
[ No USE flags found for media-libs/imlib-1.9.14-r3]

(Shouldn't enlightenment demand imlib to have X enabled?)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-01 00:34:16 UTC
It needs USE=png in media-libs/imlib2 as well, otherwise the display is garbled.
Comment 2 SpanKY gentoo-dev 2006-10-01 15:32:31 UTC
seems dumb that you're trying to install X without USE=X

rebuild imlib with USE=X
Comment 3 Vassilii Khachaturov 2006-10-02 02:09:03 UTC
I obviously had done that manually, but it's no less dumb that while building enlightenment (with X) it is me that have to manually go to all the dependencies and specify the X for them in package.use - enlightenment should have requested imlib to have been built with X. (Rationale: X shouldn't be a default global USE flag set in make.conf on systems which e.g. have window managers for being run on remote X servers)
Comment 4 SpanKY gentoo-dev 2006-10-02 05:06:26 UTC
it is dumb, end of story

and i already added the pointless check to the ebuild
Comment 5 Vassilii Khachaturov 2006-10-03 01:52:03 UTC
:) thanks