Compile bug: getopt.h
| From: | Yann Doussot | Date: | Tue, 01 Jun 1999 11:04:43 +0000 |
| Subject: | Compile bug: getopt.h | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-1211@lists.php.net to get a copy of this message | ||
Hello,
On my system (Debian potato - glibc 2.1.1) there's a collision
between getopt.h in /usr/include and the getopt.h in PHP4:
gcc -c -I../../os/unix -I../../include -DLINUX=2 -I/usr/src/web/php4
-I/usr/src/web/php4/libzend -I/usr/src/web/php4/libzend
-I/usr/src/web/php4 -g -O2
../../apaci os-inline.c
In file included from /usr/src/web/php4/php.h:182,
from /usr/src/web/php4/getopt.h:2,
from /usr/include/unistd.h:724,
from ../../include/ap_config.h:1050,
from os-inline.c:24:
../../include/http_main.h:146: parse error before `ap_wait_t'
Glibc 2.0 unistd.h does not include getopt.h but glibc 2.1 does,
and so it uses PHP4 getopt.h.
---
Yann Doussot <doussot@gifrance.com>
Grey Interactive - France - http://www.gifrance.com/
Cell: +33 6 12 71 70 03 Work: + 33 1 46 84 85 00