#20626 [Opn]: Fails to build Apache shared module (not mkstemp)

2002-12-05 Thread msopacua
 ID:   20626
 Updated by:   [EMAIL PROTECTED]
-Summary:  Fails to build Apache shared module
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Compile Failure
 Operating System: OpenBSD 3.1-stable
 PHP Version:  4.3.0-dev
 New Comment:

That is NOT a proper fix, in fact - it's not even related to the bug.
Additionally it will render parts of the mysql extension unusable -
that line is needed. mkstemp warning, is a WARNING.

This bug is NOT about mkstemp - it's about the libtool trouble in the
middle.

Updated summary


Previous Comments:


[2002-12-05 08:05:02] [EMAIL PROTECTED]

Hi, I experienced this problem too in RH 7.3.
It's possible to fix:

- Doe a 'make clean'
- Open ./ext/mysql/libmysql/my_tempnam.c for editing
- Go to line 103
- Delete the line
- Place this on line 103:
  mkstemp("somechars");

now make again and it should work.



[2002-11-30 07:40:39] [EMAIL PROTECTED]

i've the same problem under red hat 7.2 and php 4.3 RC2 :(
please help how i can pass throught this proble !!!



[2002-11-25 18:04:46] [EMAIL PROTECTED]

this is some openbsd oddity, and actually a libtool bug..but leaving
open, maybe someone knows how to 'fix' this.




[2002-11-25 12:21:27] [EMAIL PROTECTED]

Specifiying build as an Apache shared library module fails 
to work on my system.

Configure couldn't get much simpler:

./configure --with-apxs=/usr/sbin/apxs

The compile goes OK, but libtool runs into some trouble. I 
have libtool 1.4, and I'm running Apache 1.3.24 (standard 
with of OpenBSD 3.1) with OpenBSD's security patches, if 
that makes any difference.

Full output of libtool lines below:

/bin/sh libtool --silent --mode=compile gcc 
-I/usr/lib/apache/include -Isapi/apache/ 
-I/usr/local/src/php4/sapi/apache/ -DPHP_ATOM_INC 
-I/usr/local/src/php4/include -I/usr/local/src/php4/main 
-I/usr/local/src/php4 -I/usr/local/src/php4/Zend 
-I/usr/local/src/php4/ext/xml/expat  
-DDEV_RANDOM=/dev/arandom -DMOD_SSL=208108 -DEAPI 
-DUSE_EXPAT -I/usr/local/src/php4/TSRM  -g -O2  -prefer-pic 
-c /usr/local/src/php4/sapi/apache/sapi_apache.c -o 
sapi/apache/sapi_apache.lo
In file included from 
/usr/lib/apache/include/ap_config.h:114,
 from /usr/lib/apache/include/httpd.h:72,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:22,
 from 
/usr/local/src/php4/sapi/apache/sapi_apache.c:24:
/usr/lib/apache/include/os.h:141: warning: 
`DLSYM_NEEDS_UNDERSCORE' redefined
/usr/local/src/php4/main/php_config.h:330: warning: this is 
the location of the previous definition
In file included from 
/usr/local/src/php4/TSRM/tsrm_config.h:1,
 from 
/usr/local/src/php4/TSRM/tsrm_config_common.h:13,
 from 
/usr/local/src/php4/TSRM/tsrm_virtual_cwd.h:26,
 from /usr/local/src/php4/main/php.h:360,
 from 
/usr/local/src/php4/main/php_variables.h:25,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:40,
 from 
/usr/local/src/php4/sapi/apache/sapi_apache.c:24:
/usr/local/src/php4/TSRM/../main/php_config.h:330: warning: 
`DLSYM_NEEDS_UNDERSCORE' redefined
/usr/lib/apache/include/os.h:141: warning: this is the 
location of the previous definition
/bin/sh libtool --silent --mode=compile gcc 
-I/usr/lib/apache/include -Isapi/apache/ 
-I/usr/local/src/php4/sapi/apache/ -DPHP_ATOM_INC 
-I/usr/local/src/php4/include -I/usr/local/src/php4/main 
-I/usr/local/src/php4 -I/usr/local/src/php4/Zend 
-I/usr/local/src/php4/ext/xml/expat  
-DDEV_RANDOM=/dev/arandom -DMOD_SSL=208108 -DEAPI 
-DUSE_EXPAT -I/usr/local/src/php4/TSRM  -g -O2  -prefer-pic 
-c /usr/local/src/php4/sapi/apache/mod_php4.c -o 
sapi/apache/mod_php4.lo
In file included from 
/usr/lib/apache/include/ap_config.h:114,
 from /usr/lib/apache/include/httpd.h:72,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:22,
 from 
