[gdal-dev] gdal 1.5.1 make error on Solaris 9

Gong, Shawn (Contractor) Shawn.Gong at drdc-rddc.gc.ca
Tue Apr 22 13:37:02 EDT 2008


hi list,
I am trying to make gdal 1.5.1 on Solaris 9.
make went fine, but I got error message when "make install". please see
the following message, which is the last part of the make install log.

does it mean that I have an old (incompatible) libz?  I use zlib-1.2.1

thanks,
Shawn


--------------------------------------
gmake -C rec
gmake[3]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/rec'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/rec'
gmake -C s57
gmake[3]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/s57'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/s57'
gmake -C sdts
gmake[3]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/sdts'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/sdts'
gmake -C shape
gmake[3]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/shape'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/shape'
gmake -C tiger
gmake[3]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/tiger'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/tiger'
gmake -C vrt
gmake[3]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/vrt'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts/vrt'
gmake[2]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr/ogrsf_frmts'
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr'
gmake libgdal.la
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1'
gmake[1]: `libgdal.la' is up to date.
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1'
(cd pymod; gmake)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/pymod'
GNUmakefile:40: warning: overriding commands for target `_gdalmodule.la'
GNUmakefile:34: warning: ignoring old commands for target
`_gdalmodule.la'
gmake[1]: Nothing to be done for `default'.
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/pymod'
(cd apps; gmake)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/apps'
gmake[1]: Nothing to be done for `default'.
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/apps'
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -d
/home/sgong/devel/openev_gdal.151/dist/lib
for f in libgdal.la ; do /bin/sh
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/libtool --mode=install
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c $f
/home/sgong/devel/openev_gdal.151/dist/lib ; done
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/libgdal.so.1.12.1
/home/sgong/devel/openev_gdal.151/dist/lib/libgdal.so.1.12.1
libtool: install: (cd /home/sgong/devel/openev_gdal.151/dist/lib && { ln
-s -f libgdal.so.1.12.1 libgdal.so.1 || { rm -f libgdal.so.1 && ln -s
libgdal.so.1.12.1 libgdal.so.1; }; })
ln: cannot create libgdal.so.1: File exists
libtool: install: (cd /home/sgong/devel/openev_gdal.151/dist/lib && { ln
-s -f libgdal.so.1.12.1 libgdal.so || { rm -f libgdal.so && ln -s
libgdal.so.1.12.1 libgdal.so; }; })
ln: cannot create libgdal.so: File exists
libtool: install: chmod +x
/home/sgong/devel/openev_gdal.151/dist/lib/libgdal.so.1.12.1
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/libgdal.lai /home/sgong/devel/openev_gdal.151/dist/lib/libgdal.la
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/libgdal.a /home/sgong/devel/openev_gdal.151/dist/lib/libgdal.a
libtool: install: chmod 644
/home/sgong/devel/openev_gdal.151/dist/lib/libgdal.a
libtool: install: ranlib
/home/sgong/devel/openev_gdal.151/dist/lib/libgdal.a
----------------------------------------------------------------------
Libraries have been installed in:
   /home/sgong/devel/openev_gdal.151/dist/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -d
/home/sgong/devel/openev_gdal.151/dist/bin
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -d
/home/sgong/devel/openev_gdal.151/dist/share
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -d
/home/sgong/devel/openev_gdal.151/dist/include
(cd port; gmake install)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/port'
for f in *.h ; do
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c -m 0644 $f
/home/sgong/devel/openev_gdal.151/dist/include ; done
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/port'
(cd gcore; gmake install)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/gcore'
for f in *.h ; do
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c -m 0644 $f
/home/sgong/devel/openev_gdal.151/dist/include ; done
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/gcore'
(cd frmts; gmake install)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/frmts'
gmake -C vrt install
gmake[2]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/frmts/vrt'
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c -m 0644
vrtdataset.h /home/sgong/devel/openev_gdal.151/dist/include
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c -m 0644
gdal_vrt.h /home/sgong/devel/openev_gdal.151/dist/include
gmake[2]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/frmts/vrt'
gmake -C mem install
gmake[2]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/frmts/mem'
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c -m 0644
memdataset.h /home/sgong/devel/openev_gdal.151/dist/include
gmake[2]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/frmts/mem'
gmake -C raw install
gmake[2]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/frmts/raw'
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c -m 0644
rawdataset.h /home/sgong/devel/openev_gdal.151/dist/include
gmake[2]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/frmts/raw'
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/frmts'
(cd alg; gmake install)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/alg'
for f in *.h ; do
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c -m 0644 $f
/home/sgong/devel/openev_gdal.151/dist/include ; done
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/alg'
(cd ogr; gmake install)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr'
for f in ogr_core.h ogr_feature.h ogr_geometry.h ogr_p.h
ogr_spatialref.h ogr_srs_api.h ogrsf_frmts/ogrsf_frmts.h
ogr_featurestyle.h ogr_api.h ; \
    do /home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c -m
0644 $f /home/sgong/devel/openev_gdal.151/dist/include ; \
done
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/ogr'
(cd apps; gmake install)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/apps'
for f in gdalinfo gdal_translate gdaladdo gdalwarp nearblack gdalmanage
gdalenhance gdaltransform gdal_contour gdaltindex gdal_rasterize
gdal_grid ogrinfo ogr2ogr ogrtindex ; do /bin/sh
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/libtool --mode=install
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c $f
/home/sgong/devel/openev_gdal.151/dist/bin ; done
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdalinfo /home/sgong/devel/openev_gdal.151/dist/bin/gdalinfo
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdal_translate
/home/sgong/devel/openev_gdal.151/dist/bin/gdal_translate
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdaladdo /home/sgong/devel/openev_gdal.151/dist/bin/gdaladdo
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdalwarp /home/sgong/devel/openev_gdal.151/dist/bin/gdalwarp
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/nearblack /home/sgong/devel/openev_gdal.151/dist/bin/nearblack
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdalmanage /home/sgong/devel/openev_gdal.151/dist/bin/gdalmanage
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdalenhance /home/sgong/devel/openev_gdal.151/dist/bin/gdalenhance
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdaltransform
/home/sgong/devel/openev_gdal.151/dist/bin/gdaltransform
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdal_contour
/home/sgong/devel/openev_gdal.151/dist/bin/gdal_contour
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdaltindex /home/sgong/devel/openev_gdal.151/dist/bin/gdaltindex
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdal_rasterize
/home/sgong/devel/openev_gdal.151/dist/bin/gdal_rasterize
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/gdal_grid /home/sgong/devel/openev_gdal.151/dist/bin/gdal_grid
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c .libs/ogrinfo
/home/sgong/devel/openev_gdal.151/dist/bin/ogrinfo
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c .libs/ogr2ogr
/home/sgong/devel/openev_gdal.151/dist/bin/ogr2ogr
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
.libs/ogrtindex /home/sgong/devel/openev_gdal.151/dist/bin/ogrtindex
/bin/sh /home/sgong/devel/openev_gdal.151/gdal-1.5.1/libtool
--mode=install /home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh
-c gdal-config-inst
/home/sgong/devel/openev_gdal.151/dist/bin/gdal-config
libtool: install:
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -c
gdal-config-inst /home/sgong/devel/openev_gdal.151/dist/bin/gdal-config
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/apps'
(cd pymod; gmake install)
gmake[1]: Entering directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/pymod'
GNUmakefile:40: warning: overriding commands for target `_gdalmodule.la'
GNUmakefile:34: warning: ignoring old commands for target
`_gdalmodule.la'
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh -d
/home/sgong/devel/openev_gdal.151/dist/lib/python2.3/site-packages
/bin/sh /home/sgong/devel/openev_gdal.151/gdal-1.5.1/libtool
--mode=install /home/sgong/devel/openev_gdal.151/gdal-1.5.1/install-sh
-c _gdalmodule.la
/home/sgong/devel/openev_gdal.151/dist/lib/python2.3/site-packages
libtool: install: warning: relinking `_gdalmodule.la'
libtool: install: (cd
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/pymod; /bin/bash
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/libtool  --mode=relink g++
gdal_wrap.lo numpydataset.lo gdalnumeric.lo
/home/sgong/devel/openev_gdal.151/gdal-1.5.1/libgdal.la -o
_gdalmodule.la -rpath
/home/sgong/devel/openev_gdal.151/dist/lib/python2.3/site-packages
-no-undefined -avoid-version -module )
libtool: relink: warning:
`/home/sgong/devel/openev_gdal.151/dist/lib/libhdf5.la' seems to be
moved
libtool: relink: g++ -shared -nostdlib
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/crti.o
/usr/ccs/lib/values-Xa.o
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/crtbegin.o
.libs/gdal_wrap.o .libs/numpydataset.o .libs/gdalnumeric.o   -Wl,-R
-Wl,/home/sgong/devel/openev_gdal.151/dist/lib -Wl,-R -Wl,/usr/local/lib
-Wl,-R -Wl,/rde/software/solaris9/local/lib -Wl,-R -Wl,/usr/lib -Wl,-R
-Wl,/usr/openwin/lib -Wl,-R -Wl,/usr/local/ssl/lib -Wl,-R
-Wl,/usr/local/BerkeleyDB.4.2/lib
-L/home/sgong/devel/openev_gdal.151/dist/lib -lgdal -L/usr/local/lib
-L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib
-L/usr/local/BerkeleyDB.4.2/lib -L/rde/software/solaris9/local/lib
-L/home/sgong/devel/openev_gdal.151/dist
-L/sol10/SOURCES/S9/gcc-3.4.6/objdir/sparc-sun-solaris2.9/libstdc++-v3/s
rc
-L/sol10/SOURCES/S9/gcc-3.4.6/objdir/sparc-sun-solaris2.9/libstdc++-v3/s
rc/.libs -L/sol10/SOURCES/S9/gcc-3.4.6/objdir/gcc -lexpat -lhdf5 -lsz
-ljpeg -lpthread -lrt -ldl -lcurl -lidn -lintl -lsec -lc -liconv -lssl
-lcrypto -lsocket -lnsl -lz
-L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6
-L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../../../sparc-sun-so
laris2.9/lib -L/usr/ccs/bin -L/usr/ccs/lib
-L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../.. -lstdc++ -lm
-lgcc_s /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/crtend.o
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/crtn.o              -Wl,-h
-Wl,_gdalmodule.so -o .libs/_gdalmodule.so
Text relocation remains                 	referenced
    against symbol		    offset	in file
<unknown>                           0x10
/home/sgong/devel/openev_gdal.151/dist/lib/libz.a(uncompr.o)
<unknown>                           0x18
/home/sgong/devel/openev_gdal.151/dist/lib/libz.a(uncompr.o)
inflate                             0x48
/home/sgong/devel/openev_gdal.151/dist/lib/libz.a(uncompr.o)
inflateEnd                          0x60
/home/sgong/devel/openev_gdal.151/dist/lib/libz.a(uncompr.o)
inflateEnd                          0xa0
/home/sgong/devel/openev_gdal.151/dist/lib/libz.a(uncompr.o)
inflateInit_                        0x2c
/home/sgong/devel/openev_gdal.151/dist/lib/libz.a(uncompr.o)
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
libtool: install: error: relink `_gdalmodule.la' with the above command
before installing it
gmake[1]: *** [install] Error 1
gmake[1]: Leaving directory
`/home/sgong/devel/openev_gdal.151/gdal-1.5.1/pymod'
gmake: *** [install-actions] Error 2


More information about the gdal-dev mailing list