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

Bug 556954

Summary: sys-power/suspend-1.0_p20150622 with USE="fbsplash": fbsplash_funcs.c:(.text+0x19): undefined reference to `fbsplash_lib_init'
Product: Gentoo Linux Reporter: Matt <matt.palermo>
Component: Current packagesAssignee: Andrew Savchenko <bircoph>
Status: RESOLVED FIXED    
Severity: normal CC: bircoph, xmw
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 408283, 557126    
Bug Blocks: 442106, 442826, 531372    
Attachments: sys-power/suspend-1.0_p20150622 build fail
suspend-1.0_p20150622-pkgconfig-static.patch

Description Matt 2015-08-07 13:28:52 UTC
Created attachment 408478 [details]
sys-power/suspend-1.0_p20150622 build fail

sys-power/suspend-1.0_p20150622 fails to build.

~~~~~~~~~

/usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../lib/libfbsplashrender.a(libfbsplashrender_la-image.o):(.text+0xd92): more undefined references to `config' follow
collect2: error: ld returned 1 exit status
Makefile:819: recipe for target 'resume' failed
make[2]: *** [resume] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: libsuspend-common.a(fbsplash_funcs.o): undefined reference to symbol 'fbsplash_is_silent'
/lib/libfbsplash.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:827: recipe for target 's2disk' failed

~~~~~~~~~

Attaching full build log.
Comment 1 Andrew Savchenko gentoo-dev 2015-08-07 16:45:14 UTC
This bug concerns only fbsplash builds, I'll look at it.
Comment 2 Andrew Savchenko gentoo-dev 2015-08-09 22:56:48 UTC
Created attachment 408694 [details, diff]
suspend-1.0_p20150622-pkgconfig-static.patch

Use pkg-config --static for libsplashrender queries.
Comment 3 Andrew Savchenko gentoo-dev 2015-08-09 23:05:19 UTC
This issue is a combination of multiple bugs:

1. media-gfx/splashutils provides incomplete list of libraries for static linking. See bug 408283.
	
2. media-gfx/splashutils contains bogus entry in the list of static libraries. See bug 557126.

3. suspend asks splashutils for a list of dynamic libs instead of static. This is fixed in the patch above.

In order to get suspend build with splashutils one needs to apply all patches referenced above, update splashutils and then update/rebuild suspend.

Alternatively one may fetch updated splashutils and suspend from my dev overlay (or add it via layman):
https://gitweb.gentoo.org/dev/bircoph.git

After bugs 408283, 557126 will get fixed, I'll push updated suspend to the tree as well (splashutils is maintained by another person, so I can't fix it myself right now).
Comment 4 Conrad Kostecki gentoo-dev 2015-08-12 14:52:32 UTC
(In reply to Andrew Savchenko from comment #3)
> Alternatively one may fetch updated splashutils and suspend from my dev
> overlay (or add it via layman):
> https://gitweb.gentoo.org/dev/bircoph.git

Thanks!
Using your splashutils-eBuild and the patch for suspend makes suspend compiling again :)
Comment 5 Andrew Savchenko gentoo-dev 2015-08-13 08:46:20 UTC
In git.
Comment 6 Matt 2015-08-13 13:26:45 UTC
Sorry for the delay....

I sync'ed this morning and got the 

media-gfx/splashutils-1.5.4.4-r6
sys-power/suspend-1.0_p20150810

versions of suspend and fbsplash.  Everything compiles / installs perfect now.

THANK YOU!


M.