Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487646 - =media-gfx/splashutils-1.5.4.4-r3 with =media-libs/freetype-2.5.0.1[png] - /usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png': (.text+0x6104): undefined reference to `png_create_read_struct'
Summary: =media-gfx/splashutils-1.5.4.4-r3 with =media-libs/freetype-2.5.0.1[png] - /u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mark Wright
URL:
Whiteboard:
Keywords:
: 488222 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-11 13:59 UTC by Oschtan
Modified: 2013-11-01 10:17 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,9.52 KB, text/x-log)
2013-10-11 17:49 UTC, Oschtan
Details
patch to freetype-2.5.0.1.ebuild (freetype-2.5.0.1-ebuild-bug-488222-487646.patch,778 bytes, patch)
2013-10-24 22:25 UTC, Mark Wright
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oschtan 2013-10-11 13:59:17 UTC
======= build log ===========
make[1]: Entering directory `/mnt/gentoo/portage/media-gfx/splashutils-1.5.4.4-r3/work/miscsplashutils-0.1.8/fbtruetype'
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=amdfam10 -mtune=amdfam10 -I/usr/include/freetype2   -c -o fbtruetype.o fbtruetype.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=amdfam10 -mtune=amdfam10 -I/usr/include/freetype2   -c -o messages.o messages.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=amdfam10 -mtune=amdfam10 -I/usr/include/freetype2   -c -o console.o console.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=amdfam10 -mtune=amdfam10 -I/usr/include/freetype2   -c -o ttf.o ttf.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=amdfam10 -mtune=amdfam10 -I/usr/include/freetype2   -c -o luxisri.o luxisri.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=amdfam10 -mtune=amdfam10 -I/usr/include/freetype2 -Wl,--hash-style=gnu,-O1 -Wl,--as-needed -L/usr/lib64 -o fbtruetype -Wl,--hash-style=gnu,-O1 -Wl,--as-needed -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype  -lm
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=amdfam10 -mtune=amdfam10 -I/usr/include/freetype2 -Wl,--hash-style=gnu,-O1 -Wl,--as-needed -L/usr/lib64 -static -o fbtruetype.static -Wl,--hash-style=gnu,-O1 -Wl,--as-needed -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lz -lbz2  -lm
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x6104): undefined reference to `png_create_read_struct'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x6116): undefined reference to `png_create_info_struct'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x6138): undefined reference to `png_set_longjmp_fn'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x615d): undefined reference to `png_destroy_read_struct'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x61a0): undefined reference to `png_set_read_fn'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x61af): undefined reference to `png_read_info'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x61ed): undefined reference to `png_get_IHDR'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x6248): undefined reference to `png_get_valid'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x6293): undefined reference to `png_set_filler'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x62a2): undefined reference to `png_read_update_info'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x62e0): undefined reference to `png_get_IHDR'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x6315): undefined reference to `png_set_read_user_transform_fn'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x6382): undefined reference to `png_read_image'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x639e): undefined reference to `png_read_end'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x63ba): undefined reference to `png_destroy_read_struct'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x63df): undefined reference to `png_set_read_user_transform_fn'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x63ee): undefined reference to `png_set_interlace_handling'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x63fd): undefined reference to `png_set_gray_to_rgb'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x640c): undefined reference to `png_set_packing'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x641b): undefined reference to `png_set_strip_16'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x642b): undefined reference to `png_set_tRNS_to_alpha'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x643b): undefined reference to `png_set_expand_gray_1_2_4_to_8'
/usr/lib64/libfreetype.a(sfnt.o): In function `Load_SBit_Png':
(.text+0x644b): undefined reference to `png_set_palette_to_rgb'
/usr/lib64/libfreetype.a(sfnt.o): In function `error_callback':
(.text+0x6505): undefined reference to `png_get_error_ptr'
/usr/lib64/libfreetype.a(sfnt.o): In function `error_callback':
(.text+0x651d): undefined reference to `png_set_longjmp_fn'
/usr/lib64/libfreetype.a(sfnt.o): In function `read_data_from_FT_Stream':
(.text+0x9694): undefined reference to `png_get_io_ptr'
/usr/lib64/libfreetype.a(sfnt.o): In function `read_data_from_FT_Stream':
(.text+0x96cf): undefined reference to `png_get_error_ptr'
/usr/lib64/libfreetype.a(sfnt.o): In function `read_data_from_FT_Stream':
(.text+0x96df): undefined reference to `png_error'
collect2: error: ld returned 1 exit status
make[1]: *** [fbtruetype.static] Error 1
========= vers =========
media-libs/libpng-1.6.6
media-libs/freetype-2.5.0.1
media-gfx/splashutils-1.5.4.4-r3
========================

