[mapserver-users] Problem compiling MapServer 6.0.1 with libpng

thomas bonfort thomas.bonfort at gmail.com
Mon Sep 12 04:31:49 EDT 2011


Can you check you are linking against the same version libpng library
as the png.h header (i.e. check you don't have multiple png versions
installed)

2011/9/12 Dejan Gambin <dejan.gambin at coin.hr>:
> Hi,
>
> I am still unable to compiče mapserver 6.0.1. I can't find this function (png_set_longjmpfn) defined anywhere. Can someone give me a clue? I am almost sure I am doing some stupid mistake, but for me seems unsolvable :-(
>
> Thanks very much
>
> regards, dejan
> On 8. ruj. 2011., at 12:12, Dejan Gambin wrote:
>
>> Hi,
>>
>> After many trials and missings, I am still unable to compile MapServer 6.0.1 (6.0.0 also) on my Debian Lenny machine.
>>
>> Here is the error I get:
>>
>> ./libmapserver.a(mapimageio.o): In function `savePalettePNG':
>> /home/dgambin/mapserver-6.0.1/mapimageio.c:274: undefined reference to `png_set_longjmp_fn'
>> ./libmapserver.a(mapimageio.o): In function `saveAsPNG':
>> /home/dgambin/mapserver-6.0.1/mapimageio.c:461: undefined reference to `png_set_longjmp_fn'
>> ./libmapserver.a(mapimageio.o): In function `readPNG':
>> /home/dgambin/mapserver-6.0.1/mapimageio.c:738: undefined reference to `png_set_longjmp_fn'
>> collect2: ld returned 1 exit status
>>
>>
>> Here is my configure:
>>
>> ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gda
>> l-config --with-wfs --with-wfsclient --with-wmsclient --enable-debug --with-curl
>> -config=/usr/bin/curl-config --with-proj=/usr --with-jpeg --with-freetype=/usr/b
>> in/ --with-postgis=/usr/bin/pg_config --with-mysql=/usr/bin/mysql_config --with-
>> libiconv=/usr --with-kml=yes --with-php=/usr/include/php5 --with-png=/usr/local
>>
>> Since I have system libpng 1.2.27-2, I downloaded and installed 1.5.4 and put "--with-png=/usr/local" in my configure file. But seems like it doesn't help. I also tried with 1.4.8. Stiil the same issue. Also tried without "--with-png=/usr/local" (so it should use system libpng)...nothing
>>
>> I have compiled using newest gdal 1.8.1. GDAL compiled ok with libpng 1.5.4.
>>
>> Am I doing something wrong?
>>
>> Thank you very much for any useful info
>>
>> regards, dejan_______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list