Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434368 - media-gfx/splashutils-1.5.4.4-r1: linking to freetype fails due to missing static library zlib (-lz)
Summary: media-gfx/splashutils-1.5.4.4-r1: linking to freetype fails due to missing st...
Status: RESOLVED DUPLICATE of bug 490530
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Asaf Gery
URL:
Whiteboard:
Keywords:
: 440350 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-08 20:35 UTC by Bartek 'Paczesiowa' Cwiklowski
Modified: 2016-08-18 08:34 UTC (History)
3 users (show)

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


Attachments
ermerge --info (emerge_info.txt,2.92 KB, text/plain)
2012-09-08 20:35 UTC, Bartek 'Paczesiowa' Cwiklowski
Details
build log (build.log,18.20 KB, text/plain)
2012-09-08 20:38 UTC, Bartek 'Paczesiowa' Cwiklowski
Details
emerge --info (emerge.info,4.55 KB, text/plain)
2013-04-04 18:14 UTC, adr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bartek 'Paczesiowa' Cwiklowski 2012-09-08 20:35:48 UTC
Created attachment 323226 [details]
ermerge --info

compilation of splashutils fails, because gzip is not added to linker args.

end of build log:

  CREATE  libfbsplash.pc
  CREATE  libfbsplashrender.pc
  LD      fbcondecor_helper
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libfreetype.a(ftgzip.o): In function `ft_gzip_stream_close':
ftgzip.c:(.text+0x1c4): undefined reference to `inflateEnd'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libfreetype.a(ftgzip.o): In function `ft_gzip_file_fill_output':
ftgzip.c:(.text+0x2e1): undefined reference to `inflate'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libfreetype.a(ftgzip.o): In function `ft_gzip_file_io':
ftgzip.c:(.text+0x446): undefined reference to `inflateReset'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/libfreetype.a(ftgzip.o): In function `FT_Stream_OpenGzip':
ftgzip.c:(.text+0x736): undefined reference to `inflateInit2_'
ftgzip.c:(.text+0x7a1): undefined reference to `inflateEnd'
collect2: ld returned 1 exit status

the failing command looks like this:
cd /var/tmp/portage/media-gfx/splashutils-1.5.4.4-r1/work/splashutils-1.5.4.4/src
ld -m elf_i386 -static -o fbsplashctl /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/crt1.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/crtbeginT.o -L/usr/lib/nptl -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3 -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/lib/../lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../.. -O1 fbsplashctl-daemon_cmd.o fbsplashctl-daemon.o fbsplashctl-util.o fbsplashctl-fbsplashctl.o fbsplashctl-fbcon_decor_ctl.o --as-needed ./.libs/libfbsplashrender.a /var/tmp/portage/media-gfx/splashutils-1.5.4.4-r1/work/splashutils-1.5.4.4/src/.libs/libfbsplash.a -ljpeg -lfreetype -lm ./.libs/libfbsplash.a -lpthread -lrt -lbz2 --start-group -lgcc -lgcc_eh -lc --end-group /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/crtend.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib/crtn.o

adding "-lz" after "-lc" makes this go away, but it's probably the wrong solution.

looks like splashutils package tries to use internal copy of gzip, but ebuild deletes the Makefile, and never tries to build it at all.
Comment 1 Bartek 'Paczesiowa' Cwiklowski 2012-09-08 20:38:31 UTC
Created attachment 323228 [details]
build log
Comment 2 bugmail 2012-10-21 09:48:27 UTC
1.5.4.4-r1 works for me, 1.5.4.4 doesn't. The functions failing in 1.5.4.4 are different (bzip2). There's a thread in the forums: http://forums.gentoo.org/viewtopic-t-924864-highlight-splashutils.html
Comment 3 Pacho Ramos gentoo-dev 2013-01-20 10:22:29 UTC
Still valid with -r2?
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2013-01-27 22:14:09 UTC
*** Bug 440350 has been marked as a duplicate of this bug. ***
Comment 5 adr 2013-04-04 13:31:16 UTC
(In reply to comment #3)
> Still valid with -r2?

Yes. I just tried rebuilding splashutils-1.5.4.4-r1 and splashutils-1.5.4.4-r2 without gpm/mng/png, and got the same error.

----
emerge -pvuDN @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ~] media-gfx/splashutils-1.5.4.4-r2 [1.5.4.4-r1] USE="fbcondecor truetype -gpm* -hardened -mng* -png*"
0 kB
------
Comment 6 adr 2013-04-04 18:12:46 UTC
I see no difference in building splashutils-1.5.4.4-r1 or -r2. The combination of USE flags seem to matter:

USE="truetype -fbcondecor -gpm* -hardened -mng* -png*" -- Doesn't build
USE="gpm mng png truetype -fbcondecor -hardened" -- Builds fine
USE="fbcondecor* mng png truetype -gpm* -hardened" -- Builds fine
USE="fbcondecor png truetype -gpm -hardened -mng*" -- Builds fine
USE="fbcondecor truetype -gpm -hardened -mng -png*" -- Doesn't build
USE="fbcondecor -gpm -hardened -mng -png* -truetype*" -- Builds fine
Comment 7 adr 2013-04-04 18:14:18 UTC
Created attachment 344426 [details]
emerge --info
Comment 8 Peter 2016-01-08 19:40:41 UTC
I have the same problem and managed to solve it. The solution is in the /usr/lib/pkgconfig/freetype2.pc libraries order. The line with `Requires.private: zlib` should be removed and order of Libs.private should look like this Libs.private: -lbz2 -lpng16 -lz . This modifications solves the issue.
Comment 9 Myckel Habets 2016-01-08 21:28:50 UTC
Stabilization teams don't belong here.
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2016-01-11 02:09:15 UTC
(In reply to Peter from comment #8)
> I have the same problem and managed to solve it. The solution is in the
> /usr/lib/pkgconfig/freetype2.pc libraries order. The line with
> `Requires.private: zlib` should be removed and order of Libs.private should
> look like this Libs.private: -lbz2 -lpng16 -lz . This modifications solves
> the issue.

his is 'good'. Can you make a patch to effect the change in the code and I can either commit it directly or you can become co-maintainer (proxy) and it sill still be committed and you can continue to proxy maintain.
Comment 11 Andrew Udvare 2016-01-11 02:31:29 UTC
(In reply to Peter from comment #8)
> I have the same problem and managed to solve it. The solution is in the
> /usr/lib/pkgconfig/freetype2.pc libraries order. The line with
> `Requires.private: zlib` should be removed and order of Libs.private should
> look like this Libs.private: -lbz2 -lpng16 -lz . This modifications solves
> the issue.

Although my interest since this bug was created is definitely down and I do not reboot nearly as much, very cool to finally to see a fix.
Comment 12 Pacho Ramos gentoo-dev 2016-08-18 08:34:31 UTC

*** This bug has been marked as a duplicate of bug 490530 ***