<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fixing undefined library symbols for compiling PHP 5.2.8</title>
	<atom:link href="http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/</link>
	<description>source control for my (useless) knowledge</description>
	<lastBuildDate>Tue, 09 Mar 2010 19:59:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lholcombe</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-3269</link>
		<dc:creator>lholcombe</dc:creator>
		<pubDate>Fri, 29 Jan 2010 00:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-3269</guid>
		<description>Towering heaps of thanks for this info.  My first issues were with iconv.  Then came openssl.  And then libxml.  I tried dangerous things like renaming the library and header files, but it just became a mess.  Modifying the makefile as recommended fixed everything.  I now have PostgreSQL support on my MacBookPro, something which should be standard.  I agree that PHP is at fault for this, but I wouldn&#039;t expect them to fix it, since it isn&#039;t really a &#039;bug&#039;.  More like a feature that inconveniences many Mac users.  Anyway, thanks again for your solution, I appreciate you taking the time so I don&#039;t have to.</description>
		<content:encoded><![CDATA[<p>Towering heaps of thanks for this info.  My first issues were with iconv.  Then came openssl.  And then libxml.  I tried dangerous things like renaming the library and header files, but it just became a mess.  Modifying the makefile as recommended fixed everything.  I now have PostgreSQL support on my MacBookPro, something which should be standard.  I agree that PHP is at fault for this, but I wouldn&#8217;t expect them to fix it, since it isn&#8217;t really a &#8216;bug&#8217;.  More like a feature that inconveniences many Mac users.  Anyway, thanks again for your solution, I appreciate you taking the time so I don&#8217;t have to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yiming</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-3079</link>
		<dc:creator>yiming</dc:creator>
		<pubDate>Wed, 06 Jan 2010 22:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-3079</guid>
		<description>Good to know.  The devs must have fixed it in more recent versions of the compilation system.  Furthermore, on OS X 10.6, the system libxml version shipped is recent enough that the problem doesn&#039;t crop up again -- but you may still be linking whatever is in /usr/lib.  When in doubt, use otool -L to check which library you linked against.

At the time this post was written, --with-libxml-dir had no effect, because -L/usr/lib was hardcoded to appear in front of anything you specified at link time.  As long as there was a incompatible version of libxml in /usr/lib, you won&#039;t be linking against the custom-compiled version.</description>
		<content:encoded><![CDATA[<p>Good to know.  The devs must have fixed it in more recent versions of the compilation system.  Furthermore, on OS X 10.6, the system libxml version shipped is recent enough that the problem doesn&#8217;t crop up again &#8212; but you may still be linking whatever is in /usr/lib.  When in doubt, use otool -L to check which library you linked against.</p>
<p>At the time this post was written, &#8211;with-libxml-dir had no effect, because -L/usr/lib was hardcoded to appear in front of anything you specified at link time.  As long as there was a incompatible version of libxml in /usr/lib, you won&#8217;t be linking against the custom-compiled version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-3078</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 06 Jan 2010 22:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-3078</guid>
		<description>I found that compiling my own libxml2 into a non system directory then using the --with-libxml-dir= compile flag fixed my problems.</description>
		<content:encoded><![CDATA[<p>I found that compiling my own libxml2 into a non system directory then using the &#8211;with-libxml-dir= compile flag fixed my problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Newbie</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-2563</link>
		<dc:creator>Newbie</dc:creator>
		<pubDate>Thu, 03 Dec 2009 04:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-2563</guid>
		<description>Firstly, Thank you for the extremely clear explanation of what&#039;s going on. I figure if I found my way to this post someone else with my problem will too so I wanted to comment how this helped me. I&#039;m running mac os 10.5.8 with apache 2.2 and trying to install php 5.3.1 with curl. It was giving me undefined symbols errors because it couldn&#039;t find iconv. I googled and found my way here. I tried this solution but it wasn&#039;t working. So I tried decompressing my php source download again and running ./configure... from a fresh directory and it worked. I know some of you may be laughing at me or thinking that there was some other fancy command line thingy I could do to refresh the directory but if it gave me trouble it may give someone else trouble so I&#039;m posting it here!

Further reading on this topic I found here:
http://bugs.php.net/bug.php?id=48195
http://jspr.tndy.me/2009/07/php-5-3-iconv-osx-symbols-missing-_libiconv/
and those two links at the top of this post</description>
		<content:encoded><![CDATA[<p>Firstly, Thank you for the extremely clear explanation of what&#8217;s going on. I figure if I found my way to this post someone else with my problem will too so I wanted to comment how this helped me. I&#8217;m running mac os 10.5.8 with apache 2.2 and trying to install php 5.3.1 with curl. It was giving me undefined symbols errors because it couldn&#8217;t find iconv. I googled and found my way here. I tried this solution but it wasn&#8217;t working. So I tried decompressing my php source download again and running ./configure&#8230; from a fresh directory and it worked. I know some of you may be laughing at me or thinking that there was some other fancy command line thingy I could do to refresh the directory but if it gave me trouble it may give someone else trouble so I&#8217;m posting it here!</p>
<p>Further reading on this topic I found here:<br />
<a href="http://bugs.php.net/bug.php?id=48195" rel="nofollow">http://bugs.php.net/bug.php?id=48195</a><br />
<a href="http://jspr.tndy.me/2009/07/php-5-3-iconv-osx-symbols-missing-_libiconv/" rel="nofollow">http://jspr.tndy.me/2009/07/php-5-3-iconv-osx-symbols-missing-_libiconv/</a><br />
and those two links at the top of this post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apache, PHP, Zend Debugger and Snow Leopard are conspiring to kill me &#8211; Tom Sartain &#124; Blog</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-1262</link>
		<dc:creator>Apache, PHP, Zend Debugger and Snow Leopard are conspiring to kill me &#8211; Tom Sartain &#124; Blog</dc:creator>
		<pubDate>Wed, 09 Sep 2009 18:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-1262</guid>
		<description>[...] MH_BUNDLE_FLAGS needs to be moved to the end of the group at line 155 otherwise I get more undefined errors [...]</description>
		<content:encoded><![CDATA[<p>[...] MH_BUNDLE_FLAGS needs to be moved to the end of the group at line 155 otherwise I get more undefined errors [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GSV_SleeperService</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-991</link>
		<dc:creator>GSV_SleeperService</dc:creator>
		<pubDate>Mon, 03 Aug 2009 19:36:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-991</guid>
		<description>Oh my goodness, thank you _so_ much; I&#039;d been driven right round the bend by this. Your solution (and your analysis of the arrogance on the part of the 
PHP developers) is, as has already been said, spot on.</description>
		<content:encoded><![CDATA[<p>Oh my goodness, thank you _so_ much; I&#8217;d been driven right round the bend by this. Your solution (and your analysis of the arrogance on the part of the<br />
PHP developers) is, as has already been said, spot on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yiming</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-905</link>
		<dc:creator>yiming</dc:creator>
		<pubDate>Sat, 18 Jul 2009 22:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-905</guid>
		<description>Yeah, I had the same inclination.  Initially I was convinced that I&#039;d somehow mis-compiled libxml and spent 15 minutes recompiling libxml :)

My fix is just a quick way to get past the problem, so I didn&#039;t submit a patch.  To really fix the underlying problem, the build system should try to link the library by full path when you specify your custom library path (gcc ... /usr/local/lib/libxml.dylib) rather than using directory search ( as in gcc ... -lxml )  This way, it will be sure to get the right library that you specifically told it to use, rather than always searching and finding the one living in the first -L path.

The point seems moot though -- from the PHP bugzilla, they didn&#039;t seem terribly interested in fixing the problem anyway (&quot;you should only have one library!&quot;)</description>
		<content:encoded><![CDATA[<p>Yeah, I had the same inclination.  Initially I was convinced that I&#8217;d somehow mis-compiled libxml and spent 15 minutes recompiling libxml <img src='http://blog.yimingliu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My fix is just a quick way to get past the problem, so I didn&#8217;t submit a patch.  To really fix the underlying problem, the build system should try to link the library by full path when you specify your custom library path (gcc &#8230; /usr/local/lib/libxml.dylib) rather than using directory search ( as in gcc &#8230; -lxml )  This way, it will be sure to get the right library that you specifically told it to use, rather than always searching and finding the one living in the first -L path.</p>
<p>The point seems moot though &#8212; from the PHP bugzilla, they didn&#8217;t seem terribly interested in fixing the problem anyway (&#8220;you should only have one library!&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RayRay</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-903</link>
		<dc:creator>RayRay</dc:creator>
		<pubDate>Sat, 18 Jul 2009 19:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-903</guid>
		<description>Thanks for the in depth review of this issue.  In retrospect, I should have looked at what the command line was obviously telling me, but since the configuration script allowed me to specify my library path I didn&#039;t think that was being overlooked.  I kept second guessing my install steps and not the php config script! 

Has this been submitted as a patch to the php.net folks?</description>
		<content:encoded><![CDATA[<p>Thanks for the in depth review of this issue.  In retrospect, I should have looked at what the command line was obviously telling me, but since the configuration script allowed me to specify my library path I didn&#8217;t think that was being overlooked.  I kept second guessing my install steps and not the php config script! </p>
<p>Has this been submitted as a patch to the php.net folks?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-681</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 05 Jun 2009 12:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-681</guid>
		<description>Great Post! and you are analysis is spot on!</description>
		<content:encoded><![CDATA[<p>Great Post! and you are analysis is spot on!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yiming</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-666</link>
		<dc:creator>yiming</dc:creator>
		<pubDate>Tue, 02 Jun 2009 23:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-666</guid>
		<description>Ah, because it&#039;s quite productive to be attacking your users anonymously when they reveal a potential shortcoming?  I investigated this issue simply because its occurrence &lt;em&gt;cost&lt;/em&gt; me personal productivity -- which I could have been using on my day job or my hobby projects.  The fact that others have reported the bug, and it has been declared invalid, suggests that even if I did put down time, effort, and expense to learn the intricacies of a build system, it would probably not be accepted anyway.  

This entire blog has consisted of &quot;workarounds for problems&quot;, which I hope will be useful to others.  However, at the end of the day, I neither enjoy nor get paid to fix compilation bugs in these packages, nor does my company depend upon any of these packages I&#039;ve had trouble with.  I have no particular incentive to learn the codebase to a project every time I run into a build problem; as you said, I&#039;d rather be productive :p</description>
		<content:encoded><![CDATA[<p>Ah, because it&#8217;s quite productive to be attacking your users anonymously when they reveal a potential shortcoming?  I investigated this issue simply because its occurrence <em>cost</em> me personal productivity &#8212; which I could have been using on my day job or my hobby projects.  The fact that others have reported the bug, and it has been declared invalid, suggests that even if I did put down time, effort, and expense to learn the intricacies of a build system, it would probably not be accepted anyway.  </p>
<p>This entire blog has consisted of &#8220;workarounds for problems&#8221;, which I hope will be useful to others.  However, at the end of the day, I neither enjoy nor get paid to fix compilation bugs in these packages, nor does my company depend upon any of these packages I&#8217;ve had trouble with.  I have no particular incentive to learn the codebase to a project every time I run into a build problem; as you said, I&#8217;d rather be productive :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-665</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 02 Jun 2009 22:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-665</guid>
		<description>You seem to have plenty of time writing arrogant blog posts. How about being productive and provide patches instead? Or is that too hard?</description>
		<content:encoded><![CDATA[<p>You seem to have plenty of time writing arrogant blog posts. How about being productive and provide patches instead? Or is that too hard?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-439</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Wed, 08 Apr 2009 07:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-439</guid>
		<description>Wonderful, thanks!</description>
		<content:encoded><![CDATA[<p>Wonderful, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renton</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-418</link>
		<dc:creator>Renton</dc:creator>
		<pubDate>Thu, 02 Apr 2009 18:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-418</guid>
		<description>Thankz a lot mate... really thanks!</description>
		<content:encoded><![CDATA[<p>Thankz a lot mate&#8230; really thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanstenarios</title>
		<link>http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/comment-page-1/#comment-386</link>
		<dc:creator>Sanstenarios</dc:creator>
		<pubDate>Wed, 25 Mar 2009 19:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yimingliu.com/?p=426#comment-386</guid>
		<description>Thanx so much for this yiming, had some lack of knowledge concerning makefiles ;
well, still have, but it goes better for php compiling now;</description>
		<content:encoded><![CDATA[<p>Thanx so much for this yiming, had some lack of knowledge concerning makefiles ;<br />
well, still have, but it goes better for php compiling now;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
