#18734 [Com]: Compile fails with php_functions.c:93:27: missing binary operator before '!'

From: Date: Tue, 06 Aug 2002 12:15:20 +0000
Subject: #18734 [Com]: Compile fails with php_functions.c:93:27: missing binary operator before '!'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16066@lists.php.net to get a copy of this message
ID: 18734 Comment by: antonio.conte@weebex.net Reported By: gobucks@ev1.net Status: Bogus Bug Type: Compile Failure Operating System: Linux kernel 2.4.18 PHP Version: 4.2.2 New Comment: As Troy, compiling for apxs2, i've had the error php_unctions.c:93:27: missing binary operator before '!'. Using: #if MODULE_MAGIC_NUMBER < 20020506 the make program fails. Instead, I've used: #if !MODULE_MAGIC_AT_LEAST == (20020506,0) and make was ok. I'm not a c programmer so, my solutions is good? Make and make install was ok!! hi Antonio Conte Previous Comments: ------------------------------------------------------------------------ [2002-08-04 12:51:27] sander@php.net To build the Apache 2 module, you need the latest CVS of both PHP and Apache 2. ------------------------------------------------------------------------ [2002-08-04 12:23:44] gobucks@ev1.net I configure PHP using : ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs make dies with : php_functions.c:93:27: missing binary operator before '!' Looking at php_functions.c there is a definition of MODULE_MAGIC_AT_LEAST(), but grepping the source tree doesn't seem to find where it would be defined. I changed it to be consistent with other MAGIC_MODULE comparisons: #if MODULE_MAGIC_NUMBER < 20020506 and everything seems to work. Troy Tanzer ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18734&edit=1

« previous php.bugs (#16066) next »