[gdal-dev] gdal1.5.1 make error on RedHat Linux

Gong, Shawn (Contractor) Shawn.Gong at drdc-rddc.gc.ca
Wed Apr 23 13:54:47 EDT 2008


hi Frank and list,

After upgrading libcurl, make went further. There were other errors (see
below). Does this look like a problem caused by other older version of
lib?

thanks,
Shawn

=================================
...
libtool: link: ranlib .libs/libgdal.a
libtool: link: creating libgdal.la
libtool: link: ( cd ".libs" && rm -f "libgdal.la" && ln -s
"../libgdal.la" "libgdal.la" )
make[1]: Leaving directory `/home/sgong/dev18/gdal-1.5.1'
(cd apps; make)
make[1]: Entering directory `/home/sgong/dev18/gdal-1.5.1/apps'
rm -f gdal-config-inst
echo '#!/bin/sh' > gdal-config-inst
echo 'CONFIG_LIBS="-L/home/sgong/dev18/dist/lib -lgdal"' >>
gdal-config-inst
echo 'CONFIG_DEP_LIBS=" -L/usr/local/lib -lgeos_c
-L/home/sgong/dev18/dist/lib missing -logdi31 -L/home/sgo ng/dev18/dist
-L/home/sgong/dev18/dist/lib -ljpeg -L/usr/lib -lpq -lz
-L/home/sgong/dev18/dist -L/home/sgon g/dev18/dist/lib -lpthread -lm
-lrt -ldl    -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5
-lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz
-lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto
-lresolv -ldl -lz -lz "' >> gdal-config-inst
echo 'CONFIG_PREFIX="/home/sgong/dev18/dist"' >> gdal-config-inst
echo 'CONFIG_CFLAGS="-I/home/sgong/dev18/dist/include"' >>
gdal-config-inst
echo 'CONFIG_DATA="/home/sgong/dev18/dist/share"' >> gdal-config-inst
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config-inst
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config-inst
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211
xpm sdts raw dted mem jdem envisat el as fit vrt usgsdem l1b nitf bmp
pcidsk airsar rs2 ilwis rmf rik leveller sgi srtmhgt idrisi gsg ingr ers
ja xapalsar dimap gff cosar pds adrg coasp tsx terragen wcs wms bsb hdf5
ogdi gif jpeg png pcraster "' >> gdal -config-inst
cat gdal-config.in >> gdal-config-inst
chmod a+x gdal-config-inst
rm -f gdal-config
echo '#!/bin/sh' > gdal-config
echo 'CONFIG_LIBS="/home/sgong/dev18/gdal-1.5.1/libgdal.la"' >>
gdal-config
echo 'CONFIG_DEP_LIBS=" -L/usr/local/lib -lgeos_c
-L/home/sgong/dev18/dist/lib missing -logdi31 -L/home/sgo ng/dev18/dist
-L/home/sgong/dev18/dist/lib -ljpeg -L/usr/lib -lpq -lz
-L/home/sgong/dev18/dist -L/home/sgon g/dev18/dist/lib -lpthread -lm
-lrt -ldl    -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5
-lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz
-lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto
-lresolv -ldl -lz -lz "' >> gdal-config
echo 'CONFIG_PREFIX="/home/sgong/dev18/gdal-1.5.1"' >> gdal-config
echo 'CONFIG_CFLAGS="-I/home/sgong/dev18/gdal-1.5.1/port
-I/home/sgong/dev18/gdal-1.5.1/gcore -I/home/sgong /dev18/gdal-1.5.1/alg
-I/home/sgong/dev18/gdal-1.5.1/ogr
-I/home/sgong/dev18/gdal-1.5.1/ogr/ogrsf_frmts"' > > gdal-config
echo 'CONFIG_DATA="/home/sgong/dev18/gdal-1.5.1/data"' >> gdal-config
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211
xpm sdts raw dted mem jdem envisat el as fit vrt usgsdem l1b nitf bmp
pcidsk airsar rs2 ilwis rmf rik leveller sgi srtmhgt idrisi gsg ingr ers
ja xapalsar dimap gff cosar pds adrg coasp tsx terragen wcs wms bsb hdf5
ogdi gif jpeg png pcraster "' >> gdal -config
cat gdal-config.in >> gdal-config
chmod a+x gdal-config
/bin/sh /home/sgong/dev18/gdal-1.5.1/libtool --mode=compile --tag=CC gcc
-g -O2  -Wall -Wdeclaration-after- statement
-I/home/sgong/dev18/gdal-1.5.1/port -I/home/sgong/dev18/gdal-1.5.1/gcore
-I/home/sgong/dev18/gda l-1.5.1/alg -I/home/sgong/dev18/gdal-1.5.1/ogr
-I/home/sgong/dev18/gdal-1.5.1/ogr/ogrsf_frmts -I/home/sgong
/dev18/gdal-1.5.1/frmts -DOGR_ENABLED
-I/home/sgong/dev18/gdal-1.5.1/port -I/home/sgong/dev18/dist -I/home/
sgong/dev18/dist/include  -c -o gdalinfo.o gdalinfo.c
libtool: compile:  gcc -g -O2 -Wall -Wdeclaration-after-statement
-I/home/sgong/dev18/gdal-1.5.1/port -I/ho
me/sgong/dev18/gdal-1.5.1/gcore -I/home/sgong/dev18/gdal-1.5.1/alg
-I/home/sgong/dev18/gdal-1.5.1/ogr -I/ho
me/sgong/dev18/gdal-1.5.1/ogr/ogrsf_frmts
-I/home/sgong/dev18/gdal-1.5.1/frmts -DOGR_ENABLED -I/home/sgong/
dev18/gdal-1.5.1/port -I/home/sgong/dev18/dist
-I/home/sgong/dev18/dist/include -c gdalinfo.c  -fPIC -DPIC -o
.libs/gdalinfo.o
libtool: compile:  gcc -g -O2 -Wall -Wdeclaration-after-statement
-I/home/sgong/dev18/gdal-1.5.1/port -I/ho
me/sgong/dev18/gdal-1.5.1/gcore -I/home/sgong/dev18/gdal-1.5.1/alg
-I/home/sgong/dev18/gdal-1.5.1/ogr -I/ho
me/sgong/dev18/gdal-1.5.1/ogr/ogrsf_frmts
-I/home/sgong/dev18/gdal-1.5.1/frmts -DOGR_ENABLED -I/home/sgong/
dev18/gdal-1.5.1/port -I/home/sgong/dev18/dist
-I/home/sgong/dev18/dist/include -c gdalinfo.c -o gdalinfo.o  >/dev/null
2>&1
/bin/sh /home/sgong/dev18/gdal-1.5.1/libtool --mode=link        g++
gdalinfo.o  \
        /home/sgong/dev18/gdal-1.5.1/libgdal.la -o gdalinfo