/usr/local/src/php4/sapi/apache/mod_php4.c:22:
/usr/lib/apache/include/os.h:141: warning: 
`DLSYM_NEEDS_UNDERSCORE' redefined
/usr/local/src/php4/main/php_config.h:330: warning: this 
is the location of the previous definition
In file included from 
/usr/local/src/php4/TSRM/tsrm_config.h:1,
 from 
/usr/local/src/php4/TSRM/tsrm_config_common.h:13,
 from 
/usr/local/src/php4/TSRM/tsrm_virtual_cwd.h:26,
 from /usr/local/src/php4/main/php.h:360,
 from 
/usr/local/src/php4/main/php_variables.h:25,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:40

#20626 [Opn]: Fails to build Apache shared module

2002-11-25 Thread sniper
 ID:   20626
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
-Bug Type: Compile Warning
+Bug Type: Compile Failure
 Operating System: OpenBSD 3.1-stable
-PHP Version:  4CVS-2002-11-25 (stable)
+PHP Version:  4.3.0-dev
 New Comment:

this is some openbsd oddity, and actually a libtool bug..but leaving
open, maybe someone knows how to 'fix' this.



Previous Comments:


[2002-11-25 12:21:27] [EMAIL PROTECTED]

Specifiying build as an Apache shared library module fails 
to work on my system.

Configure couldn't get much simpler:

./configure --with-apxs=/usr/sbin/apxs

The compile goes OK, but libtool runs into some trouble. I 
have libtool 1.4, and I'm running Apache 1.3.24 (standard 
with of OpenBSD 3.1) with OpenBSD's security patches, if 
that makes any difference.

Full output of libtool lines below:

/bin/sh libtool --silent --mode=compile gcc 
-I/usr/lib/apache/include -Isapi/apache/ 
-I/usr/local/src/php4/sapi/apache/ -DPHP_ATOM_INC 
-I/usr/local/src/php4/include -I/usr/local/src/php4/main 
-I/usr/local/src/php4 -I/usr/local/src/php4/Zend 
-I/usr/local/src/php4/ext/xml/expat  
-DDEV_RANDOM=/dev/arandom -DMOD_SSL=208108 -DEAPI 
-DUSE_EXPAT -I/usr/local/src/php4/TSRM  -g -O2  -prefer-pic 
-c /usr/local/src/php4/sapi/apache/sapi_apache.c -o 
sapi/apache/sapi_apache.lo
In file included from 
/usr/lib/apache/include/ap_config.h:114,
 from /usr/lib/apache/include/httpd.h:72,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:22,
 from 
/usr/local/src/php4/sapi/apache/sapi_apache.c:24:
/usr/lib/apache/include/os.h:141: warning: 
`DLSYM_NEEDS_UNDERSCORE' redefined
/usr/local/src/php4/main/php_config.h:330: warning: this is 
the location of the previous definition
In file included from 
/usr/local/src/php4/TSRM/tsrm_config.h:1,
 from 
/usr/local/src/php4/TSRM/tsrm_config_common.h:13,
 from 
/usr/local/src/php4/TSRM/tsrm_virtual_cwd.h:26,
 from /usr/local/src/php4/main/php.h:360,
 from 
/usr/local/src/php4/main/php_variables.h:25,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:40,
 from 
/usr/local/src/php4/sapi/apache/sapi_apache.c:24:
/usr/local/src/php4/TSRM/../main/php_config.h:330: warning: 
`DLSYM_NEEDS_UNDERSCORE' redefined
/usr/lib/apache/include/os.h:141: warning: this is the 
location of the previous definition
/bin/sh libtool --silent --mode=compile gcc 
-I/usr/lib/apache/include -Isapi/apache/ 
-I/usr/local/src/php4/sapi/apache/ -DPHP_ATOM_INC 
-I/usr/local/src/php4/include -I/usr/local/src/php4/main 
-I/usr/local/src/php4 -I/usr/local/src/php4/Zend 
-I/usr/local/src/php4/ext/xml/expat  
-DDEV_RANDOM=/dev/arandom -DMOD_SSL=208108 -DEAPI 
-DUSE_EXPAT -I/usr/local/src/php4/TSRM  -g -O2  -prefer-pic 
-c /usr/local/src/php4/sapi/apache/mod_php4.c -o 
sapi/apache/mod_php4.lo
In file included from 
/usr/lib/apache/include/ap_config.h:114,
 from /usr/lib/apache/include/httpd.h:72,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:22,
 from 
/usr/local/src/php4/sapi/apache/mod_php4.c:22:
/usr/lib/apache/include/os.h:141: warning: 
`DLSYM_NEEDS_UNDERSCORE' redefined
/usr/local/src/php4/main/php_config.h:330: warning: this 
is the location of the previous definition
In file included from 
/usr/local/src/php4/TSRM/tsrm_config.h:1,
 from 
/usr/local/src/php4/TSRM/tsrm_config_common.h:13,
 from 
/usr/local/src/php4/TSRM/tsrm_virtual_cwd.h:26,
 from /usr/local/src/php4/main/php.h:360,
 from 
/usr/local/src/php4/main/php_variables.h:25,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:40,
 from 
/usr/local/src/php4/sapi/apache/mod_php4.c:22:
/usr/local/src/php4/TSRM/../main/php_config.h:330: warning: 
`DLSYM_NEEDS_UNDERSCORE' redefined
/usr/lib/apache/include/os.h:141: warning: this is the 
location of the previous definition
/bin/sh libtool --silent --mode=compile gcc 
-I/usr/lib/apache/include -Isapi/apache/ 
-I/usr/local/src/php4/sapi/apache/ -DPHP_ATOM_INC 
-I/usr/local/src/php4/include -I/usr/local/src/php4/main 
-I/usr/local/src/php4 -I/usr/local/src/php4/Zend 
-I/usr/local/src/php4/ext/xml/expat  
-DDEV_RANDOM=/dev/arandom -DMOD_SSL=208108 -DEAPI 
-DUSE_EXPAT -I/usr/local/src/php4/TSRM  -g -O2  -prefer-pic 
-c /usr/local/src/php4/sapi/apache/php_apache.c -o 
sapi/apache/php_apache.lo
In file included from 
/usr/lib/apache/include/ap_config.h:114,
 from /usr/lib/apache/include/httpd.h:72,
 from 
/usr/local/src/php4/sapi/apache/php_apache_http.h:22,
 from 
/usr/local/src/php4/sapi/apache/p