php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11846 AL EJECUTAR MAKE MARCA ERROR
Submitted: 2001-07-02 15:15 UTC Modified: 2001-08-02 16:21 UTC
From: ggalindo at ref dot pemex dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: NCR WM 4300 unix systema V MP-RA
Private report: No CVE-ID: None
 [2001-07-02 15:15 UTC] ggalindo at ref dot pemex dot com
NCR High Performance C Compiler R3.0c
(c) Copyright 1994-97, NCR Corporation
(c) Copyright 1987-97, MetaWare Incorporated
E "my_init.c",L44/C7(#237):     INT_MAX: Identifier is undeclared.
w "my_init.c",L100/C9(#257):    '=' encountered where '==' may have been intended.
1 user error   1 warning
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-02 15:18 UTC] derick@php.net
You get this error during the compilation of the mysql client libraries that are bundled with PHP.
Can you compile MySQL without problems? And can you possibly try gcc for the compilation of PHP?
What is you configure line?

Derick
 [2001-07-02 17:43 UTC] ggalindo at ref dot pemex dot com
THE VERSION installed version at the moment is 3.0.18 without problem.     
not compile with mysql, use to informix database
the procedure is
1.- 
$ cd apache_1.3.19
$ ./configure          # OK NO ERROR
$ cd ../php4.0.6
$ cd php-4.0.6
$ ./configure --with-informix=yes --with-apache=/admvos/apache/apache_1.3.19 --enable-sysvsem --enable -sysvshm        # OK NO ERROR
$ make 
Making all in libmysql
        cc  -I. -I/admvos/sistgczo/php-4.0.6/ext/mysql/libmysql -I/admvos/sistgczo/php-4.0.6/main -I/admvos/sistgczo/php-4.0.6 -I/admvos/apache/apache_1.3.19/src/include -I/admvos/apache/apache_1.3.19/src/os/unix -I/admvos/sistgczo/php-4.0.6/Zend -I/usr/informix/incl/esql -I/admvos/sistgczo/php-4.0.6/ext/mysql/libmysql -I/admvos/sistgczo/php-4.0.6/ext/xml/expat/xmltok -I/admvos/sistgczo/php-4.0.6/ext/xml/expat/xmlparse -I/admvos/sistgczo/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12   -c my_init.c && touch my_init.lo
NCR High Performance C Compiler R3.0c
(c) Copyright 1994-97, NCR Corporation
(c) Copyright 1987-97, MetaWare Incorporated
E "my_init.c",L44/C7(#237):     INT_MAX: Identifier is undeclared.
w "my_init.c",L100/C9(#257):    '=' encountered where '==' may have been intended.
1 user error   1 warning
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.    # THE LAST 25 LINES
$
THE VERSION installed version at the moment is 3.0.18 without problem.     

THANKS  GRACIAS
 [2001-07-03 02:53 UTC] derick@php.net
For now you can disable the use of MySQL by adding --withot-mysql to your configire line.

./configure --with-informix=yes --with-apache=/admvos/apache/apache_1.3.19
--enable-sysvsem --enable-sysvshm --without-mysql

I reported this to the MySQL folks, as
 [2001-07-03 09:44 UTC] ggalindo at ref dot pemex dot com
again error in other lines
command compile

$./configure --with-informix=yes --with-apache=/admvos/apache/apache_1.3.19 --enable-sysvsem --enable-sysvshm --without-mysql
   LAST LINES 
        cc  -I. -I/admvos/sistgczo/php-4.0.6/ext/posix -I/admvos/sistgczo/php-4.0.6/main -I/admvos/sistgczo/php-4.0.6 -I/admvos/apache/apache_1.3.19/src/include -I/admvos/apache/apache_1.3.19/src/os/unix -I/admvos/sistgczo/php-4.0.6/Zend -I/usr/informix/incl/esql -I/admvos/sistgczo/php-4.0.6/ext/xml/expat/xmltok -I/admvos/sistgczo/php-4.0.6/ext/xml/expat/xmlparse -I/admvos/sistgczo/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12   -c posix.c && touch posix.lo
NCR High Performance C Compiler R3.0c
(c) Copyright 1994-97, NCR Corporation
(c) Copyright 1987-97, MetaWare Incorporated
w "/admvos/sistgczo/php-4.0.6/Zend/zend_execute.h",L185/C5(#257):       '=' encountered where '==' may have been intended.
w "/admvos/sistgczo/php-4.0.6/Zend/zend_execute.h",L198/C4(#257):       '=' encountered where '==' may have been intended.
w "/admvos/sistgczo/php-4.0.6/ext/standard/php_string.h",L125/C5(#257): '=' encountered where '==' may have been intended.
E "posix.c",L357/C17(#237):     NGROUPS_MAX: Identifier is undeclared.
E "posix.c",L357/C9(#445):      gidlist
|    Type of variable is an array of zero length.
E "posix.c",L361/C21(#237):     NGROUPS_MAX: Identifier is undeclared.
w (#657):       (info) How referenced files were included:
|    File /admvos/sistgczo/php-4.0.6/Zend/zend_execute.h from /admvos/sistgczo/php-4.0.6/Zend/zend_API.h from /admvos/sistgczo/php-4.0.6/main/php.h from posix.c.
|    File /admvos/sistgczo/php-4.0.6/ext/standard/php_string.h from posix.c.
3 user errors   4 warnings
*** Error code 3 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.

THANKS...
 [2001-07-03 16:38 UTC] derick@php.net
Input from the MySQL team:

The MySQL code does assume that INT_MAX and INT_MIN are defined
somewhere.  We include <limits.h> if it is found, and it should
have those macros defined in it.

It may be a communication problem between the PHP configure and
the MySQL code; if for some reason HAVE_LIMITS_H is not being
defined, then we won't include <limits.h>.  But it looks like
PHP is using HAVE_LIMITS_H in several places itself, so that
shouldn't be the case.  Also, INT_MAX is used in the pcrelib and
oci8 extensions, so I don't think it's strictly a MySQL issue.

It looks like maybe the user's limits.h is defective.  Or maybe
the compiler is not installed correctly, or something.  It would
be up to the user, I think, to track down what happened to
INT_MAX on his system.  I suppose we could add a test for it in
our config stuff, but I really think that's the wrong fix.

Tim

------------------------

Can you take a look at your limits.h file?

Derick
 [2001-08-02 16:21 UTC] andy@php.net
no user feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 20:01:29 2024 UTC