php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12451 compilation halts on libmysql extension
Submitted: 2001-07-28 17:04 UTC Modified: 2002-04-21 14:36 UTC
From: f dot lamonica at tin dot it Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.6 OS: Linux 2.4.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: f dot lamonica at tin dot it
New email:
PHP Version: OS:

 

 [2001-07-28 17:04 UTC] f dot lamonica at tin dot it
make[1]: Entering directory 
`/usr/local/src/php-4.0.6/ext/mysql/libmysql'
/bin/sh /usr/local/src/php-4.0.6/libtool --silent 
--mode=compile gcc  -I. 
-I/usr/local/src/php-4.0.6/ext/mysql/libmysql 
-I/usr/local/src/php-4.0.6/main -I/usr/local/src/php-4.0.6 
-I/usr/local/apache/include 
-I/usr/local/src/php-4.0.6/Zend -I/usr/local/ssl/include 
-I/opt/interbase//include 
-I/usr/local/src/php-4.0.6/ext/mysql/libmysql 
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok 
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse 
-I/usr/local/src/php-4.0.6/TSRM  -DLINUX=22 -DUSE_HSREGEX 
-DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c 
libmysql.c
In file included from libmysql.c:9:
global.h:240: warning: redefinition of `uint'
/usr/include/sys/types.h:146: warning: `uint' previously 
declared here
global.h:241: warning: redefinition of `ushort'
/usr/include/sys/types.h:145: warning: `ushort' previously 
declared here
In file included from libmysql.c:12:
m_string.h:180: parse error before `__extension__'
m_string.h:180: parse error before `&&'
make[1]: *** [libmysql.lo] Error 1
make[1]: Leaving directory 
`/usr/local/src/php-4.0.6/ext/mysql/libmysql'
make: *** [all-recursive] Error 1


my configure line is the following:
 ./configure --with-apxs=/usr/local/apache/bin/apxs 
--with-openssl --with-zlib --enable-ftp 
--with-interbase=/opt/interbase/          

i am running a freshly installed slackware 8.0 with apache 
1.3.20 glibc is 2.2.3

I Noticed that there is a compilation define -DLinux=22 
shouldn't it be 2.4?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-18 14:04 UTC] sniper@php.net
Does this happen with latest CVS snapshot:

http://snaps.php.net/


 [2001-10-02 18:29 UTC] sniper@php.net
No feedback. Considered fixed.

 [2002-01-26 07:25 UTC] anders at gjerlov dot dk
I have the same problem on a freshly installed RedHat 7.1 with the MySQL rpms installed and this configure:
./configure --with-apxs=/opt/apache/default/bin/apxs --with-gd --enable-magic-quotes --enable-trans-sid --with-imap --with-imap-ssl --with-ldap --with-png --with-jpeg --with-ttf --with-xml --with-kerberos
Also tried it with:
./configure --with-apxs=/opt/apache/default/bin/apxs --enable-magic-quotes --enable-trans-sid
This worked!!
Will try different configure commands.
 [2002-03-01 15:07 UTC] s dot eizinga at NOSPAM dot quicknet dot nl
I have this error to on my Cobalt Raq 4 :(
 [2002-03-20 16:47 UTC] frodo at cosmo dot naut dot cz
This bug is openned again...

In PHP 4.1.2 with manualy recompiled (rpm --rebuild) Mysql libraries
 [2002-03-20 16:50 UTC] frodo at cosmo dot naut dot cz
./configure --with-apache=../apache_1.3.20/ --enable-track-vars --with-kerberos --with-imap-ssl --with-imap --with-mysql --with-gettext=../gettext-0.10.40/ --with-xml --with-gd --enable-ftp


gcc -I/home/www/src/php4-200203201200/ext/mysql/libmysql -I/home/www/src/php4-200203201200/ext/mysql -I/home/www/src/php4-200203201200/ext/mysql -DPHP_ATOM_INC -I/home/www/src/php4-200203201200/include -I/home/www/src/php4-200203201200/main -I/home/www/src/php4-200203201200 -I/home/www/src/apache_1.3.20/src/include -I/home/www/src/apache_1.3.20/src/os/unix -I/home/www/src/php4-200203201200/Zend -I/usr/include/imap -I/home/www/src/php4-200203201200/ext/xml/expat  -I/home/www/src/php4-200203201200/TSRM -g -O2  -c /home/www/src/php4-200203201200/ext/mysql/libmysql/libmysql.c -o ext/mysql/libmysql/libmysql.o  && echo > ext/mysql/libmysql/libmysql.lo
In file included from /home/www/src/php4-200203201200/ext/mysql/libmysql/libmysql.c:5:
/home/www/src/php4-200203201200/ext/mysql/libmysql/global.h:136:22: operator 'EOL' has no left operand
In file included from /home/www/src/php4-200203201200/ext/mysql/libmysql/libmysql.c:5:
/home/www/src/php4-200203201200/ext/mysql/libmysql/global.h:498:22: operator 'EOL' has no left operand
In file included from /home/www/src/php4-200203201200/ext/mysql/libmysql/libmysql.c:12:
/home/www/src/php4-200203201200/ext/mysql/libmysql/m_string.h:205:36: operator '==' has no right operand
make: *** [ext/mysql/libmysql/libmysql.lo] Error 1
[root@mario php4-200203201200]#
 [2002-03-20 19:05 UTC] sniper@php.net
Could you please try the very latest snapshot:
http://snaps.php.net/php4-200203201500.tar.gz

--Jani

 [2002-03-30 19:14 UTC] nospam at qweb dot com
This still occurs in php4-200203301500.
 [2002-04-21 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-04-21 14:36 UTC] sniper@php.net
Reopen if this happens with PHP 4.2.0.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 15:01:31 2025 UTC