<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I'm trying to build GDAL 2.1.2 on Fedora 15 Linux. I'm using a
complicated environment and collection of .a files (because .so's
are like a box of chocolates) and running into a some GDAL-internal
function that's missing:<br>
<br>
g++ -L/cw/builds_3p/linux_f15_x64/lib gdalinfo_bin.o
/cw/src_3p/gdal-2.1.2/libgdal.a -L/cw/builds_3p/linux_f15_x64/lib
-lproj -L/cw/builds_3p/linux_f15_x64/lib -lexpat -L/usr/local/lib
-lxerces-c -lpthread -L/cw/builds_3p/linux_f15_x64
-L/cw/builds_3p/linux_f15_x64/lib -logdi
-L/cw/builds_3p/linux_f15_x64 -L/cw/builds_3p/linux_f15_x64/lib
-ljpeg -L/cw/builds_3p/linux_f15_x64/lib -lgeotiff
-L/cw/builds_3p/linux_f15_x64/lib -ltiff -lpng -lz
-L/cw/builds_3p/linux_f15_x64 -L/cw/builds_3p/linux_f15_x64/lib
-lpthread -lm -lrt -ldl -ljpeg -lecwj2 -lcurl
-L/cw/builds_3p/linux_f15_x64/3rd-party/lib
-L/cw/builds_3p/linux_f15_x64/lib -lltidsdk -lpthread
-L/cw/builds_3p/linux_f15_x64/lib -llti_lidar_dsdk
-L/cw/builds_3p/linux_f15_x64/lib -lxml2
-L/cw/builds_3p/linux_f15_x64/lib -lz -lm -o gdalinfo<br>
<br>
/cw/src_3p/gdal-2.1.2/libgdal.a(vrtfilters.o): In function
`VRTFilteredSource::RasterIO(int, int, int, int, void*, int, int,
GDALDataType, long long, long long, GDALRasterIOExtraArg*)':<br>
<br>
<b>vrtfilters.cpp:(.text+0xab4): undefined reference to `CPLErr
VRTComplexSource::RasterIOInternal<float>(int, int, int,
int, void*, int, int, GDALDataType, long long, long long,
GDALRasterIOExtraArg*, GDALDataType)'</b><br>
<br>
collect2: ld returned 1 exit status<br>
make[1]: *** [gdalinfo] Error 1<br>
make[1]: Leaving directory
`/home/sourcetree/cw/src_3p/gdal-2.1.2/apps'<br>
make: *** [apps-target] Error 2<br>
<br>
The configuration is set with:<br>
<br>
./configure \<br>
--prefix="${BUILD_DIR}" \<br>
--disable-shared \<br>
--enable-static \<br>
--with-pic \<br>
--without-ld-shared \<br>
--without-libtool \<br>
--with-libz="${BUILD_DIR}" \<br>
--with-jpeg="${BUILD_DIR}" \<br>
--with-ogdi="${BUILD_DIR}" \<br>
--with-libz="${BUILD_DIR}" \<br>
--with-expat="${BUILD_DIR}" \<br>
--with-static-proj4="${BUILD_DIR}" \<br>
--with-libtiff="${BUILD_DIR}" \<br>
--with-geotiff="${BUILD_DIR}" \<br>
--with-ecw="${BUILD_DIR}" \<br>
--with-mrsid="${MRSID}" \<br>
--with-jp2mrsid="${MRSID_JP2}" \<br>
--with-mrsid_lidar="${MRSID_LIDAR}" \<br>
--without-sqlite3 \<br>
--without-gif \<br>
--without-oci \<br>
--without-odbc \<br>
--with-curl<br>
<br>
where the variables refer to the locations of other pre-built
third-party libraries.<br>
<br>
Any ideas on what's going wrong?<br>
<br>
<div class="moz-signature">-- <br>
Dr. Craig S. Bruce
<br>
Senior Software Developer
<br>
CubeWerx<i> </i>Inc.
<br>
<a href="http://www.cubewerx.com/">http://www.cubewerx.com</a></div>
</body>
</html>