[PHP-DEV] PHP 4.0 Bug #9175 Updated: Configure isn't settings vars correctly

2001-03-29 Thread sniper

ID: 9175
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Old-Bug Type: *Install and Config
Bug Type: Java related
Assigned To: 
Comments:

Does this happen with latest CVS snapshot from http://snaps.php.net/ ?

--Jani


Previous Comments:
---

[2001-02-08 13:30:32] [EMAIL PROTECTED]
Other little issue: at make install, I got other errors. First is:

Making install in .
make[1]: Entering directory `/usr/local/src/php-4.0.4pl1'
/usr/local/src/php-4.0.4pl1/build/shtool install -c -m 0755 
/usr/local/src/php-4.0.4pl1//sapi/servlet/phpsrvlt.jar /usr/local/php4/lib; 
/usr/local/src/php-4.0.4pl1/build/shtool install -c -m 0755 libs/libphp4.so 
/usr/local/php4/lib
mkdir: cannot make directory `/usr/local/php4/lib': File exists
mkdir: cannot make directory `/usr/local/php4/lib/php': Not a directory
mkdir: cannot make directory `/usr/local/php4/lib/php/extensions': Not a directory
mkdir: cannot make directory 
`/usr/local/php4/lib/php/extensions/no-debug-zts-20001214': Not a directory
make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1'
Making install in pear
make[1]: Entering directory `/usr/local/src/php-4.0.4pl1/pear'
make[2]: Entering directory `/usr/local/src/php-4.0.4pl1/pear'
mkdir: cannot make directory `/usr/local/php4/lib': File exists
mkdir: cannot make directory `/usr/local/php4/lib/php': Not a directory
+--+
| The installation process is incomplete. The following resources were |
| not installed:   |
|  |
|   Self-contained Extension Support   |
|   PEAR: PHP Extension and Add-on Repository  |
|  |
| To install these components, become the superuser and execute:   |
|  |
|   # make install-su  |
+--+
make[2]: *** [install-data-local] Error 5
make[2]: Leaving directory `/usr/local/src/php-4.0.4pl1/pear'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1/pear'
make: *** [install-recursive] Error 1

If I manually create the dirs /usr/local/php4, /usr/local/php4/bin and 
/usr/local/php4/lib, all goes well. Oh, even removing --prefix=/usr/local/php4 will 
work.

I saw that with the configure above the make install puts libphp4.so in 
/usr/local/php4/lib (meanwhile without --prefix libphp4.so went left in 
/usr/local/lib): why that configure is "jumping" the apxs part?

I mean, if I compile php4 with this little configure

./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning 
--enable-track-vars

make install will do

Making install in .
make[1]: Entering directory `/usr/local/src/php-4.0.4pl1'
/usr/local/apache/bin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
chmod 755 /usr/local/apache/libexec/libphp4.so
[activating module `php4' in /coda/apache/conf/httpd.conf]

but if I use the "long" :) configure, make install ignore apxs. Look:

