[Mapserver-users] Problems compiling mapserver 4.0.1 with MyGIS on OSX

Christopher Fonnesbeck chris at fonnesbeck.org
Mon Feb 9 09:55:22 PST 2004


I have compiled and installed the relevant libraries to build mapserver 
with MyGIS support, but building gives the following:

gcc -faltivec -lcc_dynamic -framework vecLib  -Wall 
-DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H 
-DUSE_WMS_SVR      -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL  -DUSE_MYGIS   
-I/usr/local/include         -I/usr/local/include -I/usr/local/include  
-I'/usr/local/mysql/include/mysql'    shp2img.o  -L. -lmap -lgd 
-L/usr/local/lib -lgd -ljpeg -lfreetype -L/usr/local/lib -lpng 
-L/usr/local/lib -lz  -liconv  -ltiff -ljpeg -lfreetype 
-L/usr/local/lib -lpng -L/usr/local/lib -lz  -liconv -lproj -ljpeg  
-L/usr/local/lib -lgdal    -L'/usr/local/mysql/lib/mysql' -lmysqlclient 
-lz -lm -L/usr/lib -lssl -lcrypto -lmysqlclient     -lm -lstdc++   -o 
shp2img
ld: warning can't open dynamic library: libpng12.0.1.2.5.dylib 
(checking for undefined symbols may be affected) (No such file or 
directory, errno = 2)
ld: warning multiple definitions of symbol _OBJ_NAME_remove
/usr/lib/libcrypto.0.9.dylib(o_names.o) definition of _OBJ_NAME_remove
/usr/lib/libcrypto.dylib(o_names.o) definition of _OBJ_NAME_remove
ld: warning multiple definitions of symbol _OBJ_NAME_new_index
/usr/lib/libcrypto.0.9.dylib(o_names.o) definition of 
_OBJ_NAME_new_index
/usr/lib/libcrypto.dylib(o_names.o) definition of _OBJ_NAME_new_index
ld: warning multiple definitions of symbol _OBJ_NAME_init
/usr/lib/libcrypto.0.9.dylib(o_names.o) definition of _OBJ_NAME_init

... lots of ld warnings as above ...

symbol _PKCS12_MAC_DATA_free used from dynamic library 
/usr/lib/libcrypto.0.9.dylib(p12_mac.o) not from earlier dynamic 
library /usr/lib/libcrypto.0.9.7.dylib(p12_asn.o)
symbol _i2d_PKCS12_MAC_DATA used from dynamic library 
/usr/lib/libcrypto.0.9.dylib(p12_mac.o) not from earlier dynamic 
library /usr/lib/libcrypto.0.9.7.dylib(p12_asn.o)
symbol _PKCS12_MAC_DATA_new used from dynamic library 
/usr/lib/libcrypto.0.9.dylib(p12_mac.o) not from earlier dynamic 
library /usr/lib/libcrypto.0.9.7.dylib(p12_asn.o)
symbol _SHA1 used from dynamic library 
/usr/lib/libcrypto.0.9.dylib(sha1_one.o) not from earlier dynamic 
library /usr/lib/libcrypto.0.9.7.dylib(sha1_one.o)
symbol _MD5 used from dynamic library 
/usr/lib/libcrypto.0.9.dylib(md5_one.o) not from earlier dynamic 
library /usr/lib/libcrypto.0.9.7.dylib(md5_one.o)
ld: Undefined symbols:
_mysql_connect
make: *** [shp2img] Error 1


Is the problem with libpng or mysql? Not sure how to fix this one.

Thanks for any advice,
C.
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia




More information about the MapServer-users mailing list