Re: PHP 4.0 Bug #7758 Updated: Configure fails with --with-xpm-dir=/usr

From: Date: Sat, 11 Nov 2000 18:11:16 +0000
Subject: Re: PHP 4.0 Bug #7758 Updated: Configure fails with --with-xpm-dir=/usr
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37760@lists.php.net to get a copy of this message
Tried it, and latest CVS dump as well before that (configure line & errors included below) the configure line is: ./configure --target=i386-redhat-linux --prefix=/usr/local --disable-debug --enable-pic --enable-inline-optimization --with-regex=system --with-gettext --with-gd --with-jpeg-dir=/usr --with-png --with-zlib --with-db2 --with-db3 --with-gdbm --enable-debugger --disable-magic-quotes --enable-safe-mode --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-yp --enable-ftp --with-mysql=/usr/local --with-xml --enable-sockets --with-imap=../imap-4.7c --with-ldap --enable-bcmath --enable-url-fopen-wrapper --with-readline --enable-freetype-4bit-antialias-hack --with-snmp --with-mhash=/usr/local --with-mcrypt=/usr/local --with-xpm-dir=/usr --with-bz2 --enable-calendar --with-kerberos --with-apache=../apache_1.3.14 the error from configure: checking whether to include GNU gettext support... yes checking for bindtextdomain in -lintl... no checking for bindtextdomain in -lc... no configure: error: Unable to find required gettext library from config.log: (whats -lX11 doing in there?!?! and if it should be there, shouldnt we -L/usr/X11/lib ? im prety sure thats the big error ... xpm sets included libs to + -lX11, but doesnt append -L/usr/X11/lib ... right?) configure:16659: checking whether to include GNU gettext support configure:16718: checking for bindtextdomain in -lintl configure:16737: gcc -o conftest -g -O2 -L/usr/lib conftest.c -lintl -lttf -lgd -lX11 -lXpm -ljpeg -ldb -ldb2 -lgdbm -lbz2 -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/lib -ljpeg -L/usr/lib -lXpm -lX11 1>&5 /usr/bin/ld: cannot find -lintl collect2: ld returned 1 exit status configure: failed program was: #line 16726 "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 bindtextdomain(); int main() { bindtextdomain() ; return 0; } configure:16757: checking for bindtextdomain in -lc configure:16776: gcc -o conftest -g -O2 -L/usr/lib conftest.c -lc -lttf -lgd -lX11 -lXpm -ljpeg -ldb -ldb2 -lgdbm -lbz2 -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/lib -ljpeg -L/usr/lib -lXpm -lX11 1>&5 /usr/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status configure: failed program was: #line 16765 "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 bindtextdomain(); int main() { bindtextdomain() ; return 0; } Bug Database wrote: > ID: 7758 > Updated by: sniper > Reported By: chabotc@reviewboard.com > Status: Feedback > Bug Type: Compile Problem > Assigned To: > Comments: > > Please try latest snapshot from http://snaps.php.net > as I think I have fixed this already. > > If it still doesn't work (when using the latest snapshot) please include the > full error messages into this report. > > --Jani > > Previous Comments: > --------------------------------------------------------------------------- > > [2000-11-11 09:52:43] chabotc@reviewboard.com > When configuring php 4.0.3pl1 (also tried 4.0.2/4.0.1) using > --with-xpm-dir=/usr > breaks the configure script ... when trying to use --with-gettext, or --with-zlib ... if those > 2 options are excluded, the configure does execute, but the compile fails on the final > 'ld' command ... > > when u leave out the --with-xpm-dir, it compiles perfectly on rh7... though the config script > does prompt you to please include --with-xpm-dir since its 'required' for gd 1.8+ > > --------------------------------------------------------------------------- > > Full Bug description available at: http://bugs.php.net/?id=7758

« previous php.dev (#37760) next »