Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490530 - =media-gfx/splashutils-1.5.4.4-r4 needs freetype2 fixed as it has gained a libpng dependency
Summary: =media-gfx/splashutils-1.5.4.4-r4 needs freetype2 fixed as it has gained a li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal with 1 vote (vote)
Assignee: Asaf Gery
URL: http://git.savannah.gnu.org/cgit/free...
Whiteboard: See URL for patch.
Keywords: PATCH
: 434368 (view as bug list)
Depends on:
Blocks: 378027
  Show dependency tree
 
Reported: 2013-11-06 07:45 UTC by Stoian Ivanov
Modified: 2017-06-17 07:54 UTC (History)
7 users (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 Stoian Ivanov 2013-11-06 07:45:23 UTC
media-gfx/splashutils-1.5.4.4-r4 fails to build fbtruetype.static with some undefined reference to `png_*



Reproducible: Always

Actual Results:  
i686-pc-linux-gnu-gcc -march=i686 -O2 -pipe -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -L/usr/lib -static -o fbtruetype.static -Wl,-O1 -Wl,--as-needed -L/usr/lib fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lz -lbz2  -lm
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x43d8): undefined reference to `png_create_read_struct'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x43ef): undefined reference to `png_create_info_struct'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x4417): undefined reference to `png_set_longjmp_fn'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x4447): undefined reference to `png_destroy_read_struct'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x4482): undefined reference to `png_set_read_fn'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x4496): undefined reference to `png_read_info'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x44e2): undefined reference to `png_get_IHDR'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x4542): undefined reference to `png_get_valid'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x4595): undefined reference to `png_set_filler'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x45a9): undefined reference to `png_read_update_info'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x45f5): undefined reference to `png_get_IHDR'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x462f): undefined reference to `png_set_read_user_transform_fn'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x46ad): undefined reference to `png_read_image'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x46d4): undefined reference to `png_read_end'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x4700): undefined reference to `png_destroy_read_struct'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x472a): undefined reference to `png_set_read_user_transform_fn'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x473b): undefined reference to `png_set_interlace_handling'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x474c): undefined reference to `png_set_gray_to_rgb'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x475d): undefined reference to `png_set_packing'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x476e): undefined reference to `png_set_strip_16'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x477f): undefined reference to `png_set_tRNS_to_alpha'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x4790): undefined reference to `png_set_expand_gray_1_2_4_to_8'
/usr/lib/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x47a1): undefined reference to `png_set_palette_to_rgb'
/usr/lib/libfreetype.a(sfnt.o): In function `error_callback':
(.text+0x487c): undefined reference to `png_get_error_ptr'
/usr/lib/libfreetype.a(sfnt.o): In function `error_callback':
(.text+0x489a): undefined reference to `png_set_longjmp_fn'
/usr/lib/libfreetype.a(sfnt.o): In function `read_data_from_FT_Stream':
(.text+0x9533): undefined reference to `png_get_io_ptr'
/usr/lib/libfreetype.a(sfnt.o): In function `read_data_from_FT_Stream':
(.text+0x957c): undefined reference to `png_get_error_ptr'
/usr/lib/libfreetype.a(sfnt.o): In function `read_data_from_FT_Stream':
(.text+0x9592): undefined reference to `png_error'
collect2: error: ld returned 1 exit status
make[1]: *** [fbtruetype.static] Error 1



# emerge --info '=media-gfx/splashutils-1.5.4.4-r4::gentoo'
Portage 2.2.7 (default/linux/x86/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.11.0-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.11.0-gentoo-i686-Pentium-R-_Dual-Core_CPU_E5300_@_2.60GHz-with-gentoo-2.2
KiB Mem:     2064644 total,    139808 free
KiB Swap:    2996020 total,   2851960 free
Timestamp of tree: Wed, 06 Nov 2013 06:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r4, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo mozilla wuodan my_local_overlay
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mozilla /var/lib/layman/wuodan /usr/local/portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac gdbm gif gmp gpm iconv jpeg kde kipi lcms libnotify mad mmx mng modules mp3 mp4 mpeg mysql ncurses nls nptl nptlonly ogg opengl pam pango pcre pdf phonon plasma png policykit ppds qt qt3support qt4 readline sdl session slang spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="unixd authn_core authz_core socache_shmcb actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB bg" NETBEANS_MODULES="profiler enterprise apisupport harness ide java nb websvccommon ergonomics php javafx" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

# emerge -pv '=media-gfx/splashutils-1.5.4.4-r4::gentoo'

[ebuild     U  ] media-gfx/splashutils-1.5.4.4-r4 [1.5.4.4-r3] USE="gpm mng png truetype -fbcondecor -hardened" 0 kB
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-11-06 14:13:26 UTC
Please attach the complete build log.
Comment 2 Rafał Mużyło 2013-11-06 16:57:48 UTC
Actually, it's most likely for a simple reason - recently freetype gained an optional libpng dependency and so (splashutils - static linking) so adjustments necessary.
Comment 4 Rafał Mużyło 2013-11-06 17:12:01 UTC
(In reply to Rafał Mużyło from comment #3)
> This might be fixed by
> http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/builds/unix/
> freetype2.in?id=6bfa263a97c26d63679d0b4daa95bc98bf9fc30c.

...that is the whole commit, not just this portion of it.
Comment 5 Oleh 2014-03-05 06:58:22 UTC
any updates?
Comment 6 Marcel Sondaar 2015-05-12 16:51:04 UTC
The current status is that the pkg-config settings is still broken, and now lists -lz before -lpng16 which results in failures caused by linking errors from libpng to libz:

$ pkg-config freetype2 --libs --static --print-errors
-lfreetype -lz -lbz2 -lpng16

Which should return something more like
-lfreetype -lpng16 -lz -lbz2
Comment 7 Pacho Ramos gentoo-dev 2016-08-18 08:34:31 UTC
*** Bug 434368 has been marked as a duplicate of this bug. ***
Comment 8 Pacho Ramos gentoo-dev 2017-06-17 07:54:20 UTC
this looks to compile with current stable