On 09/ 6/10 11:12 AM, Minh Nguyen wrote:
Hi,
On Fri, Sep 3, 2010 at 8:03 PM, samrat<[email protected]> wrote:
When i recompile netcdf-4.1.1 with CFLAGS=-fPIC i no longer get this
error. It this a bug in sage or what i have done is correct?
Many standard packages that are shipped by default with Sage are
usually compiled with CFLAGS=-fPIC. So what you did was OK. Thank you
for sharing your workaround.
Will
there be any further problems in the netcdf-4.1.1 installation?
It's hard to say. The package netcdf is not maintained in any way by
any Sage contributor. Also, the package itself is not listed on any of
the standard, optional, or contributed (formerly experimental) package
repositories [1].
[1] http://www.sagemath.org/download-packages.html
It it's a shared library, then is *should* be built with -fPIC. It is
unfortunate that
* You can often get away without my -fPIC
* -fPIC causes a small slowdown.
Because of this, some people build libraries without it, but it sometimes fails,
as you have found out. I managed to convince the Pari developers to always build
with -fPIC.
The gcc manual sort of implies this, but is not very specific about it.
The Sun linker manual is very clear - shared libraries should be compiled
position independent.
Will's workaround is sensible. Had the package been maintained, then I would
suggest we implement it, but if nobody is bothering with it, there's not a lot
of point.
Dave
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org