php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15474 "conflicting types" error on HPUX 11.11 during compile
Submitted: 2002-02-09 16:58 UTC Modified: 2007-04-11 20:23 UTC
Votes:15
Avg. Score:4.3 ± 0.9
Reproduced:14 of 14 (100.0%)
Same Version:2 (14.3%)
Same OS:2 (14.3%)
From: anan at wethai dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: HPUX 11.11 UNIX System
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anan at wethai dot com
New email:
PHP Version: OS:

 

 [2002-02-09 16:58 UTC] anan at wethai dot com
I try to configure the php-4.0.6 on HPUX 11.11 system with apache 1.3.19, but it show this error message as following....

# ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.19 --enable-track-vars
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... hppa2.0w-hp-hpux11.11
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... lex
checking for yywrap in -ll... yes
checking lex output file root... ./configure[2343]: lex:  not found.
configure: error: cannot find output from lex; giving up

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-09 17:17 UTC] georg@php.net
Is flex already installed?!

Georg

 [2002-02-09 17:19 UTC] anan at wethai dot com
what flex?
 [2002-02-09 17:26 UTC] georg@php.net
Seems that you haven't read

http://www.php.net/manual/en/install.hpux.php

5. You now need flex, you need to download the source from 
one of the http://www.gnu.org mirrors. It is in the 
non-gnu directory of the ftp site. 
Download the file, gunzip, then tar -xvf it. Go into the 
newly created flex directory and do a ./configure, then a 
make, and then a make install.

 [2002-02-09 19:56 UTC] anan at wethai dot com
Now I already install 
- gcc 3.0.1 in /opt/gcc
- binson 1.29 in /opt/bison
- flex 2.5.4 in /usr/local/bin
- binutils 2.11.2 in /opt/binutils

and 
# export PATH; PATH=$PATH:/opt/gcc/bin:/opt/bison/bin:/opt/binutils:/usr/local/bin

Config PHP with apache 1.3.19 
# ./configure --with-oci8=/opt/oracle --with-apache=../apache_1.3.19 --enable-track-vars

is pass....

# make

was error, the error mesasge was following..

Making all in Zend
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_language_scanner.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_ini_scanner.c
        /bin/sh ../libtool --silent --mode=link gcc  -g -O2  -o libZend_c.la   zend_language_scanner.lo zend_ini_scanner.lo  
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_language_parser.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_ini_parser.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_alloc.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_compile.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_constants.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_dynamic_array.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -c ./zend_execute.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_execute_API.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_highlight.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_llist.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_opcode.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_operators.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_ptr_stack.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_stack.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_variables.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_API.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_extensions.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_hash.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_list.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_indent.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_builtin_functions.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_sprintf.c
        /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_ini.c
        /bin/sh ../libtool --silent --mode=link gcc  -g -O2  -o libZend.la  -lpam  -l:libdld.sl -l:libnss_dns.1 -l:librt.sl -l:libcl.a -lcrypt -lm -lnsl  -lclntsh  zend_language_parser.lo zend_ini_parser.lo  zend_alloc.lo zend_compile.lo zend_constants.lo zend_dynamic_array.lo  zend_execute.lo zend_execute_API.lo zend_highlight.lo zend_llist.lo  zend_opcode.lo zend_operators.lo zend_ptr_stack.lo zend_stack.lo  zend_variables.lo zend.lo zend_API.lo zend_extensions.lo zend_hash.lo  zend_list.lo zend_indent.lo zend_builtin_functions.lo zend_sprintf.lo  zend_ini.lo libZend_c.la 
Making all in main
        gcc  -I. -I/opt/anan/software/php-4.0.6/main -I/opt/anan/software/php-4.0.6/main -I/opt/anan/software/php-4.0.6 -I/opt/anan/software/apache_1.3.19/src/include -I/opt/anan/software/apache_1.3.19/src/os/unix -I/opt/anan/software/php-4.0.6/Zend -I/opt/anan/software/php-4.0.6/ext/mysql/libmysql -I/opt/oracle/rdbms/public -I/opt/oracle/rdbms/demo -I/opt/oracle/network/public -I/opt/anan/software/php-4.0.6/ext/xml/expat/xmltok -I/opt/anan/software/php-4.0.6/ext/xml/expat/xmlparse -I/opt/anan/software/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2  -c main.c && touch main.lo
In file included from php_network.h:37,
                 from /opt/anan/software/php-4.0.6/ext/standard/fsock.h:32,
                 from /opt/anan/software/php-4.0.6/ext/standard/php_standard.h:43,
                 from main.c:52:
/usr/include/sys/socket.h:193: conflicting types for `socklen_t'
php.h:111: previous declaration of `socklen_t'
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:439: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:441: parse error before "bsize_t"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.


 [2002-02-10 06:05 UTC] georg@php.net
Please could you do a make clean, then configure/make 
again.

If this doesn't work try gmake instead of make.

Georg

 [2002-02-12 21:17 UTC] anan at wethai dot com
I'm try and try but it not work.
gmake not install on HPUX-11.11 

Thank you.
 [2002-04-17 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-04-11 08:35 UTC] joey@php.net
Updated summary and catgory. Would be nice to close this out if it's
fixed since 4.0.6.
 [2007-04-11 20:23 UTC] joey@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

OP says it's fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 16:01:29 2024 UTC