libtool: link: g++ gdalinfo.o -o .libs/gdalinfo
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so -L/usr/local /lib
-L/home/sgong/dev18/dist/lib -L/home/sgong/dev18/dist -L/usr/lib
-L/usr/kerberos/lib -L/home/marinier/
gcc-4.2.2-build/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/marinier/gcc-4.2.2-build/i686-pc-linux-gnu/libst
dc++-v3/src/.libs -L/home/marinier/gcc-4.2.2-build/./gcc
/usr/local/lib/libgeos_c.so /usr/local/lib/libgeos .so -logdi31
/usr/lib/libjpeg.so -lpq -lpthread -lrt /usr/local/lib/libcurl.so -lldap
-lssl -lcrypto -lgssa pi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl
-lz /usr/local/lib/libstdc++.so -lm -lc -lgcc_s -Wl,-rpat h
-Wl,/home/sgong/dev18/dist/lib -Wl,-rpath -Wl,/usr/local/lib
/usr/bin/ld: warning: libstdc++.so.5, needed by
/usr/local/lib/libgeos_c.so, may conflict with libstdc++.so .6
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/libssl.so, may
conflict with libcom_err.so.2
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_UCHAR_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Fclose'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_SHORT_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Dclose'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5check_version'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Gopen'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_ULLONG_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_DOUBLE_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Dread'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Fis_hdf5'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_FLOAT_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Aiterate'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Aopen_name'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5open'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Aget_num_attrs'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Screate_simple'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Gclose'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_USHORT_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Gget_num_objs'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_LLONG_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Tget_size'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Tget_class'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Dopen'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_ULONG_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Sselect_hyperslab'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Dget_space'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_UINT_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_LONG_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Giterate'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Dget_type'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Gget_objinfo'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Aget_space'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Dget_offset'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Tequal'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Aclose'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Sget_simple_extent_ndims'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_INT_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Aread'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Fopen'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5T_NATIVE_SCHAR_g'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Tget_native_type'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Sget_simple_extent_dims'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`H5Aget_type'
collect2: ld returned 1 exit status
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory `/home/sgong/dev18/gdal-1.5.1/apps'
make: *** [apps-target] Error 2




-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam
Sent: Tuesday, April 22, 2008 1:11 PM
To: Gong, Shawn (Contractor)
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] gdal1.5.1 make error on RedHat Linux

Gong, Shawn (Contractor) wrote:
> hi list,
> 
> I got make errors on gdalhttp.cpp:209. The following is the last part
of 
> the make log.
> 
> Platform: RedHat Enterprise Linux version 4, and gcc compiler version
3.2.3.
> 
> Any help is appreciated.

Shawn,

I would guess you have an older version of libcurl that lacks a
particular
capability GDAL now uses.  Either upgrade libcurl or drop it from your
build
if you don't need it.

Best regards,
-- 
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo,
http://osgeo.org

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list