This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

/usr/include/stdlib.h:165: conflicting types for `getsubopt'


Dear Sir/madam,

When I am running make for PHP 3.0.18 installation on solaris 8 I am getting
the below error. 

I tried removing -o2 option in the Makefile while compiling but still it is
generating the below error.

Kindly help me in fixing the same.

Thanks 

Sunil Kumar 


# make
gcc -g   -I. -I.   -I../apache_1.3.26/src/include
-I../apache_1.3.26/src/os/unix    -w -c ./language-scanner.c
In file included from php.h:132,
                 from language-scanner.lex:50:
/usr/include/stdlib.h:165: conflicting types for `getsubopt'
/usr/include/stdio.h:267: previous declaration of `getsubopt'
/usr/include/stdlib.h:189: conflicting types for `getopt'
/usr/include/stdio.h:265: previous declaration of `getopt'
In file included from php.h:135,
                 from language-scanner.lex:50:
/usr/include/unistd.h:382: conflicting types for `rename'
/usr/include/iso/stdio_iso.h:165: previous declaration of `rename'
language-scanner.c:4781: conflicting types for `php_scan_string'
language-scanner.c:257: previous declaration of `php_scan_string'
language-scanner.c:4799: conflicting types for `php_scan_bytes'
language-scanner.c:258: previous declaration of `php_scan_bytes'
language-scanner.c:4892: conflicting types for `yy_fatal_error'
language-scanner.c:294: previous declaration of `yy_fatal_error'
*** Error code 1
make: Fatal error: Command failed for target `language-scanner.o'
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]