php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14190 tsrm_virtual_cwd.c:568: `mode_t' is promoted to `int' when passed through
Submitted: 2001-11-22 18:46 UTC Modified: 2001-11-23 02:44 UTC
From: xsaa at gmx dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: HP-UX 10.20
Private report: No CVE-ID: None
 [2001-11-22 18:46 UTC] xsaa at gmx dot net
i used:
configure --with-apache=/opt/apache/bin --with-oci8=/rdbms_v8/oracle/product/8.0.6

And the Exact Error Was:

php_apache.c:379: warning: assignment makes pointer from integer without a cast
        /bin/sh /opt/php/php-4.0.6/libtool --silent --mode=link gcc  -I. -I/opt/
php/php-4.0.6/sapi/apache -I/opt/php/php-4.0.6/main -I/opt/php/php-4.0.6 -I/opt/
apache/bin/src -I/opt/php/php-4.0.6/Zend -I/opt/php/php-4.0.6/ext/mysql/libmysql
 -I/rdbms_v8/oracle/product/8.0.6/rdbms/demo -I/rdbms_v8/oracle/product/8.0.6/ne
twork/public -I/opt/php/php-4.0.6/ext/xml/expat/xmltok -I/opt/php/php-4.0.6/ext/
xml/expat/xmlparse -I/opt/php/php-4.0.6/TSRM -I/opt/apache/bin/src -DSUPPORT_UTF
8 -DXML_BYTE_ORDER=21 -g -O2   -o libsapi.la  sapi_apache.lo mod_php4.lo php_apa
che.lo
Making install in TSRM
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -
I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c TSRM.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -
I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c tsrm_strtok_r.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -
I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c tsrm_virtual_cwd.c
tsrm_virtual_cwd.c: In function `virtual_open':
tsrm_virtual_cwd.c:568: `mode_t' is promoted to `int' when passed through `...'
tsrm_virtual_cwd.c:568: (so you should pass `int' not `mode_t' to `va_arg')
*** Error exit code 1

Stop.
*** Error exit code 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-22 18:51 UTC] xsaa at gmx dot net
Sorry. i forget to say that I used gcc 3.0.1 for compile

 [2001-11-22 18:52 UTC] sniper@php.net
This is fixed in CVS.

 [2001-11-23 02:44 UTC] derick@php.net
Already fixed in CVS, wait for the upcoming PHP 4.1.0 (in a few days), which corrects this problem.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 09:01:29 2025 UTC