Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
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

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread thomas bonfort
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.gam...@coin.hr: Hi, I am still unable to compiče mapserver 6.0.1. I can't find this function (png_set_longjmpfn)

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
Hi Thomas Thanks for the help. As I said, I have system libpng installed in /usr/lib: dgambin@coin:~/mapserver-6.0.1$ dpkg -l libpng* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread thomas bonfort
can you try modifying mapimageio.c and replace #include png.h by #include /usr/local/include/png.h if you have both png 1.4 and 1.5 in /usr/local, you're asking for trouble, make sure this is not the case 2011/9/12 Dejan Gambin dejan.gam...@coin.hr: Hi Thomas Thanks for the help. As I said, I

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
It doesn't help :-( Here is the part of make compile statement with mapimageio.c, maybe this can help you: gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread thomas bonfort
2011/9/12 Dejan Gambin dejan.gam...@coin.hr: It doesn't help :-( Here is the part of make compile statement with mapimageio.c, maybe this can help you: gcc -c -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR           -DUSE_WMS_LYR -DUSE_WFS_LYR  

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
I get no output, just mapimageio.o generatedI'll try again...maybe some other option... dejan On 12. ruj. 2011., at 11:45, thomas bonfort wrote: 2011/9/12 Dejan Gambin dejan.gam...@coin.hr: It doesn't help :-( Here is the part of make compile statement with mapimageio.c, maybe this

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread thomas bonfort
make sure you remove the -o mapimageio.o from the call 2011/9/12 Dejan Gambin dejan.gam...@coin.hr: I get no output, just mapimageio.o generatedI'll try again...maybe some other option... dejan On 12. ruj. 2011., at 11:45, thomas bonfort wrote: 2011/9/12 Dejan Gambin

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
O sorry, here it is: mapimageio.o: mapimageio.c mapserver.h /usr/include/stdio.h \ /usr/include/features.h /usr/include/sys/cdefs.h \ /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ /usr/include/gnu/stubs-64.h \ /usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h \

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
Here is the ticket I created: http://trac.osgeo.org/mapserver/ticket/4019 regards, dejan On 12. ruj. 2011., at 11:45, thomas bonfort wrote: 2011/9/12 Dejan Gambin dejan.gam...@coin.hr: It doesn't help :-( Here is the part of make compile statement with mapimageio.c, maybe this can help

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread thomas bonfort
One last check: can you run the linker command with the -t option and post the output 2011/9/12 Dejan Gambin dejan.gam...@coin.hr: Here is the ticket I created: http://trac.osgeo.org/mapserver/ticket/4019 regards, dejan On 12. ruj. 2011., at 11:45, thomas bonfort wrote: 2011/9/12 Dejan

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
Is this ok? coin:/home/dgambin/mapserver-6.0.1# g++ -g -t -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread thomas bonfort
it's using the libpng.so from /usr/lib64 instead of /usr/local try adding -L/usr/local/lib right after -o shp2img.o 2011/9/12 Dejan Gambin dejan.gam...@coin.hr: Is this ok? coin:/home/dgambin/mapserver-6.0.1# g++ -g -t -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread thomas bonfort
Note that even though this may make it compile, you might end up with runtime errors as you are mixing png versions (gd is linked against libpng from /usr/lib64) you might try not using the system gd version, and compile your own one using the png version of /usr/local On Mon, Sep 12, 2011 at

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
Thanks Thomas, I have suspection something might be related to gd but wasn't sure. Besides this solution, where should I add this piece of code (-L/usr/local/lib) so it get linked properly? dejan On 12. ruj. 2011., at 12:24, thomas bonfort wrote: Note that even though this may make it

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread thomas bonfort
don't do that. recompile gd using the /usr/local libpng and reconfigure mapserver with --with-gd=/usr/local regards, thomas 2011/9/12 Dejan Gambin dejan.gam...@coin.hr: Thanks Thomas, I have suspection something might be related to gd but wasn't sure. Besides this solution, where should I

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
OK thanks very much regards, dejan On 12. ruj. 2011., at 12:29, thomas bonfort wrote: don't do that. recompile gd using the /usr/local libpng and reconfigure mapserver with --with-gd=/usr/local regards, thomas 2011/9/12 Dejan Gambin dejan.gam...@coin.hr: Thanks Thomas, I have

[mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-08 Thread Dejan Gambin
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