Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 590034

Summary: app-office/magicpoint-1.13a_p20121015 : imlib_loader.c:(.text+<snip>): undefined reference to `imlib_context_set_display'
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Peter Stuge <peter>
Status: RESOLVED FIXED    
Severity: normal CC: peter, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    
Attachments: app-office:magicpoint-1.13a_p20121015:20160729-190810.log
emerge-history.txt
environment
imlib? DEPEND media-libs/imlib2[X]
-r1.ebuild with fixed media-libs/imlib2[X] dependency

Description Toralf Förster gentoo-dev 2016-07-29 19:49:23 UTC
x86_64-pc-linux-gnu-gcc -o mgp -march=native -O2 -pipe     -Wl,-O1 -Wl,--as-needed -L/usr/lib64   mgp.o draw.o parse.o plist.o globals.o x11.o font.o background.o 	scanner.o grammar.o postscript.o tfont.o embed.o unimap.o mng.o m17n.o strlcpy.o strlcat.o     -L./image -lmgpimage -lm  -lpng16 -L/usr/lib -lpng -L/usr/lib -lmng -L/usr/lib/X11 -lImlib2  -lXext -lX11 
./image/libmgpimage.a(imlib_loader.o): In function `imLoad':
imlib_loader.c:(.text+0x3e): undefined reference to `imlib_context_set_display'


$ cat emerge-info.txt
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-13.0-no-multilib-unstable_20160712-150814) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

  make.conf:
USE="pax_kernel xtpax -cdinstall -oci8 -bindist avcodec bzip2 -cdda -custom-optimization dvb -dvd -extra freetds ftp gd gles gles2 gstreamer gtk3 ibus imlib -introspection isag kvm ldap libkms -minimal mysqli ncurses -nss obj pam -postscript pwquality rdoc sdl semantic-desktop spice sslv2 svg system-icu system-libevent system-llvm -system-sqlite tk -truetype -udisks uxa vim vlc vpx wxwidgets -xa -xcb xetex -xinetd xscreensaver xslt"

  package specific USE flags:
mail-mta/ssmtp    ssl
net-misc/wget     ssl
app-editors/emacs -dbus -svg -ssl -gtk -gtk3
net-misc/iputils -caps -filecaps

  -----------------------------------------------------------------

 [1] x86_64-pc-linux-gnu-4.9.3
 [2] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
  [5]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby20 (with Rubygems) *
  [2]   ruby21 (with Rubygems)
  -----------------------------------------------------------------
Comment 1 Toralf Förster gentoo-dev 2016-07-29 19:49:30 UTC
Created attachment 441956 [details]
app-office:magicpoint-1.13a_p20121015:20160729-190810.log
Comment 2 Toralf Förster gentoo-dev 2016-07-29 19:49:33 UTC
Created attachment 441958 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2016-07-29 19:49:36 UTC
Created attachment 441960 [details]
environment
Comment 4 Peter Stuge 2016-08-01 22:04:56 UTC
(In reply to Toralf Förster from comment #0)
> x86_64-pc-linux-gnu-gcc -o mgp -march=native -O2 -pipe     -Wl,-O1
> -Wl,--as-needed -L/usr/lib64   mgp.o draw.o parse.o plist.o globals.o x11.o
> font.o background.o 	scanner.o grammar.o postscript.o tfont.o embed.o
> unimap.o mng.o m17n.o strlcpy.o strlcat.o     -L./image -lmgpimage -lm 
> -lpng16 -L/usr/lib -lpng -L/usr/lib -lmng -L/usr/lib/X11 -lImlib2  -lXext
> -lX11 
> ./image/libmgpimage.a(imlib_loader.o): In function `imLoad':
> imlib_loader.c:(.text+0x3e): undefined reference to
> `imlib_context_set_display'

Thanks a lot for the report.

Can you please verify that media-libs/imlib2 does *not* have USE="X" set?

If not set, which I suspect, can you please test that magicpoint builds correctly after you rebuild media-libs/imlib2 *with* USE="X" set?

Thanks!
Comment 5 Peter Stuge 2016-08-01 22:16:57 UTC
Created attachment 442218 [details, diff]
imlib? DEPEND media-libs/imlib2[X]
Comment 6 Toralf Förster gentoo-dev 2016-08-02 16:35:19 UTC
(In reply to Peter Stuge from comment #4)
>Can you please verify that media-libs/imlib2 does *not* have USE="X" set?
confirmed - and builds fine with imlib2 being compiled with X
Comment 7 Peter Stuge 2016-08-03 02:11:43 UTC
Created attachment 442344 [details]
-r1.ebuild with fixed media-libs/imlib2[X] dependency
Comment 8 Peter Stuge 2016-08-03 02:24:34 UTC
(In reply to Peter Stuge from comment #7)
> Created attachment 442344 [details]
> -r1.ebuild with fixed media-libs/imlib2[X] dependency

Revbump is needed because the changed dep is also in RDEPEND,
meaning that if someone has magicpoint installed and later
changes imlib2 to USE="-X" they would then hit the bug.

Please commit. Thanks a lot!
Comment 9 Mike Gilbert gentoo-dev 2016-08-03 02:29:39 UTC
commit f509266f4cd94757b115bbaa36a76a6477a4e3c4
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Tue Aug 2 22:27:18 2016 -0400

    app-office/magicpoint: depend on media-libs/imlib2[X]
    
    Patch by Peter Stuge.
    
    Bug: https://bugs.gentoo.org/590034
    
    Package-Manager: portage-2.3.0_p16

 ...oint-1.13a_p20121015.ebuild => magicpoint-1.13a_p20121015-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)