Making install in .
make[1]: Entering directory `/usr/local/src/php-4.0.4pl1'
/usr/local/src/php-4.0.4pl1/build/shtool install -c -m 0755 /usr/local/src/php-4
.0.4pl1//sapi/servlet/phpsrvlt.jar /usr/local/php4/lib; /usr/local/src/php-4.0.4
pl1/build/shtool install -c -m 0755 libs/libphp4.so /usr/local/php4/lib
installing shared modules into /usr/local/php4/lib/php/extensions/no-debug-zts-2
0001214
make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1'

Is it a my fault?

Thank you

---

[2001-02-08 12:21:38] [EMAIL PROTECTED]
I solved the second issue setting EXTRA_LDFLAGS=’ -L/usr/local/lib -L/usr/X11R6/lib’.

Oh, I forgot: sorry for my english... :)

---

[2001-02-08 12:18:01] [EMAIL PROTECTED]
I solved the second issue setting EXTRA_LDFLAGS=’ -L/usr/local/lib -L/usr/X11R6/lib’.

Oh, I forgot: sorry for my english... :)

---

[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-

[PHP-DEV] PHP 4.0 Bug #9175 Updated: Configure isn't settings vars correctly

2001-02-08 Thread cerri

ID: 9175
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Install and Config
Description: Configure isn't settings vars correctly

Other little issue: at make install, I got other errors. First is:

Making install in .
make[1]: Entering directory `/usr/local/src/php-4.0.4pl1'
/usr/local/src/php-4.0.4pl1/build/shtool install -c -m 0755 
/usr/local/src/php-4.0.4pl1//sapi/servlet/phpsrvlt.jar /usr/local/php4/lib; 
/usr/local/src/php-4.0.4pl1/build/shtool install -c -m 0755 libs/libphp4.so 
/usr/local/php4/lib
mkdir: cannot make directory `/usr/local/php4/lib': File exists
mkdir: cannot make directory `/usr/local/php4/lib/php': Not a directory
mkdir: cannot make directory `/usr/local/php4/lib/php/extensions': Not a directory
mkdir: cannot make directory 
`/usr/local/php4/lib/php/extensions/no-debug-zts-20001214': Not a directory
make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1'
Making install in pear
make[1]: Entering directory `/usr/local/src/php-4.0.4pl1/pear'
make[2]: Entering directory `/usr/local/src/php-4.0.4pl1/pear'
mkdir: cannot make directory `/usr/local/php4/lib': File exists
mkdir: cannot make directory `/usr/local/php4/lib/php': Not a directory
+--+
| The installation process is incomplete. The following resources were |
| not installed:   |
|  |
|   Self-contained Extension Support   |
|   PEAR: PHP Extension and Add-on Repository  |
|  |
| To install these components, become the superuser and execute:   |
|  |
|   # make install-su  |
+--+
make[2]: *** [install-data-local] Error 5
make[2]: Leaving directory `/usr/local/src/php-4.0.4pl1/pear'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1/pear'
make: *** [install-recursive] Error 1

If I manually create the dirs /usr/local/php4, /usr/local/php4/bin and 
/usr/local/php4/lib, all goes well. Oh, even removing --prefix=/usr/local/php4 will 
work.

I saw that with the configure above the make install puts libphp4.so in 
/usr/local/php4/lib (meanwhile without --prefix libphp4.so went left in 
/usr/local/lib): why that configure is "jumping" the apxs part?

I mean, if I compile php4 with this little configure

./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning 
--enable-track-vars

make install will do

Making install in .
make[1]: Entering directory `/usr/local/src/php-4.0.4pl1'
/usr/local/apache/bin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
chmod 755 /usr/local/apache/libexec/libphp4.so
[activating module `php4' in /coda/apache/conf/httpd.conf]

but if I use the "long" :) configure, make install ignore apxs. Look:

Making install in .
make[1]: Entering directory `/usr/local/src/php-4.0.4pl1'
/usr/local/src/php-4.0.4pl1/build/shtool install -c -m 0755 /usr/local/src/php-4
.0.4pl1//sapi/servlet/phpsrvlt.jar /usr/local/php4/lib; /usr/local/src/php-4.0.4
pl1/build/shtool install -c -m 0755 libs/libphp4.so /usr/local/php4/lib
installing shared modules into /usr/local/php4/lib/php/extensions/no-debug-zts-2
0001214
make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1'

Is it a my fault?

Thank you

Previous Comments:
---

[2001-02-08 12:21:38] [EMAIL PROTECTED]
I solved the second issue setting EXTRA_LDFLAGS=’ -L/usr/local/lib -L/usr/X11R6/lib’.

Oh, I forgot: sorry for my english... :)

---

[2001-02-08 12:18:01] [EMAIL PROTECTED]
I solved the second issue setting EXTRA_LDFLAGS=’ -L/usr/local/lib -L/usr/X11R6/lib’.

Oh, I forgot: sorry for my english... :)

---

[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-versionin

[PHP-DEV] PHP 4.0 Bug #9175 Updated: Configure isn't settings vars correctly

2001-02-08 Thread cerri

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/

[PHP-DEV] PHP 4.0 Bug #9175 Updated: Configure isn't settings vars correctly

2001-02-08 Thread cerri

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:18:01] [EMAIL PROTECTED]
I solved the second issue setting EXTRA_LDFLAGS=’ -L/usr/local/lib -L/usr/X11R6/lib’.

Oh, I forgot: sorry for my english... :)

---

[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