Host build system: SunOS deimos 5.9 Generic_118558-17 sun4u sparc SUNW,Sun-Fire-V210 Solaris
After setting the CFALGS, CXXFLAGS and LDFLAGS environment variables to "-mcpu=v9 -m64" and
running ./configure and starting the build with the default make target, the build proceeds
successfully through the compiliation of object modules and the creation of libraries, both
static and dynamic. However, at the point where ogrinfo is to be built an error occurs due
to an ELF class conflict:
gmake[1]: Entering directory `/apps/opt/pub/src/gdal-1.4.2/ogr'
/bin/sh /opt/pub/src/gdal-1.4.2/libtool --mode=link g++ ogrinfo.o /opt/pub/src/gdal-1.4.2/libgdal.la -o ogrinfo
g++ ogrinfo.o -o .libs/ogrinfo /opt/pub/src/gdal-1.4.2/.libs/libgdal.so -lz -lrt -ldl -L/opt/pub/lib -Wl,-R -Wl,/home/pirl/castalia/tmp/gdal/sparcv9/lib
ld: fatal: file ogrinfo.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to .libs/ogrinfo
collect2: ld returned 1 exit status
gmake[1]: *** [ogrinfo] Error 1
gmake[1]: Leaving directory `/apps/opt/pub/src/gdal-1.4.2/ogr'
gmake: *** [ogr-apps] Error 2
Note the lack of the required -mcpu=v9 -m64 switches on the g++ command line. Manually entering
the ogr directory and submitting the g++ command line with the required switches works correctly.
So the problem is an inconsistency in the GDAL build system.
Bradford Castalia
Senior Systems Analyst
Planetary Image Research Laboratory / HiRISE Operations Center
University of Arizona