I recently had a problem with the configure script from perfparse running properly so that I could 'make install' it to work with Nagios 2.10 on latest CentOS 4.x + RPMForge (see <span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">
<a href="http://readlist.com/lists/centos.org/centos/5/28966.html">http://readlist.com/lists/centos.org/centos/5/28966.html</a>). Thinking it was a problem that was a result of "yum remove gd", I formatted the box and reinstalled everything.
</span><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"><br class="webkit-block-placeholder"></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">
Now, oddly, I still have the same problem, and unlike before (before running "yum remove gd"), I cannot configure it without getting the following error:</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">
<br class="webkit-block-placeholder"></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"><div>***************************************************</div><div><div>***************************************************
<br class="webkit-block-placeholder"></div><div>"checking for gdlib-config... /usr/bin/gdlib-config<br></div></div></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">checking for gdMalloc in -lgd... no
</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">configure: error: required library libgd unusable.</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">
Install required and dependent files and rerun configure.</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">See config.log or FAQs for details."<br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">
<div>***************************************************</div><div><div>***************************************************<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div></div></span>
</div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"><br class="webkit-block-placeholder"></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">
The part of the config.log which looks relevant to the problem is the following:</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"><br class="webkit-block-placeholder"></span>
</div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"><br class="webkit-block-placeholder"></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;">
***************************************************</span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"><div>***************************************************<br class="webkit-block-placeholder">
</div><div>| /* Override any gcc2 internal prototype to avoid an error.  */</div><div>| #ifdef __cplusplus</div><div>| extern "C"</div><div>| #endif</div><div>| /* We use char because int might match the return type of a gcc2
</div><div>|    builtin and then its argument prototype would still apply.  */</div><div>| char gdMalloc ();</div><div>| int</div><div>| main ()</div><div>| {</div><div>| gdMalloc ();</div><div>|   ;</div><div>|   return 0;
</div><div>| }</div><div>configure:26962: result: no</div><div>configure:26974: error: required library libgd unusable.</div><div>Install required and dependent files and rerun configure.</div><div>See config.log or FAQs for details.
</div><div>***************************************************<br class="webkit-block-placeholder"></div><div>***************************************************<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder">
</div><div>and in the configure script, this pertains to the error as well</div><div><br class="webkit-block-placeholder"></div><div><div>***************************************************<br class="webkit-block-placeholder">
</div><div>***************************************************<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div></div><div><div>  LIBS="-lgd $LIBS"</div><div><br class="webkit-block-placeholder">
</div><div>else</div><div>  { { echo "$as_me:$LINENO: error: required library libgd unusable.</div><div>Install required and dependent files and rerun configure.</div><div>See config.log or FAQs for details." >&5
</div><div>echo "$as_me: error: required library libgd unusable.</div><div>Install required and dependent files and rerun configure.</div><div>See config.log or FAQs for details." >&2;}</div><div>   { (exit 1); exit 1; }; }
</div><div>fi</div><div><br class="webkit-block-placeholder"></div><div><div>***************************************************<br class="webkit-block-placeholder"></div><div>***************************************************
<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Any suggestions?  This was working (in that I could ./configure, just not "make && make install") before I removed gd, and once I formatted and reinstalled everything fresh, none of it works. Any help in the right direction would be greatly appreciated.
</div></div></div></span></div>