Hi, Thanks for your replies. No one replied for a couple of days and so i thought that it would remain status quo. So - well - i compiled netcdf-4.1.1 with the -fPIC flag. As you said netcdf-4.1.1 does not have the default compile time option of shared libs being built. Enabling build of shared libs caused errors during the make process and i ditched the effort. I just gave the -fPIC flag.
On Sep 6, 9:35 pm, "Dr. David Kirkby" <david.kir...@onetel.net> wrote: > On 09/ 6/10 11:12 AM, Minh Nguyen wrote: > > > > > Hi, > > > On Fri, Sep 3, 2010 at 8:03 PM, samrat<samluvs...@gmail.com> wrote: > >> When i recompilenetcdf-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 thenetcdf-4.1.1 installation? > > > It's hard to say. The packagenetcdfis 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 sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org