Hello everyone! After a few hours of digging, I managed to solve the problem. I checked mapserver's dependencies and it was linked against agg 2.3: [r...@terra tmp]# ldd /var/www/cgi-bin/mapserv | grep agg libagg.so.2 => /usr/lib/libagg.so.2 (0x003f5000)
lrwxrwxrwx 1 root root 15 Jun 15 10:31 /usr/lib/libagg.so -> libagg.so.2.0.1 lrwxrwxrwx 1 root root 15 Jun 15 10:31 /usr/lib/libagg.so.2 -> libagg.so.2.0.1
-rwxr-xr-x 1 root root 228524 Feb 17 2006 /usr/lib/libagg.so.2.0.1However, when I compiled mapserver I pointed the AGG code (--with-agg) to version 2.5.
So mapserver had been compiled against agg 2.5 but was running with agg 2.3. This caused the segfault when using agg.
The solution is to compile AGG2.5 and to install it in the system.Unfortunately, the AGG documentation is scarce and doesn't clearly say how to compile the code, and even if I'm a linux seasoned user, I failed to see the autogen.sh script.
Here's how I compiled AGG:*sh autogen.sh ./configure --disable-platform --disable-examples --prefix=/usr make
make install * And now, I have also the newer libs in my /usr/lib/ directory: [r...@terra mapserver]# ls -l /usr/lib/libagg* -rw-r--r-- 1 root root 1313570 Jun 17 17:06 /usr/lib/libagg.a -rw-r--r-- 1 root root 395874 Jun 17 17:06 /usr/lib/libaggfontfreetype.a -rwxr-xr-x 1 root root 897 Jun 17 17:06 /usr/lib/libaggfontfreetype.lalrwxrwxrwx 1 root root 27 Jun 17 17:06 /usr/lib/libaggfontfreetype.so -> libaggfontfreetype.so.2.0.4 lrwxrwxrwx 1 root root 27 Jun 17 17:06 /usr/lib/libaggfontfreetype.so.2 -> libaggfontfreetype.so.2.0.4 -rwxr-xr-x 1 root root 283338 Jun 17 17:06 /usr/lib/libaggfontfreetype.so.2.0.4
-rwxr-xr-x 1 root root 785 Jun 17 17:06 /usr/lib/libagg.la -rw-r--r-- 1 root root 53282 Feb 17 2006 /usr/lib/libaggplatformX11.alrwxrwxrwx 1 root root 26 Jun 15 10:31 /usr/lib/libaggplatformX11.so -> libaggplatformX11.so.2.0.1 lrwxrwxrwx 1 root root 26 Jun 15 10:31 /usr/lib/libaggplatformX11.so.2 -> libaggplatformX11.so.2.0.1 -rwxr-xr-x 1 root root 43468 Feb 17 2006 /usr/lib/libaggplatformX11.so.2.0.1 lrwxrwxrwx 1 root root 15 Jun 17 17:06 /usr/lib/libagg.so -> libagg.so.2.0.4 lrwxrwxrwx 1 root root 15 Jun 17 17:06 /usr/lib/libagg.so.2 -> libagg.so.2.0.4
-rwxr-xr-x 1 root root 228524 Feb 17 2006 /usr/lib/libagg.so.2.0.1 -rwxr-xr-x 1 root root 774469 Jun 17 17:06 /usr/lib/libagg.so.2.0.4 And mapserver renders my maps very well (see attached photos) Thank you all for your help! Regards, Adrian
<<inline: agg.png>>
<<inline: png.png>>
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
