php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22259 fsock.h:43: warning: `struct in_addr' declared inside parameter list
Submitted: 2003-02-17 16:04 UTC Modified: 2003-03-09 18:55 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: ikazdek at hotmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.3.1 OS: FreeBSD 4.7-STABLE
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: ikazdek at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-02-17 16:04 UTC] ikazdek at hotmail dot com
configured with:

./configure --with-apxs=/usr/local/sbin/apxs --with-config-file-path=/usr/local/etc --enable-versioning \ 
--with-regex=system --without-gd --without-mysql --with-zlib --with-imap=/usr/local \ 
--with-mysql=/usr/local --with-ldap=/usr/local --with-expat-dir=/usr/local \ 
--with-gettext=/usr/local --prefix=/usr/local --enable-track-vars --enable-force-cgi-redirect

it fails to compile at:


bash-2.05b# make
/bin/sh libtool --silent --mode=compile gcc  -Iext/zlib/ -I/usr/local/src/php-4.3.1/ext/zlib/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.1/include -I/usr/local/src/php-4.3.1/main -I/usr/local/src/php-4.3.1 -I/usr/local/src/php-4.3.1/Zend -I/usr/local/include -I/usr/local/include/c-client -I/usr/local/include/mysql  -DMOD_SSL=208112 -DMOD_PERL -DUSE_PERL_SSI -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.0/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DEAPI -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.0/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -I/usr/local/src/php-4.3.1/TSRM  -g -O2  -prefer-pic -c /usr/local/src/php-4.3.1/ext/zlib/zlib.c -o ext/zlib/zlib.lo
In file included from /usr/include/sys/param.h:104,
                 from /usr/local/src/php-4.3.1/TSRM/tsrm_config_common.h:14,
                 from /usr/local/src/php-4.3.1/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/local/src/php-4.3.1/main/php.h:360,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:28:
/usr/include/machine/limits.h:81: warning: `LONG_MAX' redefined
/usr/local/src/php-4.3.1/Zend/zend.h:189: warning: this is the location of the previous definition
/usr/include/machine/limits.h:82: warning: `LONG_MIN' redefined
/usr/local/src/php-4.3.1/Zend/zend.h:193: warning: this is the location of the previous definition
In file included from /usr/local/src/php-4.3.1/TSRM/tsrm_config_common.h:14,
                 from /usr/local/src/php-4.3.1/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/local/src/php-4.3.1/main/php.h:360,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:28:
/usr/include/sys/param.h:193: warning: `MAXPATHLEN' redefined
/usr/local/src/php-4.3.1/main/php.h:237: warning: this is the location of the previous definition
In file included from /usr/local/src/php-4.3.1/Zend/zend.h:202,
                 from /usr/local/src/php-4.3.1/main/php.h:34,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:28:
/usr/local/src/php-4.3.1/Zend/zend_hash.h:119: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.1/Zend/zend.h:203,
                 from /usr/local/src/php-4.3.1/main/php.h:34,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:28:
/usr/local/src/php-4.3.1/Zend/zend_llist.h:34: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.1/main/php.h:34,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:28:
/usr/local/src/php-4.3.1/Zend/zend.h:285: syntax error before `va_list'
/usr/local/src/php-4.3.1/Zend/zend.h:423: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.1/main/php.h:224,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:28:
/usr/local/src/php-4.3.1/main/spprintf.h:40: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:28:
/usr/local/src/php-4.3.1/main/php.h:277: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.1/main/php.h:360,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:28:
/usr/local/src/php-4.3.1/TSRM/tsrm_virtual_cwd.h:159: warning: `struct utimbuf' declared inside parameter list
/usr/local/src/php-4.3.1/TSRM/tsrm_virtual_cwd.h:159: warning: its scope is only this definition or declaration, which is probably not what you want.
In file included from /usr/local/src/php-4.3.1/ext/standard/fsock.h:38,
                 from /usr/local/src/php-4.3.1/ext/standard/php_standard.h:44,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:48:
/usr/local/src/php-4.3.1/main/php_network.h:113: syntax error before `socklen_t'
/usr/local/src/php-4.3.1/main/php_network.h:113: warning: `struct sockaddr' declared inside parameter list
In file included from /usr/local/src/php-4.3.1/ext/standard/php_standard.h:44,
                 from /usr/local/src/php-4.3.1/ext/zlib/zlib.c:48:
