<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello everyone!<br>
<br>
After a few hours of digging, I managed to solve the problem. <br>
I checked mapserver's dependencies and it was linked against agg 2.3:<br>
[root@terra tmp]# ldd /var/www/cgi-bin/mapserv | grep agg<br>
    libagg.so.2 =&gt; /usr/lib/libagg.so.2 (0x003f5000)<br>
<br>
lrwxrwxrwx 1 root root     15 Jun 15 10:31 /usr/lib/libagg.so -&gt;
libagg.so.2.0.1<br>
lrwxrwxrwx 1 root root     15 Jun 15 10:31 /usr/lib/libagg.so.2 -&gt;
libagg.so.2.0.1<br>
-rwxr-xr-x 1 root root 228524 Feb 17  2006 /usr/lib/libagg.so.2.0.1<br>
<br>
However, when I compiled mapserver I pointed the AGG code (--with-agg)
to version 2.5. <br>
<br>
So mapserver had been compiled against agg 2.5 but was running with agg
2.3. This caused the segfault when using agg.<br>
<br>
The solution is to compile AGG2.5 and to install it in the system.<br>
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.<br>
Here's how I compiled AGG:<br>
<b>sh
autogen.sh                                                                                                                                                                      
<br>
./configure --disable-platform --disable-examples
--prefix=/usr                                                                                                                    
<br>
make                                                                                                                                                                               
<br>
make install  </b><br>
<br>
<br>
And now, I have also the newer libs in my /usr/lib/ directory:<br>
[root@terra mapserver]# ls -l /usr/lib/libagg*<br>
-rw-r--r-- 1 root root 1313570 Jun 17 17:06 /usr/lib/libagg.a<br>
-rw-r--r-- 1 root root  395874 Jun 17 17:06
/usr/lib/libaggfontfreetype.a<br>
-rwxr-xr-x 1 root root     897 Jun 17 17:06
/usr/lib/libaggfontfreetype.la<br>
lrwxrwxrwx 1 root root      27 Jun 17 17:06
/usr/lib/libaggfontfreetype.so -&gt; libaggfontfreetype.so.2.0.4<br>
lrwxrwxrwx 1 root root      27 Jun 17 17:06
/usr/lib/libaggfontfreetype.so.2 -&gt; libaggfontfreetype.so.2.0.4<br>
-rwxr-xr-x 1 root root  283338 Jun 17 17:06
/usr/lib/libaggfontfreetype.so.2.0.4<br>
-rwxr-xr-x 1 root root     785 Jun 17 17:06 /usr/lib/libagg.la<br>
-rw-r--r-- 1 root root   53282 Feb 17  2006 /usr/lib/libaggplatformX11.a<br>
lrwxrwxrwx 1 root root      26 Jun 15 10:31
/usr/lib/libaggplatformX11.so -&gt; libaggplatformX11.so.2.0.1<br>
lrwxrwxrwx 1 root root      26 Jun 15 10:31
/usr/lib/libaggplatformX11.so.2 -&gt; libaggplatformX11.so.2.0.1<br>
-rwxr-xr-x 1 root root   43468 Feb 17  2006
/usr/lib/libaggplatformX11.so.2.0.1<br>
lrwxrwxrwx 1 root root      15 Jun 17 17:06 /usr/lib/libagg.so -&gt;
libagg.so.2.0.4<br>
lrwxrwxrwx 1 root root      15 Jun 17 17:06 /usr/lib/libagg.so.2 -&gt;
libagg.so.2.0.4<br>
-rwxr-xr-x 1 root root  228524 Feb 17  2006 /usr/lib/libagg.so.2.0.1<br>
-rwxr-xr-x 1 root root  774469 Jun 17 17:06 /usr/lib/libagg.so.2.0.4<br>
<br>
And mapserver renders my maps very well (see attached photos)<br>
<br>
Thank you all for your help!<br>
Regards,<br>
Adrian<br>
<br>
</body>
</html>