[mapserver-users] compilation error

pablo lopez plablo09 at gmail.com
Fri May 14 07:02:22 PDT 2010


Thanks Roger Installing libogdi3.2-dev certainly solved the first issue,
then I had a problem with libpam, installing the -dev package solved that
issue, so now I succesfully compiled an installed mapserver!
Thanks a lot for your help.
Regards
P

On Thu, May 13, 2010 at 8:14 PM, Roger André <randre at gmail.com> wrote:

> Try installing the following ogdi packages with apt-get:
>
> libogdi3.2 - Open Geographic Datastore Interface Library -- library
> libogdi3.2-dev - Open Geographic Datastore Interface Library -- development
> ogdi-bin - Open Geographic Datastore Interface Library -- utilities
>
> No idea if that will do the trick though.  I've never seen that particular
> error before.
>
> Roger
> --
>
> On Wed, May 12, 2010 at 11:36 AM, pablo lopez <plablo09 at gmail.com> wrote:
>
>> Hi List, Im building mapserver 5.6.3 on a ubuntu box. The config script
>> I'm using is:
>> ./configure     --prefix=/usr \
>>         --with-ogr=/usr/bin/gdal-config \
>>                 --with-gdal=/usr/bin/gdal-config \
>>                 --with-httpd=/usr/sbin/apache2 \
>>                 --with-wfsclient \
>>         --with-fribidi \
>>                 --with-wmsclient \
>>         --with-wfs \
>>         --with-pdf \
>>                 --enable-debug \
>>                 --with-curl-config=/usr/bin/curl-config \
>>                 --with-proj=/usr \
>>                 --with-tiff \
>>                 --with-gd \
>>                 --with-jpeg \
>>         --with-png=/usr/lib \
>>                 --with-freetype=/usr/lib \
>>                 --with-threads \
>>                 --with-wcs \
>>                 --with-postgis=/usr/bin/pg_config \
>>                 --with-geos=/usr/bin/geos-config \
>>                 --with-libiconv=/usr/lib \
>>         --with-php=/usr/include/php5 \
>>                 --with-agg
>>
>>
>>  The config output is:
>>
>> MapServer is now configured for
>>
>>  -------------- Compiler Info -------------
>>   C compiler:                gcc -g  -fPIC -Wall
>>   C++ compiler:              g++ -g  -fPIC -Wall
>>   Debug:                     -g
>>   Generic NINT:
>>
>>  -------------- Renderer Settings ---------
>>   OpenGL support:
>>   zlib support:              -DUSE_ZLIB
>>   png support:
>>   palette rgba png support:
>>   jpeg support:
>>   iconv support:             -DUSE_ICONV
>>   AGG support:               -DUSE_AGG
>>   Cairo (SVG,PDF) support:
>>   Ming(flash) support:
>>   PDFLib support:            -DUSE_PDF
>>
>>  -------------- Support Libraries ---------
>>   Proj.4 support:            -DUSE_PROJ
>>   Libxml2 support:           -DUSE_LIBXML2
>>   FriBidi support:
>>   Curl support:              -DUSE_CURL
>>   FastCGI support:
>>   Threading support:         -DUSE_THREAD
>>   GEOS support:              -DUSE_GEOS -DGEOS_HAS_SIMPLIFY
>>
>>  -------------- Data Format Drivers -------
>>   native tiff support:       -DUSE_TIFF
>>   PostGIS support:           -DUSE_POSTGIS
>>   EPPL7 support:             -DUSE_EPPL
>>   ArcSDE support:
>>   OGR support:               -DUSE_OGR
>>   GDAL support:              -DUSE_GDAL
>>   Oracle Spatial support:
>>
>>  -------------- OGC Services --------------
>>   WMS Server:                -DUSE_WMS_SVR
>>   WMS Client:                -DUSE_WMS_LYR
>>   WFS Server:                -DUSE_WFS_SVR
>>   WFS Client:                -DUSE_WMS_LYR
>>   WCS Server:                -DUSE_WCS_SVR
>>   SOS Server:
>>
>>  -------------- MapScript -----------------
>>   PHP MapScript:             yes
>>
>>
>> Now, when i run make, it ends up with the following error:
>>
>> shp2img.c:33: warning: ‘cvsid_aw’ defined but not used
>> g++ -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCAT
>> -DNEED_STRRSTR        -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL
>> -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR    -DUSE_POSTGIS -DUSE_TIFF
>> -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY  -DUSE_THREAD -DUSE_PROJ
>> -DUSE_EPPL  -DUSE_AGG   -DUSE_PDF  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
>> -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
>> -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB     -I/usr/include
>> -I/usr/include/freetype2    -I/usr/include     -I/usr/include/gdal
>> -I/usr/include/postgresql     -I/usr/include    -I/usr/include/libxml2
>> shp2img.o  -L. -lmapserver -lgd -L/usr/lib64 -lgd -ljpeg -L/usr/lib
>> -lfreetype -L/usr/lib -lpng -lz -lXpm -lX11     -lpdf -ltiff -ljpeg
>> -L/usr/lib -lfreetype -L/usr/lib -lpng -lz -lXpm -lX11  -L/usr/lib64 -lproj
>> -ljpeg -L/usr/lib -lpng  -L/usr/lib -lgdal1.6.0 -L/usr/lib -lgeos_c
>> -I/usr/include -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib
>> -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdf -ldf -logdi -lgif -ljpeg -lpng
>> -lnetcdf -lpq -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lcurl
>> -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient
>> -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err
>> -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm   -lcurl  -L/usr/lib -lgeos_c
>> -lpthread -L -lc  -lz -lxml2  -lm -lstdc++    -o shp2img
>> /usr/bin/ld: cannot find -logdi
>> collect2: ld returned 1 exit status
>> make: *** [shp2img] Error 1
>>
>>
>> I'm lost here, any help is appreciated
>> Thanks
>> Pablo
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100514/9609519a/attachment.htm>


More information about the MapServer-users mailing list