/usr/local/src/php-4.3.1/ext/standard/fsock.h:43: warning: `struct in_addr' declared inside parameter list
*** Error code 1

Stop in /usr/local/src/php-4.3.1.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-17 17:33 UTC] p0ix0n at yahoo dot com
I'm having the same exact issue. I cannot install 4.3.0 or 4.3.1. I get the same result when compiling. I'm also using FreeBSD 4.7-STABLE.
 [2003-02-17 17:36 UTC] p0ix0n at yahoo dot com
Oooops.. This may help.. attached is my config line:

'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-regex=system' '--without-gd' '--without-mysql' '--with-zlib' '--with-imap=/usr/local' '--with-mysql=/usr/local' '--with-ldap=/usr/local' '--with-expat-dir=/usr/local' '--with-gettext=/usr/local' '--prefix=/usr/local' '--with-mcrypt'
 [2003-02-17 17:55 UTC] msopacua@php.net
> /usr/local/src/php-4.3.1/Zend/zend_hash.h:119: syntax error before
`va_list'

Which is in <stdarg.h>.
zend_hash.h from zend.h, line 202.

On line 62 of zend.h:
#ifdef HAVE_STDARG_H
# include <stdarg.h>
#endif

So - there really is something wrong with your system, since FreeBSD 4.7-STABLE really has that header.

Try grepping for stdarg in config.log
 [2003-02-17 18:03 UTC] ikazdek at hotmail dot com
> Try grepping for stdarg in config.log

bash-2.05b# cat config.log | grep -i stdarg
configure:12921: checking for stdarg.h
configure:80395: checking for stdarg.h
configure:81463: checking for stdarg.h

So would to appropriate answer for this problem be to make with CFLAGS=-DHAVE_STDARG_H ?? 

I'm really outside my realm of knowledge here... but I know there are others out there that have had this same problem in the past.
 [2003-02-17 18:27 UTC] ikazdek at hotmail dot com
Making progress, but something is still goofy here...

bash-2.05b# make CFLAGS=-DHAVE_STDARG_H 

Now crashes at what looks to be a little earlier:

[snip-snip]

In file included from /usr/local/src/php-4.3.1/ext/ctype/ctype.c:23:
/usr/local/src/php-4.3.1/main/php.h:277: syntax error before `va_list'
In file included from /usr/local/src/php-4.3.1/main/php.h:360,
                 from /usr/local/src/php-4.3.1/ext/ctype/ctype.c:23:
/usr/local/src/php-4.3.1/TSRM/tsrm_virtual_cwd.h:159: warning: `struct utimbuf' declared inside parameter list
/usr/local/src/php-4.3.1/TSRM/tsrm_virtual_cwd.h:159: warning: its scope is only this definition or declaration, which is probably not what you want.
*** Error code 1

Stop in /usr/local/src/php-4.3.1.
 [2003-02-18 21:00 UTC] ikazdek at hotmail dot com
I've narrowed it down to apxs:

--with-apxs=/usr/local/sbin/apxs

Without the option to build it as a module, it will compile.
 [2003-02-19 22:41 UTC] sniper@php.net
[From: ikazdek at hotmail dot com]
For whatever flukey combination of reasons, the "fix" for this situation was to first ./configure WITHOUT ANY OPTIONS, then immediately ./configure with APXS and whatever other
options you want to install. It now compiles every time when
I do that.

---

That's good to know and definately helps to track this down.
Can you do the following:

# rm config.cache
# ./configure --with-apxs=<plusthepathtoapxs>
# cp config.log config.log.apxs
# rm config.cache
# ./configure
# cp config.log config.log.plain

And send me the those config.log.* files.
(Something is causing some tests to fail when
you have --with-apxs there..comparing the config.logs
I can see what it is.)

 [2003-02-19 22:42 UTC] sniper@php.net
Note: Send those log files via email! :)

 [2003-02-25 00:45 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

This _should_ be fixed now. 
If not, then send me those logs again but using this new
snapshot.

 [2003-03-09 18:55 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 14:01:29 2024 UTC