[gdal-dev] Re: Failure to compile 1.6.0 with errors 'libgdal.so: undefined reference to `PMPI::Intracomm::current_op'

Steve Walker walker at mfgis.com
Fri Feb 27 09:17:48 EST 2009


I was able to complete a successful build by including the following in my
configure command:

--with-hdf4=no --with-hdf5=no

Which then of course leads to the follow-up:  What's wrong with my hdf
installs?

I have the following packages installed:
hdf4-tools
hdf5-tools
libhdf4g
libhdf4g-dev
libhdf5-lam-1.6.6-0
libhdf5-openmpi-1.6.6-0
libhdf5-openmpi-dev

I am not yet sure if or how this will affect my ability to work with ogdi
layers.

Steve


> Hi, I'm a brand new visitor to your list here.
>
> I'm working on Debian Squeeze and have had a functioning 1.6.0 install
> (compiled, not from a .deb) version up until this morning, when I went to
> re-compile so as to include additional support, specifically ogdi.
>
> After a half day of trying and failing, I felt it time to come here.  The
> error looks like this:
>
> /bin/sh /home/walker/admin/gdal-1.6.0/libtool --mode=link	g++  gdalinfo.o
> \
> 		/home/walker/admin/gdal-1.6.0/libgdal.la -o gdalinfo
> libtool: link: g++ gdalinfo.o -o .libs/gdalinfo
> /home/walker/admin/gdal-1.6.0/.libs/libgdal.so -L/usr/lib -L/usr/local/lib
> -L/usr/lib/lib -L/usr/include/ogdi -L/usr/include/ogdi/lib
> -L/usr/lib/grass/lib -L/usr/local/Geo_DSDK-7.0.0.2167/lib/Release
> -L/usr/local/Geo_DSDK-7.0.0.2167/3rd-party/lib/Release
> /usr/lib/libgeos_c.so /usr/lib/libgeos.so /usr/lib/libodbc.so
> /usr/lib/libodbcinst.so /usr/lib/libltdl.so /usr/lib/libexpat.so
> /usr/local/lib/libNCSEcw.so /usr/local/lib/libNCSCnet.so
> /usr/local/lib/libNCSUtil.so /usr/lib/libjasper.so /usr/lib/libhdf5.so -lm
> -lmfhdf -ldf -logdi31 /usr/lib/libjpeg.so -lpng -lnetcdf -lgrass_vect
> -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient
> -lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath
> -lgrass_gis -lgrass_datetime -lpq -lz -lrt -ldl /usr/lib/libcurl-gnutls.so
> -lltidsdk -lpthread -llt_kakadu
> /home/walker/admin/gdal-1.6.0/.libs/libgdal.so: undefined reference to
> `PMPI::Intracomm::current_op'
> /home/walker/admin/gdal-1.6.0/.libs/libgdal.so: undefined reference to
> `PMPI::Comm::mpi_comm_map'
> /home/walker/admin/gdal-1.6.0/.libs/libgdal.so: undefined reference to
> `MPI::Is_initialized()'
> /home/walker/admin/gdal-1.6.0/.libs/libgdal.so: undefined reference to
> `PMPI::Comm::mpi_err_map'
> /home/walker/admin/gdal-1.6.0/.libs/libgdal.so: undefined reference to
> `MPI::Op::Free()'
> /home/walker/admin/gdal-1.6.0/.libs/libgdal.so: undefined reference to
> `op_intercept'
> /home/walker/admin/gdal-1.6.0/.libs/libgdal.so: undefined reference to
> `MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&),
> bool)'
> collect2: ld returned 1 exit status
> make[1]: *** [gdalinfo] Error 1
> make[1]: Leaving directory `/home/walker/admin/gdal-1.6.0/apps'
> make: *** [apps-target] Error 2
>
>
> My configure command looks like this:
>
> ./configure \
>   --with-libz \
>   --with-pg=/usr/bin/pg_config \
>   --with-grass=/usr/lib/grass \
>   --with-libgrass \
>   --with-cfitsio \
>   --with-pcraste \
>   --with-png \
>   --with-libtiff \
>   --with-geotiff \
>   --with-jpeg \
>   --with-gif \
>   --with-ogdi=/usr/include/ogdi \
>   --with-jasper=/usr/lib \
>   --with-ecw=/usr/local \
>   --with-mrsid=/usr/local/Geo_DSDK-7.0.0.2167 \
>   --with-jp2mrsid \
>   --with-xerces \
>   --with-xerces-inc \
>   --with-xerces-lib \
>   --with-expat \
>   --with-expat-inc \
>   --with-expat-lib \
>   --with-odbc \
>   --with-curl=/usr/bin/curl-config \
>   --with-geos \
>   --with-perl \
>   --with-python
>
> I'll supply any more information as needed, such as installed packages,
> etc.
>
>
> Thanks in advance,
>
>
> --
> Steve Walker
> Middle Fork Geographic Information Services
> > http://mfgis.com
>


-- 
Steve Walker
Middle Fork Geographic Information Services
http://mfgis.com



More information about the gdal-dev mailing list