Hi! I'm trying to compile PHP 4.0.6 on RedHat 6.2. Running make, I get the errors below. Anyone got an idea about what's wrong? Configure ran without a problem, with these options: --enable-bcmath --enable-exif --enable-ftp --enable-dba=shared --enable-dbx --enable-magic-quotes --enable-safe-mode --enable-sysvshm --enable-sysvsem --enable-trans-sid --enable-versioning --with-apxs=/usr/local/apache/bin/apxs --with-gdbm --with-gd --with-imap --with-jpeg-dir=/usr --with-mysql=/usr --with-openssl --with-png-dir --with-ttf --with-swf=../dist --with-xpm-dir=/usr/X11R6 --with-zlib Software used: root@host [~/builds/php-4.0.6]# rpm -qa|sort|grep -i '\(egcs\|glibc\|stdc\)' egcs-1.1.2-30 egcs-c++-1.1.2-30 glibc-2.1.3-22 glibc-devel-2.1.3-22 libstdc++-2.9.0-30 Thanks a lot! ------------------------------------------------------------------------------- Making all in Zend make[1]: Entering directory `/root/builds/php-4.0.6/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DLINUX=22 -DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c zend_language_scanner.c In file included from /usr/include/stdio.h:57, from zend_language_scanner.c:28: /usr/include/libio.h:214: parse error before `__off_t' /usr/include/libio.h:214: warning: no semicolon at end of struct or union /usr/include/libio.h:233: parse error before `_offset' /usr/include/libio.h:233: warning: data definition has no type or storage class /usr/include/libio.h:237: parse error before `}' /usr/include/libio.h:262: parse error before `__io_read_fn' /usr/include/libio.h:263: warning: data definition has no type or storage class /usr/include/libio.h:271: parse error before `__io_write_fn' /usr/include/libio.h:272: warning: data definition has no type or storage class /usr/include/libio.h:280: parse error before `__off_t' /usr/include/libio.h:367: parse error before `_IO_padn' /usr/include/libio.h:367: parse error before `__ssize_t' /usr/include/libio.h:367: warning: data definition has no type or storage class /usr/include/libio.h:370: parse error before `_IO_seekoff' /usr/include/libio.h:370: parse error before `__off64_t' /usr/include/libio.h:370: warning: data definition has no type or storage class /usr/include/libio.h:371: parse error before `_IO_seekpos' /usr/include/libio.h:371: parse error before `__off64_t' /usr/include/libio.h:371: warning: data definition has no type or storage class In file included from zend_language_scanner.c:28: /usr/include/stdio.h:61: parse error before `fpos_t' /usr/include/stdio.h:61: warning: data definition has no type or storage class In file included from zend_language_scanner.c:28: /usr/include/stdio.h:477: parse error before `off_t' /usr/include/stdio.h:477: warning: data definition has no type or storage class /usr/include/stdio.h:500: parse error before `fpos_t' /usr/include/stdio.h:502: parse error before `*' /usr/include/bits/stdio.h: In function `getc_unlocked': In file included from /usr/include/stdio.h:635, from zend_language_scanner.c:28: /usr/include/bits/stdio.h:51: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:51: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:51: dereferencing pointer to incomplete type /usr/include/bits/stdio.h: In function `getchar_unlocked': /usr/include/bits/stdio.h:58: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:58: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:58: dereferencing pointer to incomplete type /usr/include/bits/stdio.h: In function `fputc_unlocked': /usr/include/bits/stdio.h:76: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:76: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:76: dereferencing pointer to incomplete type /usr/include/bits/stdio.h: In function `putc_unlocked': /usr/include/bits/stdio.h:86: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:86: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:86: dereferencing pointer to incomplete type /usr/include/bits/stdio.h: In function `putchar_unlocked': /usr/include/bits/stdio.h:93: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:93: dereferencing pointer to incomplete type /usr/include/bits/stdio.h:93: dereferencing pointer to incomplete type /usr/include/bits/stdio.h: In function `feof_unlocked': /usr/include/bits/stdio.h:113: dereferencing pointer to incomplete type /usr/include/bits/stdio.h: In function `ferror_unlocked': /usr/include/bits/stdio.h:120: dereferencing pointer to incomplete type /usr/include/sys/types.h: At top level: In file included from /usr/include/stdlib.h:339, from ../main/php_config.h:1919, from zend_config.h:1, from zend.h:44, from zend_language_scanner.c:2719: /usr/include/sys/types.h:33: parse error before `u_char' /usr/include/sys/types.h:33: warning: data definition has no type or storage class /usr/include/sys/types.h:34: parse error before `u_short' /usr/include/sys/types.h:34: warning: data definition has no type or storage class /usr/include/sys/types.h:35: parse error before `u_int' /usr/include/sys/types.h:35: warning: data definition has no type or storage class /usr/include/sys/types.h:36: parse error before `u_long' /usr/include/sys/types.h:36: warning: data definition has no type or storage class /usr/include/sys/types.h:37: parse error before `quad_t' /usr/include/sys/types.h:37: warning: data definition has no type or storage class /usr/include/sys/types.h:38: parse error before `u_quad_t' /usr/include/sys/types.h:38: warning: data definition has no type or storage class /usr/include/sys/types.h:39: parse error before `fsid_t' /usr/include/sys/types.h:39: warning: data definition has no type or storage class /usr/include/sys/types.h:42: parse error before `loff_t' /usr/include/sys/types.h:42: warning: data definition has no type or storage class /usr/include/sys/types.h:46: parse error before `ino_t' /usr/include/sys/types.h:46: warning: data definition has no type or storage class /usr/include/sys/types.h:58: parse error before `dev_t' /usr/include/sys/types.h:58: warning: data definition has no type or storage class /usr/include/sys/types.h:63: parse error before `gid_t' /usr/include/sys/types.h:63: warning: data definition has no type or storage class /usr/include/sys/types.h:68: parse error before `mode_t' /usr/include/sys/types.h:68: warning: data definition has no type or storage class /usr/include/sys/types.h:73: parse error before `nlink_t' /usr/include/sys/types.h:73: warning: data definition has no type or storage class /usr/include/sys/types.h:78: parse error before `uid_t' /usr/include/sys/types.h:78: warning: data definition has no type or storage class /usr/include/sys/types.h:96: parse error before `pid_t' /usr/include/sys/types.h:96: warning: data definition has no type or storage class /usr/include/sys/types.h:101: parse error before `id_t' /usr/include/sys/types.h:101: warning: data definition has no type or storage class /usr/include/sys/types.h:105: parse error before `ssize_t' /usr/include/sys/types.h:105: warning: data definition has no type or storage class /usr/include/sys/types.h:110: parse error before `daddr_t' /usr/include/sys/types.h:110: warning: data definition has no type or storage class /usr/include/sys/types.h:111: parse error before `caddr_t' /usr/include/sys/types.h:111: warning: data definition has no type or storage class /usr/include/sys/types.h:115: parse error before `key_t' /usr/include/sys/types.h:115: warning: data definition has no type or storage class In file included from /usr/include/sys/types.h:122, from /usr/include/stdlib.h:339, from ../main/php_config.h:1919, from zend_config.h:1, from zend.h:44, from zend_language_scanner.c:2719: /usr/include/time.h:71: parse error before `time_t' /usr/include/time.h:71: warning: data definition has no type or storage class In file included from /usr/include/sys/types.h:194, from /usr/include/stdlib.h:339, from ../main/php_config.h:1919, from zend_config.h:1, from zend.h:44, from zend_language_scanner.c:2719: /usr/include/sys/select.h:48: parse error before `fd_mask' /usr/include/sys/select.h:48: warning: data definition has no type or storage class /usr/include/sys/select.h:51: parse error before `fd_set' /usr/include/sys/select.h:51: warning: data definition has no type or storage class /usr/include/sys/select.h:74: parse error before `__fd_set' /usr/include/sys/select.h:77: parse error before `__fd_set' In file included from /usr/include/stdlib.h:339, from ../main/php_config.h:1919, from zend_config.h:1, from zend.h:44, from zend_language_scanner.c:2719: /usr/include/sys/types.h:203: parse error before `blkcnt_t' /usr/include/sys/types.h:203: warning: data definition has no type or storage class /usr/include/sys/types.h:204: parse error before `fsblkcnt_t' /usr/include/sys/types.h:204: warning: data definition has no type or storage class /usr/include/sys/types.h:205: parse error before `fsfilcnt_t' /usr/include/sys/types.h:205: warning: data definition has no type or storage class In file included from /usr/include/string.h:346, from ../main/php_config.h:1931, from zend_config.h:1, from zend.h:44, from zend_language_scanner.c:2719: /usr/include/bits/string2.h:396: parse error before `__uint16_t' /usr/include/bits/string2.h:400: parse error before `__uint16_t' /usr/include/bits/string2.h: In function `__strcpy_small': /usr/include/bits/string2.h:405: parse error before `__uint32_t' /usr/include/bits/string2.h:405: warning: no semicolon at end of struct or union /usr/include/bits/string2.h:406: `__uint16_t' undeclared (first use in this function) /usr/include/bits/string2.h:406: (Each undeclared identifier is reported only once /usr/include/bits/string2.h:406: for each function it appears in.) /usr/include/bits/string2.h: At top level: /usr/include/bits/string2.h:408: `__dest' undeclared here (not in a function) /usr/include/bits/string2.h:408: warning: data definition has no type or storage class /usr/include/bits/string2.h:409: parse error before `switch' /usr/include/bits/string2.h:419: conflicting types for `__u' /usr/include/bits/string2.h:408: previous declaration of `__u' /usr/include/bits/string2.h:419: warning: initialization makes integer from pointer without a cast /usr/include/bits/string2.h:419: initializer element is not constant /usr/include/bits/string2.h:419: warning: data definition has no type or storage class /usr/include/bits/string2.h:420: parse error before `->' /usr/include/bits/string2.h:427: redefinition of `__u' /usr/include/bits/string2.h:419: `__u' previously defined here /usr/include/bits/string2.h:427: warning: initialization makes integer from pointer without a cast /usr/include/bits/string2.h:427: initializer element is not constant /usr/include/bits/string2.h:427: warning: data definition has no type or storage class /usr/include/bits/string2.h:428: parse error before `->' /usr/include/bits/string2.h:432: redefinition of `__u' /usr/include/bits/string2.h:427: `__u' previously defined here /usr/include/bits/string2.h:432: warning: initialization makes integer from pointer without a cast /usr/include/bits/string2.h:432: initializer element is not constant /usr/include/bits/string2.h:432: warning: data definition has no type or storage class /usr/include/bits/string2.h:433: parse error before `->' /usr/include/bits/string2.h:437: redefinition of `__u' /usr/include/bits/string2.h:432: `__u' previously defined here /usr/include/bits/string2.h:437: warning: initialization makes integer from pointer without a cast /usr/include/bits/string2.h:437: initializer element is not constant /usr/include/bits/string2.h:437: warning: data definition has no type or storage class /usr/include/bits/string2.h:438: parse error before `->' /usr/include/bits/string2.h:439: redefinition of `__u' /usr/include/bits/string2.h:437: `__u' previously defined here /usr/include/bits/string2.h:439: warning: initialization makes integer from pointer without a cast /usr/include/bits/string2.h:439: initializer element is not constant /usr/include/bits/string2.h:439: warning: data definition has no type or storage class /usr/include/bits/string2.h:440: parse error before `->' /usr/include/bits/string2.h:444: redefinition of `__u' /usr/include/bits/string2.h:439: `__u' previously defined here /usr/include/bits/string2.h:444: warning: initialization makes integer from pointer without a cast /usr/include/bits/string2.h:444: initializer element is not constant /usr/include/bits/string2.h:444: warning: data definition has no type or storage class /usr/include/bits/string2.h:445: parse error before `->' In file included from zend_language_scanner.c:2749: /usr/include/unistd.h:277: parse error before `__lseek' /usr/include/unistd.h:277: parse error before `__off_t' /usr/include/unistd.h:277: warning: data definition has no type or storage class /usr/include/unistd.h:279: parse error before `lseek' /usr/include/unistd.h:279: parse error before `__off_t' /usr/include/unistd.h:279: warning: data definition has no type or storage class /usr/include/unistd.h:300: parse error before `__read' /usr/include/unistd.h:300: warning: data definition has no type or storage class /usr/include/unistd.h:301: parse error before `read' /usr/include/unistd.h:301: warning: data definition has no type or storage class /usr/include/unistd.h:304: parse error before `__write' /usr/include/unistd.h:304: warning: data definition has no type or storage class /usr/include/unistd.h:305: parse error before `write' /usr/include/unistd.h:305: warning: data definition has no type or storage class /usr/include/unistd.h:389: parse error before `__uid_t' /usr/include/unistd.h:394: parse error before `__uid_t' /usr/include/unistd.h:399: parse error before `__uid_t' In file included from zend_language_scanner.c:2749: /usr/include/unistd.h:515: parse error before `__getpid' /usr/include/unistd.h:515: warning: data definition has no type or storage class /usr/include/unistd.h:516: parse error before `getpid' /usr/include/unistd.h:516: warning: data definition has no type or storage class /usr/include/unistd.h:519: parse error before `getppid' /usr/include/unistd.h:519: warning: data definition has no type or storage class /usr/include/unistd.h:524: parse error before `getpgrp' /usr/include/unistd.h:524: warning: data definition has no type or storage class /usr/include/unistd.h:534: parse error before `__getpgid' /usr/include/unistd.h:534: parse error before `__pid' /usr/include/unistd.h:534: warning: data definition has no type or storage class /usr/include/unistd.h:543: parse error before `__pid' /usr/include/unistd.h:544: parse error before `__pid' /usr/include/unistd.h:579: parse error before `setsid' /usr/include/unistd.h:579: warning: data definition has no type or storage class /usr/include/unistd.h:587: parse error before `getuid' /usr/include/unistd.h:587: warning: data definition has no type or storage class /usr/include/unistd.h:590: parse error before `geteuid' /usr/include/unistd.h:590: warning: data definition has no type or storage class /usr/include/unistd.h:593: parse error before `getgid' /usr/include/unistd.h:593: warning: data definition has no type or storage class /usr/include/unistd.h:596: parse error before `getegid' /usr/include/unistd.h:596: warning: data definition has no type or storage class /usr/include/unistd.h:601: parse error before `__gid_t' /usr/include/unistd.h:612: parse error before `__uid' /usr/include/unistd.h:617: parse error before `__ruid' /usr/include/unistd.h:622: parse error before `__uid' /usr/include/unistd.h:629: parse error before `__gid' /usr/include/unistd.h:634: parse error before `__rgid' /usr/include/unistd.h:639: parse error before `__gid' /usr/include/unistd.h:646: parse error before `__fork' /usr/include/unistd.h:646: warning: data definition has no type or storage class /usr/include/unistd.h:647: parse error before `fork' /usr/include/unistd.h:647: warning: data definition has no type or storage class /usr/include/unistd.h:654: parse error before `vfork' /usr/include/unistd.h:654: warning: data definition has no type or storage class /usr/include/unistd.h:698: parse error before `tcgetpgrp' /usr/include/unistd.h:698: warning: data definition has no type or storage class /usr/include/unistd.h:701: parse error before `__pid_t' In file included from zend_language_scanner.c:2749: /usr/include/unistd.h:818: parse error before `__off_t' /usr/include/unistd.h:833: parse error before `__off_t' /usr/include/unistd.h:835: parse error before `__off_t' In file included from zend_language_scanner.c:2749: /usr/include/unistd.h:905: parse error before `__off_t' zend_language_scanner.c: In function `prepare_string_for_scanning': zend_language_scanner.c:3101: `__uint8_t' undeclared (first use in this function) zend_language_scanner.c:3101: parse error before `)' zend_language_scanner.c:3101: parse error before `0' zend_language_scanner.c:3101: parse error before `__c' zend_language_scanner.c:3101: `__c' undeclared (first use in this function) make[1]: *** [zend_language_scanner.lo] Error 1 make[1]: Leaving directory `/root/builds/php-4.0.6/Zend' make: *** [all-recursive] Error 1 Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 19 hours 54 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]