First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 47517
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bryan Østergaard (RETIRED) <kloeri@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
netcdf-fPIC.patch fPIC patch to /libsrc/Makefile patch Bryan Østergaard (RETIRED) 2004-04-11 09:33 0000 209 bytes Details | Diff
752-ScientificPython-2.4.5.log Relocation errors from missing -fPIC. text/plain Bryan Østergaard (RETIRED) 2004-04-19 12:11 0000 7.88 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 47517 depends on: Show dependency tree
Show dependency graph
Bug 47517 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-04-11 09:31 0000
The libnetcdf library should be compiled with -fPIC on alpha at least. I'll
attach a patch for the libsrc/Makefile file. The patch has been tested on alpha
and x86.

------- Comment #1 From Bryan Østergaard (RETIRED) 2004-04-11 09:33:06 0000 -------
Created an attachment (id=29081) [edit]
fPIC patch to /libsrc/Makefile

------- Comment #2 From Patrick Kursawe 2004-04-19 06:30:35 0000 -------
May I ask why you think -fPIC is necessary? As far as I can see it builds only
static libraries, and PIC stuff is only relevant for shared libs. Please
correct me if I'm wrong there.
What goes wrong if it is compiled without -fPIC?

------- Comment #3 From Donnie Berkholz 2004-04-19 10:39:11 0000 -------
Actually if static libs aren't compiled PIC, then some issues come up on 64-bit
installs (e.g., amd64). See bug #44274 or bug #40646.

------- Comment #4 From Bryan Østergaard (RETIRED) 2004-04-19 12:11:14 0000 -------
Created an attachment (id=29641) [edit]
Relocation errors from missing -fPIC.

I'm getting gp-relative relocation errors when emerging ScientificPython which
links against netcdf. See attached emerge log.

Another solution would be to inherit the 64-bit.eclass and doing something like
'64-bit && append-flags -fPIC', although I think patching the Makefile is
cleaner.

------- Comment #5 From Patrick Kursawe 2004-04-19 23:11:09 0000 -------
Ok, all docs I saw talked about "shared objects", which I thought is different
from a static library, but you sound very convincing :-)

Have put that into portage, thanks.

First Last Prev Next    No search results available      Search page      Enter new bug