[Gdal-dev] Re: Bigger compilation error
paul-grass at stjohnspoint.co.uk
Wed Dec 17 04:54:17 EST 2003
On Mon, 15 Dec 2003 gdal-dev-request at remotesensing.org wrote:
> Message: 3
> Date: Mon, 15 Dec 2003 09:27:46 -0500
> From: Frank Warmerdam <warmerdam at pobox.com>
> To: gdal-dev at remotesensing.org
> Subject: Re: [Gdal-dev] Bigger compilation error
> Reply-To: gdal-dev at remotesensing.org
> Paul Kelly wrote:
> > See attached for make output, today's CVS using libtool on IRIX 6.2. It
> > stops at seemingly the last stage before creating the shared library. It
> > worked fine before (even after libtool introduction), a few months ago. I am
> > just sending this to the list as I'm not sure what's wrong.
> I'm not too sure why things are going wrong. At the bottom I see:
> ld: FATAL 43: cannot mix PIC and non-PIC: .libs/libgdal.la-2.o.
> Did you used to get this? It almost looks as if something is being compiled
> without libtool and it's -fPIC flags. I presume a clean build doesn't help?
Looks like it was a problem with the compiler flags I was using. -O3 gave
the error, but it was fine with -O2. See below for a more specific-looking
error I got when compiling without libtool, but it's probably a red
herring---I don't think there's anything to worry about. Sorry.
make ./libgdal.a ./libgdal.1.1.so
make: Entering directory `/indigo-disk2/grass/gdtest/gdal'
make: `libgdal.a' is up to date.
CC -shared -all ./frmts/o/*.o ./gcore/*.o ./port/*.o ./alg/*.o ./ogr/ogrsf_frmts/o/*.o ./ogr/ogrgeometryfactory.o ./ogr/ogrpoint.o ./ogr/ogrcurve.o ./ogr/ogrlinestring.o ./ogr/ogrlinearring.o ./ogr/ogrpolygon.o ./ogr/ogrutils.o ./ogr/ogrgeometry.o ./ogr/ogrgeometrycollection.o ./ogr/ogrmultipolygon.o ./ogr/ogrsurface.o ./ogr/ogrmultipoint.o ./ogr/ogrmultilinestring.o ./ogr/ogr_api.o ./ogr/ogrfeature.o ./ogr/ogrfeaturedefn.o ./ogr/ogrfeaturequery.o ./ogr/ogrfeaturestyle.o ./ogr/ogrfielddefn.o ./ogr/ogrspatialreference.o ./ogr/ogr_srsnode.o ./ogr/ogr_srs_proj4.o ./ogr/ogr_fromepsg.o ./ogr/ogrct.o ./ogr/ogr_opt.o ./ogr/ogr_srs_esri.o ./ogr/ogr_srs_pci.o ./ogr/swq.o ./ogr/ogr_srs_validate.o ./ogr/ogr_srs_xml.o ./ogr/ograssemblepolygon.o ./ogr/ogr2gmlgeometry.o ./ogr/gml2ogrgeometry.o ./libgdal.a ./libgdal.a -lpng -lz -lm -ldl -L/usr/local/lib \
ld: FATAL 43: cannot mix PIC and non-PIC: ./frmts/o/EnvisatFile.o.
make: *** [libgdal.1.1.so] Error 1
make: Leaving directory `/indigo-disk2/grass/gdtest/gdal'
make: *** [check-lib] Error 2
More information about the Gdal-dev