php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12842 TSRM/tsrm_virtual_cwd.c:568: `mode_t' is promoted to `int'
Submitted: 2001-08-19 10:40 UTC Modified: 2001-11-14 06:40 UTC
From: richard_hickerson at agilent dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: HP-UX 10.20 and 11.0
Private report: No CVE-ID: None
 [2001-08-19 10:40 UTC] richard_hickerson at agilent dot com
gcc 3.0:

Making all in TSRM
	/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -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   -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -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   -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -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')

------------

Changing "mode_t" to "int" on tsrm_virtual_cwd.c:568 eliminates the error.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-22 18:26 UTC] sniper@php.net
reproduced by unix-guy@pacbell.net (bug report #11761.

 [2001-08-23 02:40 UTC] cynic@php.net
Date: Thu, 23 Aug 2001 09:41:47 +0300 (EEST)
From: Heikki Korpela <heko@iki.fi>

See:

a recently updated stdarg(3) manual page:

	http://www.openbsd.org/cgi-bin/man.cgi?query=stdarg&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html

discussion on the gcc list on the matter:

	http://gcc.gnu.org/ml/gcc-patches/1999-09/msg00221.html

The same problem was iirc present on OpenBSD. Problem is that mode_t is
a primitive system data type that may be defined as a short or an int
(in theory I think that POSIX even allows a float), depending on
the system; same goes for other such data types, of course.

Unfortunately, I do not have edit access for the bug so I have to
send this to the list directly. Sorry.

 [2001-10-23 09:55 UTC] sniper@php.net
Does this happen with latest CVS snapshot from http://snaps.php.net/ ?

 [2001-11-14 06:40 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC