Opened 15 years ago
Closed 15 years ago
#3199 closed defect (invalid)
mapserver compile looking for mysqlclient when --without-mygis
Reported by: | milovanderlinden | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapServer C Library | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | |
Cc: |
Description
I try to compile mapserver with this configuration:
./configure --with-wfs --with-wfsclient --with-wmsclient --with-wms --with-proj --with-geos --with-gdal --with-ogr --with-agg --with-freetype --with-postgis --with-wcs --with-sos --with-fastcgi --with-fribidi-config --without-mygis --with-httpd=/usr/sbin/httpd2
./configure runs ok, but when I do make; I get:
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: * [shp2img] Fout 1
In my opinion, setting --without-mygis should stop libmysqlclient dependencies, am I right?
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Milo mentioned in IRC that this is coming in as part of GDAL_LIB based on gdal-config --libs showing it.
So the problem is that gdal-config is claiming a need for more libraries than is actually required.
In Milo's case presumably he has the fine grained runtime library (something like /usr/lib/libmysqlclient.so.15) which is used by libgdal, but he doesn't have the generic .so used when linking against libmysqlclient - the /usr/lib/libmysqlclient.so file - that would be in the mysql-dev package.
I believe the fix is for GDAL to better declare it's requirements (everything can be in --dep-libs).
Workarounds:
1) Remove -lmysqlclient from GDAL_LIBS manually
2) Install the mysql-dev package (not sure what it might be called)
Ticket filed upstream at:
Closing this ticket since it is not a mapserver problem per se.
It seems that mysqlclient is also referenced by GDAL as set in the Makefile, FrankW assured it can be removed.
workaround:
Alter line 139 in the Makefile and remove the reference to libmysqlclient