ID: 9175 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: *Install and Config Description: Configure isn't settings vars correctly I solved the second issue setting EXTRA_LDFLAGS=’ -L/usr/local/lib -L/usr/X11R6/lib’. Oh, I forgot: sorry for my english... :) Previous Comments: --------------------------------------------------------------------------- [2001-02-08 12:04:33] [EMAIL PROTECTED] Hi I'm compiling PHP 4.0.4pl1 with this configure: CFLAGS=’ -I/usr/local/jdk118/include -I/usr/local/jdk118/include/linux’ LDFLAGS=’ -L/usr/local/lib -L/usr/X11R6/lib’ ./configure --with-mysql=/usr/local/mysql --with-openssl=/usr/local/ssl --with-gd --enable-gd-imgstrttf --with-jpeg-dir=/usr/local/src/jpeg-6b -with-xpm-dir=/usr/local/src/xpm-3.4k --with-png --enable-exif --enable-inline-optimization --enable-memory-limit --enable-safe-mode --enable-sysvshm --enable-sysvsem --with-gnu-ld --with-exec-dir=/coda/apache/phpbin --with-mcrypt --with-mm --with-zlib --with-gettext --enable-ftp --enable-sockets --prefix=/usr/local/php4 --enable-versioning --with-config-file-path=/coda/apache/conf --with-apxs=/usr/local/apache/bin/apxs --with-jdk=/usr/local/jdk118 --with-servlet=/usr/local/JSDK2.0 --disable-url-fopen-wrapper --enable-freetype-4bit-antialias-hack --with-ttf but when I compile, I encounter this error: make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext' Making all in sapi make[1]: Entering directory `/usr/local/src/php-4.0.4pl1/sapi' Making all in servlet make[2]: Entering directory `/usr/local/src/php-4.0.4pl1/sapi/servlet' make[3]: Entering directory `/usr/local/src/php-4.0.4pl1/sapi/servlet' /usr/local/src/php-4.0.4pl1/build/shtool mkdir -p net/php javac net/php/reflect.java javac -classpath .:/usr/local/JSDK2.0/lib/jsdk.jar:.:/usr/local/jdk118/lib/classes.zip:/usr/local/JSDK2.0/lib/jsdk.jar net/php/servlet.java javac -classpath .:/usr/local/JSDK2.0/lib/jsdk.jar:.:/usr/local/jdk118/lib/classes.zip:/usr/local/JSDK2.0/lib/jsdk.jar net/php/formatter.java phpsrvlt.jar net/php/*.class net/php/*.properties /bin/sh: phpsrvlt.jar: command not found make[3]: *** [phpsrvlt.jar] Error 127 make[3]: Leaving directory `/usr/local/src/php-4.0.4pl1/sapi/servlet' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/php-4.0.4pl1/sapi/servlet' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1/sapi' make: *** [all-recursive] Error 1 as I can see, the var JAVA_JAR is equal to nothing, infact the shell try to launch file phpsrvlt.jar. /bin/sh: phpsrvlt.jar: command not found Searching for JAVA_JAR, I found it's set into 2 files ./configure ./ext/java/config.m4 and finally the result is saved in the file ./config_vars.mk where the var is set as JAVA_JAR = ... so, I correct that file in JAVA_JAR = jar -cf and all goes well. I don't know if it helps, but I'm using: IBM jdk 1.1.8 SUN JSDK 2.0 CLASSPATH=.:/usr/local/jdk118/lib/classes.zip . Another issues I think it's strange: if I don't set CFLAGS and LDFLAGS, many libs and includes files aren't find, and I get or configure errors, or make errors. With C and LD flags, configure reports: checking for c++... c++ checking whether the C++ compiler (c++ -L/usr/local/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/src/jpeg-6b/lib -L/usr/local/src/jpeg-6b/lib -Wl,-rpath,/usr/local/src/xpm-3.4k/lib -L/usr/local/src/xpm-3.4k/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql) works... yes checking whether the C++ compiler (c++ -L/usr/local/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/src/jpeg-6b/lib -L/usr/local/src/jpeg-6b/lib -Wl,-rpath,/usr/local/src/xpm-3.4k/lib -L/usr/local/src/xpm-3.4k/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking how to run the C++ preprocessor... c++ -E [snip] Configuring libtool checking build system type... i686-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes Settings CFLAGS and LDFLAGS appears to solve problem, but here: make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1/regex' Making all in . make[1]: Entering directory `/usr/local/src/php-4.0.4pl1' /bin/sh /usr/local/src/php-4.0.4pl1/libtool --silent --mode=compile gcc -I. -I/usr/local/src/php-4.0.4pl1/ -I/usr/local/src/php-4.0.4pl1/main -I/usr/local/src/php-4.0.4pl1 -I/usr/local/apache/include -I/usr/local/src/php-4.0.4pl1/Zend -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/mysql/include/mysql -I/usr/local/src/php-4.0.4pl1/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.4pl1/TSRM -DLINUX=22 -DMOD_SSL=208100 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -D_REENTRANT -DXML_BYTE_ORDER=12 -I../TSRM -I/usr/local/jdk118/include -I/usr/local/jdk118/include/linux -pthread -c stub.c /bin/sh /usr/local/src/php-4.0.4pl1/libtool --silent --mode=link gcc -I. -I/usr/local/src/php-4.0.4pl1/ -I/usr/local/src/php-4.0.4pl1/main -I/usr/local/src/php-4.0.4pl1 -I/usr/local/apache/include -I/usr/local/src/php-4.0.4pl1/Zend -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/mysql/include/mysql -I/usr/local/src/php-4.0.4pl1/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.4pl1/TSRM -DLINUX=22 -DMOD_SSL=208100 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -D_REENTRANT -DXML_BYTE_ORDER=12 -I../TSRM -I/usr/local/jdk118/include -I/usr/local/jdk118/include/linux -pthread -o libphp4.la -rpath /usr/local/src/php-4.0.4pl1/libs -avoid-version -L/usr/local/ssl/lib -L/usr/local/src/jpeg-6b/lib -L/usr/local/src/xpm-3.4k/lib -L/usr/local/lib -L/usr/local/mysql/lib/mysql -R /usr/local/ssl/lib -R /usr/local/src/jpeg-6b/lib -R /usr/local/src/xpm-3.4k/lib -R /usr/local/lib -R /usr/local/mysql/lib/mysql stub.lo Zend/libZend.la sapi/servlet/libsapi.la main/libmain.la regex/libregex.la ext/exif/libexif.la ext/ftp/libftp.la ext/gd/libgd.la ext/gettext/libgettext.la ext/mcrypt/libmcrypt.la ext/mysql/libmysql.la ext/openssl/libopenssl.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/sockets/libsockets.la ext/standard/libstandard.la ext/sysvsem/libsysvsem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la ext/zlib/libzlib.la TSRM/libtsrm.la -lpam -lstdc++ -ldl -lz -lmm -lmysqlclient -lmcrypt -lmcrypt -lz -lpng -lgd -lX11 -lXpm -ljpeg -lcrypto -lssl -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/local/src/jpeg-6b/lib -ljpeg -L/usr/local/src/xpm-3.4k/lib -lXpm -L/usr/local/src/xpm-3.4k/lib -lX11 /usr/bin/ld: cannot open -lX11: No such file or directory collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1' make: *** [all-recursive] Error 1 [root@localhost php-4.0.4pl1]# and I don't understand why isn't using my LDFLAGS. Please note that other parts of the same make are using the -L/usr/X11R6/lib, as configure recognizes it. Please let me know if you need other infos. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9175 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]