#18617 [Com]: warning: empty declaration
| From: | phpbugs at drcheap dot com | Date: | Mon, 29 Jul 2002 01:26:31 +0000 |
| Subject: | #18617 [Com]: warning: empty declaration | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15464@lists.php.net to get a copy of this message | ||
ID: 18617
Comment by: phpbugs@drcheap.com
Reported By: phpbugs@drcheap.com
Status: Feedback
Bug Type: Compile Failure
Operating System: Slackware Linux 8.0 (2.4.5 krnl)
PHP Version: 4.2.2
New Comment:
Here those items +/- a few lines to put them in context:
/usr/include/stdlib.h
--------
143:#if defined __USE_ISOC99 || (defined __GNUC__ && defined
__USE_MISC)
144:/* Convert a string to a long long integer. */
145:__extension__ extern long long int atoll (__const char *__nptr)
146: __THROW __attribute_pure__;
147:#endif
--------
main/php_config.h
--------
2046:#ifdef HAVE_ISNAN
2047:#define zend_isnan(a) isnan(a)
2048:#elif defined(NAN)
2049:#define zend_isnan(a) (((a)==NAN)?1:0)
2050:#elif defined(HAVE_FPCLASS)
2051:#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) ==
FP_QNAN))
2052:#else
2053:#define zend_isnan(a) 0
2054:#endif
--------
Previous Comments:
------------------------------------------------------------------------
[2002-07-28 21:17:43] msopacua@idg.nl
what's at /usr/include/stdlib.h on line 144/146
An empty declaration is something like:
#define int socklen_t
Other file:
typedef int socklen_t;
Result:
typedef int int;
They are harmless though in most cases, but this is one I bumped to
recently also.
Could you also list line 2048 of main/php_config.h?
------------------------------------------------------------------------
[2002-07-28 21:05:05] phpbugs@drcheap.com
Yes, defintely.
I even went over to my old PHP 4.1.2 source tree and ran a
make clean
then make and it went smooth.
------------------------------------------------------------------------
[2002-07-28 21:03:24] rasmus@php.net
Well, do other things compile on that server?
------------------------------------------------------------------------
[2002-07-28 21:01:27] phpbugs@drcheap.com
I am unable to successfully compile PHP...
No matter what combination of configure options I use (even just
running configure by itself) I always get output such as this during
the make process:
------------
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main
-I../TSRM -g -O2 -prefer-non-pic -static -c -o
zend_language_parser.lo `test
-f zend_language_parser.c || echo './'`zend_language_parser.c
In file included from /usr/include/stdlib.h:391,
from ../main/php_config.h:2084,
from zend_config.h:1,
from zend.h:48,
from zend_compile.h:24,
from zend_language_parser.c:147:
/usr/include/sys/types.h:144: warning: empty declaration
/usr/include/sys/types.h:146: warning: empty declaration
------------
This same warning is reported for pretty much EVERY SINGLE item that is
built during make.
When the process completes, I have no errors reported, just TONS of
warnings like above. Additionally, the libs/libphp4.so file (and maybe
others) are not created, which causes make install to fail.
I find no previous mention of this problem anywhere (web, usenet,
etc.), perhaps you can make sense of it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18617&edit=1