Reproducible: Always




emerge --info
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.1, glibc-2.17, 3.10.7-gentoo x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-x86_64-AMD_Phenom-tm-_8450_Triple-Core_Processor-with-gentoo-2.2
KiB Mem:     3538924 total,     64348 free
KiB Swap:    2104508 total,   2009740 free
Timestamp of tree: Fri, 11 Oct 2013 10:50:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo overlays-oschtan
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL googleearth google-chrome Oracle-BCLA-JavaSE skype-4.0.0.7-copyright AdobeFlash-11.x Google-TOS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/red5/conf /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/red5-webapps"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10"
DISTDIR="/mnt/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,--hash-style=gnu,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/mnt/gentoo/package"
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="/mnt/gentoo"
PORTDIR="/mnt/gentoo/gentoo-tree"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirrors.kernel.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aacplus aalib acpi action_modeswitch additions alsa amd64 amr ao ape auto-hinter berkdb bzip2 cairo cgi cleartype cli consolekit cracklib crypt ctype curl custom-cflags cxx dbus declarative demos development djvu dos dri dv dvd emerald enca encode exif extras faac fastcgi fbcondecor ffmpeg fontconfig fortran ftp fuse gd gecko gecko-mediaplayer gif git glitz gphoto2 gpm gstreamer gtk3 gudev hddtemp hwdb iconv imlib jabber java jbig jpeg jpeg2k kde kvm lame lastfm latin1 lcms libass libkms libnotify lm_sensors lzma mad mikmod mjpeg mmx mmxext mng mod modules mp3 mp4 mpeg mplayer mudflap multilib multitarget natspec ncurses nls npp nptl nsplugin objc objc++ objc-gc ogg openexr opengl openmp oscar pam pcre pdf perl php plasma png policykit povray prison pulse pulseaudio python python3 qt3support qt4 rar rcc readline realtime reflection rtc sdk sdl sensord session skey slang sndfile source speex spell spl sqlite sqlite3 srt sse sse2 sse3 sse4a ssl startup-notification suid svg symlink syslog system-wide taglib tcpd templates theora thumbnail tidy tiff truetype udev udisks2 unicode unsupported uploadprogress usb vcd vde vdpau video vorbis vpx webdav-neon x264 xattr xcb xcomposite xml xorg xpm xscreensaver xv xvid xvmc yv12 zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" CAMERAS="kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 samsung" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-11 17:44:58 UTC
Please attach the complete build log in the future; the header as well as the configure output can contain useful information, sparing out additional comments.
Comment 2 Oschtan 2013-10-11 17:49:59 UTC
Created attachment 360656 [details]
build.log

