[Gdal-dev] Any possibility of static compile?

Eric Dönges eric.doenges at gmx.net
Tue Dec 5 02:09:11 EST 2006


Am 04.12.2006 um 21:30 schrieb Curt, WE7U:

> Here's the first part of the final link for my app.  The errors go
> on for many pages after that:
>
> lsbcc  -g -O2 -Wl,--no-keep-memory -L/opt/lsb/lib -L/opt/lsb/lib
> -L/opt/lsb-gdal/lib -lgdal -L/opt/lsb-graphicsmagick/lib -o xastir
> alert.o awk.o bulletin_gui.o color.o datum.o db.o dbfawk.o
> draw_symbols.o fcc_data.o festival.o geo-find.o geocoder_gui.o gps.o
> hashtable.o hashtable_itr.o hostname.o igate.o interface.o
> interface_gui.o io-common.o io-mmap.o lang.o list_gui.o locate_gui.o
> location.o location_gui.o main.o maps.o map_cache.o map_dos.o
> map_gdal.o map_geo.o map_gnis.o map_pdb.o map_shp.o map_tif.o
> map_tiger.o map_WMS.o messages.o messages_gui.o objects.o
> popup_gui.o rac_data.o rotated.o rpl_malloc.o shp_ hash.o snprintf.o
> sound.o track_gui.o util.o view_message_gui.o wx.o wx_gui.o
> x_spider.o xa_config.o compiledate.o -Lrtree -lrtree -Lshapelib
> -lshape -lXm -lXt -lX11 -lGraphicsMagick -ltiff -ljasper -ljpeg -
> lpng -lz -lm -lpthread -ldb -lrt -lXm -lXt -lSM -lICE -lX11 -lcurl
> -lpcre -lproj -lgeotiff -ltiff -ljpeg -lz -lproj -lgdal
> Warning: forcing gdal to be linked statically
> Warning: forcing rtree to be linked statically
> Warning: forcing shape to be linked statically
> Warning: forcing Xm to be linked statically
> Warning: forcing GraphicsMagick to be linked statically
> Warning: forcing tiff to be linked statically
> Warning: forcing jasper to be linked statically
> Warning: forcing jpeg to be linked statically
> Warning: forcing png to be linked statically
> Warning: forcing db to be linked statically
> Warning: forcing Xm to be linked statically
> Warning: forcing curl to be linked statically
> Warning: forcing pcre to be linked statically
> Warning: forcing proj to be linked statically
> Warning: forcing geotiff to be linked statically
> Warning: forcing tiff to be linked statically
> Warning: forcing jpeg to be linked statically
> Warning: forcing proj to be linked statically
> Warning: forcing gdal to be linked statically
> /opt/lsb-gdal/lib/libgdal.a(gdalallregister.o):(.eh_frame+0x11):  
> undefined reference to `__gxx_personality_v0'
> /opt/lsb-gdal/lib/libgdal.a(geotiff.o): In function  
> `GTiffRasterBand::GTiffRasterBand(GTiffDataset*, int)': geotiff.cpp: 
> (.text+0x36e): undefined reference to `_Unwind_Resume'
> /opt/lsb-gdal/lib/libgdal.a(geotiff.o): In function  
> `GTiffRasterBand::GTiffRasterBand(GTiffDataset*, int)': geotiff.cpp: 
> (.text+0x6ee): undefined reference to `_Unwind_Resume'
> /opt/lsb-gdal/lib/libgdal.a(geotiff.o): In function  
> `GTiffRasterBand::SetColorTable(GDALColorTable*)': geotiff.cpp: 
> (.text+0x9a9): undefined reference to `operator delete(void*)'
> /opt/lsb-gdal/lib/libgdal.a(geotiff.o): In function  
> `GTiffDataset::GTiffDataset()': geotiff.cpp:(.text+0xd52):  
> undefined reference to `_Unwind_Resume'

Curt,

since I don't have lsbcc on my system I can only guess, but this  
looks more like a C++
problem than a GDAL-specific problem to me. Specifically, it looks  
like it is missing
the standard C++ library. Perhaps lsbcc has an option to tell it to  
link C++ binaries ?

With kind regards,
Eric



More information about the Gdal-dev mailing list