Problems compiling with libXpm or libX11
| From: | John Nichel | Date: | Tue, 10 Jun 2003 23:02:10 +0000 |
| Subject: | Problems compiling with libXpm or libX11 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150980@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to configure php with xpm ( --with-xpm-dir=/usr/X11R6 ), and I keep getting this error....
configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information.
config.log has this...
configure:35198: checking for the location of libXpm
configure:35216: result: /usr/X11R6
then further down, this.....
configure:36062: checking for XpmFreeXpmImage in -lXpm
configure:36093: gcc -o conftest -g -O2
-L/usr/X11R6/lib -lX11
-Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c -lXpm -lpng -lz -ljpeg -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lz -lssl -lcrypto -ldl -lssl -lcrypto -lresolv -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -ldl -lz -lz >&5
/usr/X11R6/lib/libXpm.so: undefined reference to `__ctype_b'
/usr/X11R6/lib/libXpm.so: undefined reference to `_xstat'
/usr/X11R6/lib/libXpm.so: undefined reference to `_fxstat'
/usr/X11R6/lib/libXpm.so: undefined reference to `__ctype_tolower'
collect2: ld returned 1 exit status
configure:36096: $? = 1
configure: failed program was:
| #line 36069 "configure"
| /* confdefs.h. */
Red Hat 9 system, PHP 4.3.2, and apache 1.3.27. I installed the libX binaries from sunsite.unc.edu ( libXpm.3.4f-ELF.tar.gz ). Can somone shed some light on this problem?