Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349662 - sys-apps/tuxonice-userui-1.0 fails to compile, cannot find -lpng collect2: ld returned 1 exit status
Summary: sys-apps/tuxonice-userui-1.0 fails to compile, cannot find -lpng collect2: ld...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-25 03:39 UTC by Robert Cabrera
Modified: 2010-12-26 09:29 UTC (History)
2 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 Robert Cabrera 2010-12-25 03:39:40 UTC
sys-apps/tuxonice-userui-1.0 fails to compile, crashes on my ~x86 laptop with the following error:
image.c: In function ‘is_png’:
image.c:229:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
render.c: In function ‘get_program_output’:
render.c:260:13: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
render.c:271:6: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make: *** [tuxoniceui_fbsplash] Error 1
emake failed
 * ERROR: sys-apps/tuxonice-userui-1.0 failed:
 *   emake tuxoniceui_fbsplash failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2359:  Called die
 * The specific snippet of code:
 *           emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" tuxoniceui_fbsplash || die "emake tuxoniceui_fbsplash failed";

Reproducible: Always

Steps to Reproduce:
1.emerge -1av tuxonice-userui
2.build fails
3.

Actual Results:  
Build crashes with the above error.

Expected Results:  
Successful compilation and installation.

My emerge --info
Portage 2.2.0_alpha10 (default/linux/x86/10.0/desktop/kde, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-zen1 i686)
=================================================================
System uname: Linux-2.6.36-zen1-i686-Intel-R-_Pentium-R-_M_processor_2.26GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 24 Dec 2010 07:15:02 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1, 3.1.3
dev-util/cmake:      2.8.3
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/config/kdm /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j1 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="S3TC X a52 aac aalib acl acpi addressbook alsa amr apm audiofile autoipd avahi bash-completion berkdb binary-drivers binfilter bittorrent bluetooth bonjour branding bzip2 cairo cdda cddb cdinstall cdio cdparanoia cdr chm cli clucene connection-sharing consolekit contrast cracklib crypt cups custom-cflags custom-cpuopts custom-optimization cxx dbus dc1394 dell designer-plugin desktopglobe dga dhcpcd dirac djvu dri dts dv dvb dvd dvdr ebook editor eix emboss emovix enca encode exif extensions faac faad fam fbcon fbcondecor fbsplash ffmpeg firefox firefox3 fits flac flash fortran ftp gallium gcj gcrypt gd gdbm gdu geolocation ggi gif gimp git glibc-omitfp gmm gmp gnutls google-gadgets gphoto2 gpm graphite graphviz groupwise gsm gtk handbook httpd hyperestraier iconv id3tag ieee1394 imagemagick imlib indi inotify iodbc ipod ipv6 jabber jack java javascript jbig jce jingle joystick jpeg jpeg2k kate kde kerberos kig-scripting kipi konqueror ladspa lame laptop lastfm latex lcms ldap libass libcaca libnotify libproxy libsamplerate libtiger libv4l libv4l2 live lm_sensors lto lua lzma lzo mad matroska md5sum mdnsresponder-compat meanwhile mikmod mjpeg mmx mng modplug modules mozilla mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap musepack musicbrainz ncurses network networkmanager nls nova npp nptl nptlonly nsplugin ntfs nut objc objc++ objc-gc odbc offensive ogg openal openexr opengl openmp optimization optimized-qmake oscar otr pam pango pch pcmcia pcre pdf perl plasma pm-utils pmu png pnm policykit ppds ppp pppd pvr python python3 qalculate qt-faststart qt3support qt4 quicktime qwt radio raw rdp readline reports resolvconf rle rss rtmp rtsp samba sasl scanner schroedinger sdl sdl-image secure-delete semantic-desktop session shout skins skype sms sndfile solver sox speex spell sqlite sqlite3 sse sse2 ssl stable startup-notification stream strong-optimization subversion svg svga symlink sysfs system-sqlite taglib tcl tcpd teamarena templates tga themedesigner theora threads thumbnail tidy tiff timidity tremor truetype twolame udev unicode upnp usb v4l v4l2 vaapi vcd vcdx video vidix vlm vnc vorbis vpx watchdog wavpack webpresence wicd wifi win32codecs windeco winpopup wmf wpd wpg wps wxwidgets x264 x86 xanim xattr xcb xcomposite xine xinerama xml xorg xosd xulrunner xv xvid xvmc yahoo yv12 zeroconf zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="radeon r300" 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
Comment 1 Rafał Mużyło 2010-12-25 03:53:35 UTC
Attach full build log.
Comment 2 Robert Cabrera 2010-12-25 04:08:50 UTC
Build log:
[32;01m * [39;49;00mPackage:    sys-apps/tuxonice-userui-1.0
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: nelchael@gentoo.org mobile@gentoo.org
[32;01m * [39;49;00mUSE:        elibc_glibc fbsplash kernel_linux userland_GNU x86
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking tuxonice-userui-1.0.tar.gz to /var/tmp/portage/sys-apps/tuxonice-userui-1.0/work
>>> Source unpacked in /var/tmp/portage/sys-apps/tuxonice-userui-1.0/work
>>> Preparing source in /var/tmp/portage/sys-apps/tuxonice-userui-1.0/work/tuxonice-userui-1.0 ...
 [32;01m*[0m Applying tuxonice-userui-1.0-Makefiles.patch ...
[A[100C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/tuxonice-userui-1.0/work/tuxonice-userui-1.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/tuxonice-userui-1.0/work/tuxonice-userui-1.0 ...
make -j1 -s clean 
make -j1 -s CC=i686-pc-linux-gnu-gcc 'CFLAGS=-O2 -march=native -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' tuxoniceui_text 
userui_core.c: In function ‘main’:
userui_core.c:924:6: warning: ignoring return value of ‘nice’, declared with attribute warn_unused_result
userui_core.c: In function ‘restore_console’:
userui_core.c:521:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
userui_core.c: In function ‘get_info’:
userui_core.c:427:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
userui_core.c:435:12: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
userui_core.c: In function ‘get_console_loglevel’:
userui_core.c:118:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
userui_text.c: In function ‘clear_display’:
userui_text.c:44:43: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
userui_text.c: In function ‘reset_display’:
userui_text.c:45:43: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
userui_text.c: In function ‘flush_scrollback’:
userui_text.c:55:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
userui_text.c: In function ‘show_cursor’:
userui_text.c:48:41: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
userui_text.c: In function ‘hide_cursor’:
userui_text.c:47:41: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
make -j1 -s CC=i686-pc-linux-gnu-gcc 'CFLAGS=-O2 -march=native -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' tuxoniceui_fbsplash 
userui_fbsplash_core.c: In function ‘update_fb_img’:
userui_fbsplash_core.c:237:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
userui_fbsplash_core.c: In function ‘show_cursor’:
userui_fbsplash_core.c:53:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
userui_fbsplash_core.c: In function ‘hide_cursor’:
userui_fbsplash_core.c:49:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
userui_fbsplash_core.c: In function ‘clear_display’:
userui_fbsplash_core.c:45:43: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
common.c: In function ‘vt_cursor_enable’:
common.c:223:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
common.c: In function ‘vt_cursor_disable’:
common.c:218:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
image.c: In function ‘load_png’:
image.c:115:2: warning: ‘color_type’ is deprecated (declared at /usr/include/png.h:661)
image.c:120:2: warning: ‘color_type’ is deprecated (declared at /usr/include/png.h:661)
image.c:121:6: warning: ‘color_type’ is deprecated (declared at /usr/include/png.h:661)
image.c:124:2: warning: ‘bit_depth’ is deprecated (declared at /usr/include/png.h:659)
image.c:127:2: warning: ‘color_type’ is deprecated (declared at /usr/include/png.h:661)
image.c:131:2: warning: ‘color_type’ is deprecated (declared at /usr/include/png.h:661)
image.c:137:2: warning: ‘color_type’ is deprecated (declared at /usr/include/png.h:661)
image.c:137:2: warning: ‘color_type’ is deprecated (declared at /usr/include/png.h:661)
image.c:153:2: warning: ‘width’ is deprecated (declared at /usr/include/png.h:647)
image.c:153:2: warning: ‘height’ is deprecated (declared at /usr/include/png.h:648)
image.c:157:3: warning: ‘width’ is deprecated (declared at /usr/include/png.h:647)
image.c:158:3: warning: ‘height’ is deprecated (declared at /usr/include/png.h:648)
image.c:174:2: warning: ‘height’ is deprecated (declared at /usr/include/png.h:648)
image.c:176:4: warning: ‘width’ is deprecated (declared at /usr/include/png.h:647)
image.c:178:4: warning: ‘width’ is deprecated (declared at /usr/include/png.h:647)
image.c:187:4: warning: ‘width’ is deprecated (declared at /usr/include/png.h:647)
image.c:199:4: warning: ‘width’ is deprecated (declared at /usr/include/png.h:647)
image.c:199:4: warning: ‘width’ is deprecated (declared at /usr/include/png.h:647)
image.c: In function ‘is_png’:
image.c:229:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
render.c: In function ‘get_program_output’:
render.c:260:13: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
render.c:271:6: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make: *** [tuxoniceui_fbsplash] Error 1
emake failed
 [31;01m*[0m ERROR: sys-apps/tuxonice-userui-1.0 failed:
 [31;01m*[0m   emake tuxoniceui_fbsplash failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  56:  Called src_compile
 [31;01m*[0m   environment, line 2359:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m           emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" tuxoniceui_fbsplash || die "emake tuxoniceui_fbsplash failed";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of 'emerge --info =sys-apps/tuxonice-userui-1.0',
 [31;01m*[0m the complete build log and the output of 'emerge -pqv =sys-apps/tuxonice-userui-1.0'.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-apps/tuxonice-userui-1.0/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-apps/tuxonice-userui-1.0/temp/environment'.
 [31;01m*[0m S: '/var/tmp/portage/sys-apps/tuxonice-userui-1.0/work/tuxonice-userui-1.0'
Comment 3 Mike Gilbert gentoo-dev 2010-12-25 05:13:01 UTC
Please run another build without "-s" in MAKEOPTS and attach the build log.
Comment 4 Robert Cabrera 2010-12-25 06:01:53 UTC
(In reply to comment #3)
> Please run another build without "-s" in MAKEOPTS and attach the build log.
> 

I also had an issue with media-gfx/splashutils-1.5.4.3-r3 failing to build and filed bug #349664.

On that thread Samuli Suominen mentioned that 
> splashutils should bump internal libpng 1.4.5 and depend on it for
> USE=static-libs

Perhaps this issue is related?

I'm in the middle of an emerge -evND @world right now (where these problems initially arose). I probably won't be finished for another 8-10 hours. As soon as it's done, I'll try without "-s" in MAKEOPTS and attach the build log. TIA
Comment 5 Mike Gilbert gentoo-dev 2010-12-25 06:21:55 UTC
(In reply to comment #4)
> I also had an issue with media-gfx/splashutils-1.5.4.3-r3 failing to build and
> filed bug #349664.
> 
> On that thread Samuli Suominen mentioned that 
> > splashutils should bump internal libpng 1.4.5 and depend on it for
> > USE=static-libs
> 
> Perhaps this issue is related?

ssuominem: Does this look like the same issue to you? Now that I look closer, it looks like this package is missing a libpng dependency entirely.
Comment 6 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-12-25 13:20:53 UTC
I'm pretty sure that it needs media-libs/libpng[static-libs] in deps. Robert: could you re-emerge libpng with static-libs enabled and retry tuxonice-userui?
Comment 7 Robert Cabrera 2010-12-26 01:03:08 UTC
Re-emerging libpng with USE=static-libs allows this to compile and install. Perhaps the tuxonice-userui.ebuild should be edited to make this a required dependency. TIA
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-12-26 09:29:43 UTC
I've modified dependencies for tuxonice-userui:

 DEPEND="fbsplash? ( >=media-gfx/splashutils-1.5.2.1
        media-libs/libmng[lcms]
+       || ( >=media-libs/libpng-1.4.4[static-libs]
+               <media-libs/libpng-1.4.4:0 )
        media-libs/lcms:0[static-libs] )"
 RDEPEND="${DEPEND}"

(this needs to be done this way for now because libpng with static-libs flag is still ~arch).