[Gdal-dev] linking problems with MrSID library
William Kyngesburye
woklist at kyngchaos.com
Sun Oct 2 17:03:38 EDT 2005
I've been having problems getting the MrSID dsdk to link to GDAL
since switching to CVS, and 1.3.x, from 1.2.6 recently.
I'm using the latest MrSID 5.0.6.955. With the new GDAL 1.3.1a2, I
get these link errors (compiling completes fine):
ld: Undefined symbols:
__ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvm
__ZNSt24__default_alloc_templateILb1ELi0EE8allocateEm
__ZNSs20_S_empty_rep_storageE
__ZNSaIcE8allocateEmPKv
__ZNSaIcED4Ev
__ZNSsD4Ev
/usr/bin/libtool: internal link edit command failed
With GDAL 1.3.0 and CVS before that, there were a LOT more undefined
symbols. I'm using GCC 4 on Mac OS X 10.4, but I've had the same in
the past using GCC 3.3 on Mac OS X 10.3.8 (haven't had a chance to
test 1.3.1a2 yet on 10.3), so I don't think it's a libstdc++ version
issue, yet.
Are those supposed to be in the mrsid library, or some other
library? I noticed that libxmlparse (yet another XML library!) was
added to the mrsid link options - I don't have that and I can't get
it to build on OS X (it's quite old). So I removed it from the mrsid
link options, since I didn't see anything in the GDAL docs or MrSID
docs that it needs xmlparse. If GDAL and/or MrSID needs it, it
should be mentioned in the build requirements.
-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/
"Those people who most want to rule people are, ipso-facto, those
least suited to do it."
- A rule of the universe, from the HitchHiker's Guide to the Galaxy
More information about the Gdal-dev
mailing list