Hi,
I'm in the middle of setting up a new box to test Apache/PHP on the new Fedora 1 core, and I'm having some issues getting configure to run with --with-xpm-dir. I've installed the libXpm libraries (libXpm.3.4f-ELF) from ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.html, but I get this error when running configure....
checking for XpmFreeXpmImage in -lXpm... no
configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information.
config.log has this....
configure:30608: checking for XpmFreeXpmImage in -lXpm
configure:30627: gcc -o conftest -g -O2 -DDMALLOC_FUNC_CHECK -Wl,-rpath,/usr/X1
1R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/lib/gcc-lib/i386-redhat-linux/3.3.2 -L
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2 -Wl,-rpath,/usr/local/ssl/lib -L/usr/lo
cal/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lX11 conftest.c -lXpm -
lpng -lz -ljpeg -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lgdbm -lcurl -lcrack
-lcpdf -ltiff -ljpeg -lbz2 -lz -lssl -lcrypto -ldmalloc -lresolv -lm -ldl -lnsl
-lgcc -lcurl -lz -lssl -lcrypto -ldl -lz -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
configure: failed program was:
#line 30616 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char XpmFreeXpmImage();
int main() { XpmFreeXpmImage() ; return 0; }
The libXpm binaries are installed in /usr/X11R6, and I use that directory with the configure line...
--with-xpm-dir=/usr/X11R6
This is a Fedora 1 core box with Apache 1.3.29, trying to install php 4.3.4.
After searching numerous php mailing list, and just general php sites, and only finding either my own posts, or others asking the same with no responses, I expanded my search beyond php, and looked for anything having the problem, "/usr/bin/ld: cannot find -lX11". I found that I needed libX11.a (reading the error, I thought xpm could use either libX11 or libXpm, not that it needed both). Anyway, for Red Hat / Fedora, this is supplied by the XFree86-devel RPM. Also, it's good to not that the path for your X11 libs should be in /etc/ld.so.conf, and if you have to add them, run 'ldconfig' afterwards.
-- By-Tor.com It's all about the Rush http://www.by-tor.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php