#20229 [Com]: PHP4 Compile errors with mysql module

From: Date: Mon, 11 Nov 2002 21:39:09 +0000
Subject: #20229 [Com]: PHP4 Compile errors with mysql module
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24625@lists.php.net to get a copy of this message
 ID:               20229
 Comment by:       idave@idave.it
 Reported By:      idave@idave.it
 Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: RedHat Linux 8.0
 PHP Version:      4CVS-2002-11-03
 New Comment:

I'm sorry... How SIZEOF_LONG_LONG should be set in 
main/php_config.h???


Previous Comments:
------------------------------------------------------------------------

[2002-11-11 15:32:13] msopacua@php.net

By the way:
SIZEOF_LONG_LONG should also be set in main/php_config.h.

The grep for /usr/include, is to make sure it isn't canceled out
somehow.

If it's not set in main/php_config.h, check config.log, to see why.

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

[2002-11-11 15:18:43] msopacua@php.net

Please try the following patch:
Index: global.h
===================================================================
RCS file: /repository/php4/ext/mysql/libmysql/global.h,v
retrieving revision 1.10
diff -u -r1.10 global.h
--- global.h    7 Jun 2002 15:07:53 -0000       1.10
+++ global.h    11 Nov 2002 21:15:37 -0000
@@ -133,9 +133,12 @@
 #if defined(_lint) && !defined(lint)
 #define lint
 #endif
+
+#ifdef SIZEOF_LONG_LONG
 #if SIZEOF_LONG_LONG > 4 && !defined(_LONG_LONG)
 #define _LONG_LONG 1           /* For AIX string library */
 #endif
+#endif
 
 #ifndef stdin
 #include <stdio.h>
@@ -502,8 +505,10 @@
 
 /* This is from the old m-machine.h file */
 
+#ifdef SIZEOF_LONG_LONG
 #if SIZEOF_LONG_LONG > 4
 #define HAVE_LONG_LONG 1
+#endif
 #endif
 
 #if defined(HAVE_LONG_LONG) && !defined(LONGLONG_MIN)


(basically, wrap the 2 occurrences of SIZEOF_LONG_LONG in global.h with
#ifdef)

If that fixes it, please report the outcome of:
find /usr/include -type f -name "*.h" -print | xargs grep -l
SIZEOF_LONG_LONG


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

[2002-11-11 07:44:21] idave@idave.it

Just sent to the new address you told me. Just to be sure, u can find
the file at the following addresses:
ftp://ftp.idave.it/php_mysql.out
ftp://ftp.idave.it/php_mysql.out.tar.gz

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

[2002-11-10 15:54:06] idave@idave.it

any new? I'm still waiting...

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

[2002-11-05 16:50:53] idave@idave.it

Just sent.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/20229

-- 
Edit this bug report at http://bugs.php.net/?id=20229&edit=1



Thread (24 messages)

« previous php.bugs (#24625) next »