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

Bug 141709

Summary: x11-misc/habak-0.2.5 fails with --as-needed
Product: Gentoo Linux Reporter: Daniel Webert <rockoo>
Component: New packagesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    

Description Daniel Webert 2006-07-25 07:58:22 UTC
misc/habak- fails with --as-needed

gcc -mtune=i686 -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -I/usr/X
11R6/include -Wall -c habak.c -o habak.o
habak.c: In function 'main':
habak.c:564: warning: suggest parentheses around assignment used as truth value
gcc -Wl,--as-needed -L/usr/X11R6/lib -lImlib2 -lm -o habak xcore.o random.o haba
xcore.o: In function `initXconnection':
xcore.c:(.text+0x26): undefined reference to `XOpenDisplay'
xcore.c:(.text+0x6b): undefined reference to `imlib_context_set_display'
xcore.c:(.text+0x8f): undefined reference to `imlib_context_set_visual'
xcore.c:(.text+0xd3): undefined reference to `XCreatePixmap'               
habak.c:(.text+0x1187): undefined reference to `imlib_context_set_image'
habak.c:(.text+0x1193): undefined reference to `imlib_image_set_has_alpha'
habak.c:(.text+0x11bd): undefined reference to `imlib_context_set_color'
habak.c:(.text+0x1201): undefined reference to `imlib_image_draw_line'
collect2: ld returned 1 exit status
make[1]: *** [habak] Error 1
make[1]: Leaving directory `/var/tmp/portage/habak-0.2.5/work/habak-0.2.5/src'
make: *** [all] Error 2

!!! ERROR: x11-misc/habak-0.2.5 failed.
Call stack:                                                             , line 1539:   Called dyn_compile, line 939:   Called src_compile
  habak-0.2.5.ebuild, line 17:   Called die
Comment 1 Lukasz Strzygowski (RETIRED) gentoo-dev 2006-07-25 14:04:41 UTC
Fixed version 0.2.5. Thanks!
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-13 23:26:38 UTC
Reopening bug since the "fix" was just a broken workaround.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-13 23:41:53 UTC
Okay I committed the actual fix for this problem, together with a couple more changes.