Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249567 - media-libs/glpng-1.45 - gcc: unrecognized option '-soname'
Summary: media-libs/glpng-1.45 - gcc: unrecognized option '-soname'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-02 02:24 UTC by Santiago Bruno
Modified: 2008-12-02 13:56 UTC (History)
1 user (show)

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


Attachments
A few cleanups (media-libs:glpng.patch,1.90 KB, patch)
2008-12-02 02:46 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Santiago Bruno 2008-12-02 02:24:28 UTC
Emerging media-libs/glpng-1.45 fails giving the error:

>>> Compiling source in /var/tmp/portage/media-libs/glpng-1.45/work ...                                                             
make                                                                                                                                
cc -march=k8 -O2 -pipe -fPIC -I.//include -c -o /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o  /var/tmp/portage/media-libs/glpng-1.45/work/src/glpng.c                                                                                                       
cc -march=k8 -O2 -pipe -L.//lib -shared -soname -lGL -lpng -lz -lm -o /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.so.1 ,-soname=libglpng.so.1 /var/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 


That comma before -soname looked weird to me, so I removed it from the Makefile in /usr/portage/media-libs/glpng/files/Makefile

After that, it compiled, even though the message still appears:

>>> Compiling source in /var/tmp/portage/media-libs/glpng-1.45/work ...                                                             
make                                                                                                                                
cc -march=k8 -O2 -pipe -fPIC -I.//include -c -o /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o  /var/tmp/portage/media-libs/glpng-1.45/work/src/glpng.c                                                                                                       
cc -march=k8 -O2 -pipe -L.//lib -shared -soname -lGL -lpng -lz -lm -o /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.so.1  -soname=libglpng.so.1 /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o                                                     
gcc: unrecognized option '-soname'                                                                                                   
gcc: unrecognized option '-soname=libglpng.so.1'                                                                                     
ar cqs /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.a /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o         
>>> Source compiled.                                                                                                                 
>>> Test phase [not enabled]: media-libs/glpng-1.45                                                                                  

>>> Install glpng-1.45 into /var/tmp/portage/media-libs/glpng-1.45/image/ category media-libs
/bin/mkdir -p /var/tmp/portage/media-libs/glpng-1.45/image//usr/lib                          
/bin/cp /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.so.1 /var/tmp/portage/media-libs/glpng-1.45/image//usr/lib
/bin/cp /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.a /var/tmp/portage/media-libs/glpng-1.45/image//usr/lib   
/bin/ln -sf libglpng.so.1 /var/tmp/portage/media-libs/glpng-1.45/image//usr/lib/libglpng.so                                
/bin/mkdir -p /var/tmp/portage/media-libs/glpng-1.45/image//usr/include/GL/                                                
/bin/cp include/GL/glpng.h /var/tmp/portage/media-libs/glpng-1.45/image//usr/include/GL/                                   
>>> Completed installing glpng-1.45 into /var/tmp/portage/media-libs/glpng-1.45/image/                                     

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib/libglpng.so.1                                     
   usr/lib/libglpng.a                                        

 * QA Notice: The following shared libraries lack a SONAME
 *  /var/tmp/portage/media-libs/glpng-1.45/image/usr/lib/libglpng.so.1


Reproducible: Always

Steps to Reproduce:
1. emerge media-libs/glpng-1.45
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-02 02:45:29 UTC
>>> Compiling source in /var/tmp/portage/media-libs/glpng-1.45/work ...
make -j3
cc -O2 -pipe -march=athlon-xp -fPIC -I.//include -c -o /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o -Wl,-O1 /var/tmp/portage/media-libs/glpng-1.45/work/src/glpng.c
gcc: -O1: linker input file unused because linking not done
cc -O2 -pipe -march=athlon-xp -L.//lib -shared -soname -lGL -lpng -lz -lm -o /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.so.1 -Wl,-O1,-soname=libglpng.so.1 /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o
gcc: unrecognized option '-soname'
ar cqs /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.a /var/tmp/portage/media-libs/glpng-1.45/work/src/libglpng.o
>>> Source compiled.
>>> Test phase [none]: media-libs/glpng-1.45
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-02 02:46:09 UTC
Created attachment 174031 [details, diff]
A few cleanups

Not nearly enough, but it's a start...
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2008-12-02 13:56:59 UTC
Thanks for ideas.
I just sthrowed away the makefie and repacked.
Now it uses cmake :P
so test and report issues. but it should work now as charm :]