<P>That's for doing that fix. I was using GD 2.0.1 when I got that problem. That GD version worked fine with PHP and various formats but apparently MapServer didn't think it had those image formats supported in GD.
<P>I just installed GD 2.0.7 and all is good now.
<P>Another issue that came up during the install was this error:
<P>...
<P>checking whether we should use PHP's regex... no<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PHP/MapScript module configured.<BR>updating cache ./config.cache<BR>creating ./config.status<BR>creating Makefile<BR>creating mapscript/php3/Makefile<BR>ns01$ gmake<BR>gcc -c -O2&nbsp; -Wall -DIGNORE_MISSING_DATA&nbsp; -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS<BR>&nbsp;-DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY&nbsp;&nbsp;&nbsp;&nbsp; -DUSE_POSTGIS&nbsp;&nbsp; -I/usr/local/include&nbsp; -I/usr/lo<BR>cal/include -I/usr/pkg/include -I/usr/pkg/include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -I&nbsp;&nbsp; maptemplate.c -o maptemplate.o<BR>gcc: No input files<BR>gmake: *** [maptemplate.o] Error 1<BR>ns01$
<P>---
<P>I searched the archive and found two other instances where some one else had that problem but no replies/solutions were given.
<P>I tracked the problem down to the configure options: 
<P>--with-postgis[=ARG]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Include PostGIS Support (ARG=yes/path to pg_config)<BR>--with-freetype=DIR&nbsp;&nbsp;&nbsp;&nbsp; Specify where FreeType is installed (DIR is path to<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FreeType 2.x freetype-config program or FreeType<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.x/2.x install dir).
<P>The above references 'path to XXXX', most would type the actual directory path like:
<P>--with-postgis=/usr/local/bin \<BR>--with-freetype=/usr/pkg/bin \</P>
<P>Which will result in that "gcc: No input files" error. Instead they should supply the full path of the program:</P>
<P>--with-postgis=/usr/local/bin/pg_config \<BR>--with-freetype=/usr/pkg/bin/freetype-config \ # Only if FreeType 2.x<BR>
<P>&nbsp;<B><I>Frank Warmerdam &lt;warmerdam@pobox.com&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Caffeinate The World wrote:<BR>&gt; I get this compile error in both latest stable and nightly built:<BR>&gt; <BR>&gt; --- from nightly built<BR>&gt; <BR>&gt; ns01$ gmake<BR>&gt; gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ <BR>&gt; -DUSE_PROJ_API_H -DUSE_WMS_S<BR>&gt; VR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY -DUSE_POSTGIS <BR>&gt; -I/usr/local/include -I<BR>&gt; /usr/local/include -I/usr/pkg/include -I/usr/pkg/include <BR>&gt; -I/usr/local_install/postgre<BR>&gt; sql-7.2.3/include mapwms.c -o mapwms.o<BR>&gt; mapwms.c: In function `msWMSGetCapabilities':<BR>&gt; mapwms.c:705: syntax error before `,'<BR>&gt; gmake: *** [mapwms.o] Error 1<BR><BR>Hi,<BR><BR>I have committed a fix for this. It looks as if you don't have any of<BR>USE_GD_GIF, USE_GD_PNG, USE_GD_JPEG or USE_GD_WBMP defined for some reason<BR>so there are none of the strings in the #ifdef selected.<BR><BR>However, even with my fix it is clear you aren't going to be able to operate<BR>properly since you will have no formats supported. I would suggest looking<BR>into why none of the USE_GD_XXX constants are defined in your makefile.<BR>When I compile mapwwms.c it looks like this:<BR><BR><BR>gcc -c -g -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ <BR>-DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG <BR>-DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_THREAD <BR>-I/usr/include -I/home/warmerda/gdal/port -I/home/warmerda/gdal/core <BR>-I/home/warmerda/gdal/ogr -I/home/warmerda/gdal/ogr/ogrsf_frmts -I/usr/local/include <BR>-I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww <BR>-DHAVE_CONFIG_H mapwms.c -o mapwms.o<BR><BR>Best regards,<BR>-- <BR>---------------------------------------+--------------------------------------<BR>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com<BR>light and sound - activate the windows | http://pobox.com/~warmerdam<BR>and watch the world go round - Rush | Geospatial Programmer for Rent<BR><BR></BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>