Bug #9708 Updated: double #defined V_RENAME, the second
| From: | andi@php.net | Date: | Mon, 30 Apr 2001 12:45:36 +0000 |
| Subject: | Bug #9708 Updated: double #defined V_RENAME, the second | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53064@lists.php.net to get a copy of this message | ||
ID: 9708
Updated by: andi
Reported By: andreas@erestor.f2s.com
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
PHP Version: 4.0.4pl1
Assigned To:
Comments:
This should be fixed in the latest CVS.
Previous Comments:
---------------------------------------------------------------------------
[2001-03-13 18:21:09] andreas@erestor.f2s.com
Sorry!
The last comment was put in the wrong context.
Andreas
---------------------------------------------------------------------------
[2001-03-13 18:16:21] andreas@erestor.f2s.com
The alloca.h file, I have written, is this:
#ifndef _H_ALLOCA
#define _H_ALLOCA
#pragma alloca /*needed, as no alloca in any library of AIX*/
#ifdef _NO_PROTO
extern void *alloca();
#else /* _NO_PROTO */
#include <stdlib.h> /*size_t is defined in here*/
extern void *alloca(size_t);
#endif /* _NO_PROTO */
#endif /* _H_ALLOCA */
Regards
Andreas Pistoor
---------------------------------------------------------------------------
[2001-03-12 10:07:29] andreas@erestor.f2s.com
Hi, I got this symptom by compiling PHP:
xlc -I. -I/home/pistoor/php-4.0.4pl1/ext/shmop -I/home/pistoor/php-4.0.4pl1/main
-I/home/pistoor/php-4.0.4pl1
-I/home/pistoor/php-4.0.4pl1/Zend -I/home/pistoor/php-4.0.4pl1/ext/mysql/libmysql
-I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmltok
-I/home/pistoor/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/pistoor/php-4.0.4pl1/TSRM
-DXML_BYTE_ORDER=21 -qsource -qshowinc -I/home/pistoor -DHAVE_INT_8_16_32=1 -c shmop.c &&
touch shmop.lo
"/usr/include/sys/vnode.h", line 102.9: 1506-213 (S) Macro name V_RENAME cannot be
redefined.
"/usr/include/sys/vnode.h", line 102.9: 1506-358 (I) "V_RENAME" is defined on
line 190 of /home/pistoor/php-4.0.4pl1/TSRM/tsrm_virtual_cwd.h.
I use the xlc-version of the C Set ++ for AIX compiler, as it is more ANSI-C than the cc-version.
It also shows more errors.
My configuration of PHP (as a CGI-program to be used by Lynx):
CC=xlc ./configure --prefix=/home/pistoor/php
--with-config-file-path=/home/pistoor/php --enable-debug
--enable-sigchild --enable-calendar --enable-ftp
--enable-trans-sid --enable-shmop --with-regex=php
--enable-sysvsem --enable-sysvshm --enable-wddx
--enable-yp
The file ext/shmop/shmop.c includes sys/shm.h without taking care of V_RENAME. I have inluded some
code to save V_RENAME:
#ifdef V_RENAME
#define PHP_V_RENAME V_RENAME
#undef V_RENAME
#endif
#include <sys/ipc.h>
#include <sys/shm.h>
#ifdef PHP_V_RENAME
#ifdef V_RENAME
#undef V_RENAME
#endif
#define V_RENAME PHP_V_RENAME
#undef PHP_V_RENAME
#endif
Regard
Andreas Pistoor
PS. I got also the error depending on HAVE_INT_8_16_32!
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9708&edit=2