<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I am having a problem rendering labels to my map. I am running mapserver from ubuntu intrepid packages (none compiled). Kernel is&nbsp; 2.6.27-7-generic. Since this is obviously a common function I must be doing something wrong in the layer or something in the packages is not meshing. Everything works until I try to do anything with TrueType fonts, but I am not sure why gdal would have anything to do with this. When I try to add a label to a working layer (called 'clpoint'), the client gets a 500. Funny because the mapserver log reports lots of stuff like this for the layer (but no error):<br><br><br>40 2009].797599 msDrawMap(): Layer 6 (clpoint), 0.000s<br>[Wed Apr&nbsp; 8 08:24:40 2009].797672 msDrawMap(): Drawing Label Cache, 0.000s<br>[Wed Apr&nbsp; 8 08:24:40 2009].797693 msDrawMap() total time: 0.001s<br>[Wed Apr&nbsp; 8 08:24:40 2009].803041 msFreeMap():
 freeing map at 0x8d21ed8.<br>[Wed Apr&nbsp; 8 08:24:40 2009].895713 CGI Request 1 on process 29681<br>[Wed Apr&nbsp; 8 08:24:40 2009].896030 msWMSLoadGetMapParams(): enabling non-square pixels.[Wed Apr&nbsp; 8 08:24:40 2009].902272 msDrawMap(): kicking into non-square pixel preserving mode.[Wed Apr&nbsp; 8 08:24:40 2009].902928 msDrawMap(): Layer 6 (clpoint), 0.001s<br>[Wed Apr&nbsp; 8 08:24:40 2009].903194 msDrawMap(): Drawing Label Cache, 0.000s<br>[Wed Apr&nbsp; 8 08:24:40 2009].903236 msDrawMap() total time: 0.001s<br>[Wed Apr&nbsp; 8 08:24:40 2009].908839 msFreeMap(): freeing map at 0x8971ed8.<br>[Wed Apr&nbsp; 8 08:24:40 2009].928955 CGI Request 1 on process 29683<br><br><br>but syslog reports a bunch of these:<br>Apr&nbsp; 8 08:24:40 geoserver kernel: [1017419.869331] mapserv[29680]: segfault at bf41cfec ip b780fd4b sp bf41cfe0 error 6 in libgdal1.5.0.so.1.12.2[b7736000+4df000]<br>Apr&nbsp; 8 08:24:40 geoserver kernel: [1017419.916239]
 mapserv[29682]: segfault at bf72fffc ip b7821d56 sp bf730000 error 6 in libgdal1.5.0.so.1.12.2[b7748000+4df000]<br><br>--The layer in question:<br>&nbsp;&nbsp;&nbsp;&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wms_title&nbsp;&nbsp;&nbsp; "clpoint"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE POINT<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "clpoint"<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA "../shapes/clpoint/clpoint.shp"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELITEM "CLPTLABEL"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELCACHE ON<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 213 200 230<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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E<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>#This works fine<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASS<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "../symbols/historical.png"<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 20<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 END<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JOIN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TABLE "../shapes/clpoint/clpoint.dbf"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "clpoint"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM "PolyId"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TO "PolyId"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE ONE-TO-ONE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp; END<br><br><br>--Mapserver configuration:<br>MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br><br>--gdlib configuration:<br>#
 gdlib-config --version<br>2.0.36<br># gdlib-config --libs<br>-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm<br><br><br>--Gdal configuration:<br># gdal-config --libs<br>-L/usr/lib -lgdal1.5.0&nbsp; (this 1.5.0 seems odd to me)<br>#gdal-config --version<br>1.5.2<br># gdal-config --ogr-enabled<br>yes<br><br>--The libraries:<br>-rw-r--r-- 1 root root 8817022 2008-07-04 11:08 /usr/lib/libgdal1.5.0.a<br>-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp; 1345 2008-07-04 11:08 /usr/lib/libgdal1.5.0.la<br>lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 22 2009-04-07 16:29 /usr/lib/libgdal1.5.0.so -&gt; libgdal1.5.0.so.1.12.2<br>lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 22 2009-03-31 12:43 /usr/lib/libgdal1.5.0.so.1 -&gt; libgdal1.5.0.so.1.12.2<br>-rw-r--r-- 1 root root 5438428 2008-07-04 11:08 /usr/lib/libgdal1.5.0.so.1.12.2<br><br>--Things I have checked<br>*The font.list is present and seems to be read (fails with a clearer error when I
 reference a fake font.).<br>*The font file is a valid true type font and has all permissions. Tried different fonts.<br>*The shape file and the dbf file are readable by other tools and CLPTLABEL in the dbf file has the data I want. <br><br><br>Can someone please tell me where I am going wrong (and thank you)? Sorry for the long post.<br></td></tr></table><br>