From: Daniel Frey <dmfrey+<linux@gm...> - 2007-11-15 00:33:28
I struggled with this one for quite some time. I ended up building it
myself and not using the packaged version.
Here is my configure statement:
CC=arm-linux-gcc CFLAGS='-fPIC' ./configure --host=arm-linux
Execute this, adjusting for your own paths of course, and they you can
do a make && make install.
I hope this helps.
I am trying to build PHP for a netstix 200xm-cf, but the linking stage fails
with the error "cannot find -lxml2." I have previously successfully built
PHP with Zlib and OpenSSL support. I believe (though I am not familiar
enough with the GNU Autotools to be sure) that the library paths are somehow
being incorrectly set when the configure script for PHP is run with libxml2
support enabled, because if I try to build with OpenSSL, libxml2, and Zlib,
the linker is no longer able to find -lcrypto as well.
Particularly perplexing are the contents of the config.log generated by
PHP's configure script, which shows all attempts to link against -lxml2
failing, yet the script completes successfully and compilation of PHP
I have verified that the xml libraries were built successfully and are
located in $(STAGING_DIR)/usr/lib. I have tried the changes mentioned here:
and read these messages:
with no success.
I am using Buildroot revision 1554.
Any suggestions would be appreciated.