[Qgis-developer] SQL Anywhere Library conflict

Tim Sutton lists at linfiniti.com
Tue Dec 28 16:49:08 EST 2010


Hi Dave (and others interested in SQL Anywhere)

I cam across a problem with linking QGIS libs where I would get the
following error messages:


Linking CXX executable qgis
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libgdal1.7.0.so:
undefined reference to `SQLInstallDriverEx'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libgdal1.7.0.so:
undefined reference to `SQLRemoveDriver'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libgdal1.7.0.so:
undefined reference to `SQLInstallerError'
collect2: ld returned 1 exit status
make[2]: *** [src/app/qgis] Error 1
make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
make: *** [all] Error 2

After quite a bit of poking around I realised that there was probably
a conflict introduced by my recent SQLAnywhere install.

I commented out the line I added to my ~/.bashrc for SQL Anywhere:

# Added by Tim for sql anywhere support
#source /opt/sqlanywhere12/bin64/sa_config.sh

And then started a new shell, after which the QGIS libs linked
properly. I believe this is due the the libodbc shipped with SQL
Anywhere conflicting with my system lib.

So with that background, is there any elegant way to deal with this? I
guess the stock answer will be that typical users wont be compiling
QGIS so probably won't run into this - though I don't know if there
will be runtime issues introduced by this. Any thoughts? How do you
have your compilation environment set up?

Regards


-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list