very short build.log file
Comment 3 Oschtan 2013-10-11 17:55:39 UTC
(In reply to Tom Wijsman (TomWij) from comment #1)
> Please attach the complete build log in the future; the header as well as
> the configure output can contain useful information, sparing out additional
> comments.

In this case build.log not contain valuable information
Comment 4 Mindaugas N. 2013-10-13 12:03:16 UTC
It need to link with the libpng library as well.
...messages.o console.o ttf.o luxisri.o -lfreetype -lz -lbz2  -lm

The problem comes from:
$ pkg-config freetype2 --libs --static
-lfreetype -lz -lbz2

As we can see, there is no -lpng. The problem seems to be freetype2.pc:
https://savannah.nongnu.org/bugs/index.php?39804
Comment 5 Oschtan 2013-10-15 09:31:06 UTC
Such a bug 486382
Comment 6 Ivan Iraci 2013-10-16 08:35:29 UTC
Same problem here, even with 1.5.4.4-r4.
Comment 7 Pryka 2013-10-16 09:17:08 UTC
CONFIRMED. Same problem on my ~amd64
Comment 8 Andrew Walker 2013-10-16 11:48:40 UTC
Confirmed here as well. Downgrading to freetype-2.4.12 fixed it for me.
Comment 9 Paramonov Valeriy 2013-10-17 14:26:56 UTC
media-gfx/splashutils-1.5.4.4-r4 has the same
I have media-libs/freetype-2.5.0.1
Comment 10 Ben de Groot (RETIRED) gentoo-dev 2013-10-24 12:35:19 UTC
*** Bug 488222 has been marked as a duplicate of this bug. ***
Comment 11 Carter Young 2013-10-24 13:28:07 UTC
(In reply to Andrew Walker from comment #8)
> Confirmed here as well. Downgrading to freetype-2.4.12 fixed it for me.

For those of us with multilib systems with the ~arch emul libraries, downgrading is not an option. See bug 488222 for an attached sed and an upstream patch that doesn't quite work.
Comment 12 Mark Wright gentoo-dev 2013-10-24 22:25:10 UTC
Created attachment 361846 [details, diff]
patch to freetype-2.5.0.1.ebuild

(In reply to Mindaugas Nefas from comment #4)
> It need to link with the libpng library as well.
> ...messages.o console.o ttf.o luxisri.o -lfreetype -lz -lbz2  -lm
> 
> The problem comes from:
> $ pkg-config freetype2 --libs --static
> -lfreetype -lz -lbz2
> 
> As we can see, there is no -lpng. The problem seems to be freetype2.pc:
> https://savannah.nongnu.org/bugs/index.php?39804

Thanks, I first tried applying the upstream patch and pushd builds/unix; autoreconf; popd - the build then failed with compiler errors.

The attached sed in the ebuild changes the freetype2.pc file in a similar way to the upstream patch.
Comment 13 Nikolaj Šujskij 2013-10-26 07:45:25 UTC
Rebuilding media-libs/freetype-2.5.0.1 didn't fix media-gfx/splashutils-1.5.4.4-r4 build failure for me.
Comment 14 Heiko Baums 2013-10-29 14:21:01 UTC
(In reply to Nikolaj Sjujskij from comment #13)
> Rebuilding media-libs/freetype-2.5.0.1 didn't fix
> media-gfx/splashutils-1.5.4.4-r4 build failure for me.

For me it worked. Maybe you're mirror wasn't up-to-date when you tried it.

But freetype-2.5.0.1 should be increased to freetype-2.5.0.1-r1, so that everybody gets the fixed version automatically with the world update.
Comment 15 Nikolaj Šujskij 2013-10-30 09:21:55 UTC
(In reply to Heiko Baums from comment #14)
> (In reply to Nikolaj Sjujskij from comment #13)
> > Rebuilding media-libs/freetype-2.5.0.1 didn't fix
> > media-gfx/splashutils-1.5.4.4-r4 build failure for me.
> 
> For me it worked. Maybe you're mirror wasn't up-to-date when you tried it.
 I had checked ${PORTDIR}/media-libs/freetype/Changelog for corresponding entry before rebuilding. But I'll try once more.
Comment 16 Nikolaj Šujskij 2013-10-31 18:41:29 UTC
Building fails for dev-util/pkgconf-0.9.3
After I switched to dev-util/pkgconfig, splashutils have been built successfully.