Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249512 - media-libs/glpng fails to build: "unrecognised option '-soname'"
Summary: media-libs/glpng fails to build: "unrecognised option '-soname'"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 19:12 UTC by Petter Häggholm
Modified: 2008-12-02 01:33 UTC (History)
1 user (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 Petter Häggholm 2008-12-01 19:12:57 UTC
>>> Emerging (1 of 7) media-libs/glpng-1.45
 * glpng.zip RMD160 SHA1 SHA256 size ;-) ...                             [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking glpng.zip to /tmp/portage/media-libs/glpng-1.45/work
>>> Source unpacked.
>>> Compiling source in /tmp/portage/media-libs/glpng-1.45/work ...
make -j5 -l1 
cc -march=native -O2 -pipe -fPIC -I.//include -c -o /tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o  /tmp/portage/media-libs/glpng-1.45/work/src/glpng.c
cc -march=native -O2 -pipe -L.//lib -shared -soname -lGL -lpng -lz -lm -o /tmp/portage/media-libs/glpng-1.45/work/src/libglpng.so.1 ,-soname=libglpng.so.1 /tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o
gcc: ,-soname=libglpng.so.1: No such file or directory
gcc: unrecognized option '-soname'
make: *** [all] Error 1

Reproducible: Always

Steps to Reproduce:
1. emerge -1 glpng

Actual Results:  
Build failure

Expected Results:  
Successful build

winterfell ~ # emerge --info
Portage 2.1.6_rc2 (default-linux/amd64/2007.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6850_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Mon, 01 Dec 2008 18:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.mirrors.tera-byte.com/ http://gentoo.osuosl.org/ http://mirror.usu.edu/mirrors/gentoo/ ftp://gentoo.llarian.net/pub/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j5 -l1"
PKGDIR="/usr/portage/packages"
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/layman/gentopia /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi aiglx aim aimextras alsa amd64 amr apache2 artworkextra audacious avahi bash-completion berkdb binfilter bluetooth branding bzip2 cairo ccache cdda cddb cdinstall cdparanoia cdr cdrom cdsound cli cracklib crypt cscope css ctype cups cursors daap dba dbus depth32 deskbar devhelp dga divx doc dri dts dv dvd dvdnav dvdr dvdread dvi editor eds encode fam ffmpeg firefox flac foomaticdb fortran fuse gdbm gdm gedit gif gimp gimpprint glade glitz glut gmail gmailtimestamps gmedia gnome gnome-keyring gnome-print gnomecd gnuplot gnutls gpg gphoto2 gpm gstreamer gstreamer010 gtalk gtk gtk2 gtkhtml gzip hal howl-compat htmlhandbook ical icons iconv icq id3 imlib inherit-graph ipod iproute2 ipv6 isdnlog jabber jack java java5 jpeg jpeg2k keyring kpathsea latex ldap libnotify live logitech-mouse logrotate lzo mad math mdnsresponder-compat midi mikmod mmap mmx mmxext mod modplug mono mozbranding mozcalendar mozdevelop mozdom moznocompose moznoirc moznomail mozsvg mp2 mp3 mp4 mp4live mpeg mpeg2 msn mudflap musepack music musicbrainz nautilus ncurses network networkmanager newspr nls nptl nptlonly ntfs nvidia offensive ogg oggvorbis openal opengl openmp pam pcre pdf perl pidgin png postgres ppds pppd ps python qt-static quicktime readline realmedia reflection reiserfs replytolist rhythmbox rtc rtsp samba scanner scenarios sdl session sid smp sounds sourceview speex spl sse sse2 ssl ssse3 startup-notification stencil-buffer stream subversion svg svgz t1lib tcpd textures themes theora threads thunderbird tiff timidity totem tracker truetype unicode unzip usb userlocales valgrind vcd videos vim vim-pager vim-syntax vim-with-x vorbis wma wma123 wmf wmp wordexp wordperfect wxwindows x264 xanim xattr xcb xchat xchatdccserver xcomposite xforms xinerama xml xorg xpm xprint xrandr xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zip zlib" ALSA_CARDS="emu10k1" 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 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 dav dav_fs dav_lock 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="fuji canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2008-12-02 01:09:01 UTC
Looks like the LDFLAGS handling for this package is not quite right and will need to be patched. It breaks when LDFLAGS starts out empty. As a temporary workaround, you could define LDFLAGS in your make.conf:

LDFLAGS=-Wl,-O1
Comment 2 Petter Häggholm 2008-12-02 01:11:12 UTC
As a temporary workaround, I can confirm that it works. Thanks!
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2008-12-02 01:22:34 UTC
Ok that is definetly my falut, i will fix asap. :(
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2008-12-02 01:33:26 UTC
Ok should be fixed in the tree
to makefile i added:
LDFLAGS?=       -Wl

So enjoy and report/reopen if problem is not fixed.