Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 625776

Summary: sci-libs/pgplot-5.2.2-r6 will not build with USE static-libs: recompile with -fPIC
Product: Gentoo Linux Reporter: deference
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: UNCONFIRMED ---    
Severity: normal CC: deference, jstein, t
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 704426    
Bug Blocks:    
Attachments: build.log
emerge --info

Description deference 2017-07-21 01:07:02 UTC
x86_64-pc-linux-gnu-gfortran -shared -Wl,-O1 -Wl,--as-needed -Wl,-soname,libtkpgplot.so.5 tkpgplot.o -L. -lcpgplot -ltk -ltcl -lX11 -ldl -o libtkpgplot.so.5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: tkpgplot.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [makefile:891: libtkpgplot.so] Error 1

[ebuild   R   ] sci-libs/pgplot-5.2.2-r6  USE="doc static-libs* tk -motif"
Comment 1 deference 2017-07-21 01:07:31 UTC
Created attachment 486154 [details]
build.log
Comment 2 deference 2017-07-21 01:07:38 UTC
Created attachment 486156 [details]
emerge --info
Comment 3 Thomas Bracht Laumann Jespersen 2023-09-18 11:52:32 UTC
I think this issue can be closed: -r6 is no longer in tree, and the -r7 ebuild appends -fPIC to CFLAGS in src_compile()