php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17809 Failure When Compiling MySQL+SSL+IMAP+FTP+...
Submitted: 2002-06-17 23:21 UTC Modified: 2002-07-12 17:55 UTC
Votes:4
Avg. Score:3.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:4 (100.0%)
From: emrecio at netscape dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: RedHat 7.3/Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: emrecio at netscape dot net
New email:
PHP Version: OS:

 

 [2002-06-17 23:21 UTC] emrecio at netscape dot net
Compiling PHP-4.2.1 with the following options:

./configure  --with-apxs=/usr/sbin/apxs --enable-dbase --enable-ftp --with-gd --with-ldap --with-imap --with-mysql --with-mm --with-openssl --with-zlib --enable-bcmath --with-kerberos=/usr --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-imap-ssl=/usr --with-xpm-dir=/usr --with-mhash --with-gdbm=/usr

Causes the following error when it gets to MySQL:

make[4]: Entering directory `/usr/local/src/php-4.2.1/ext/mysql/libmysql'
/bin/sh /usr/local/src/php-4.2.1/libtool --silent --mode=compile gcc  -I. -I/usr/local/src/php-4.2.1/ext/mysql/libmysql -I/usr/local/src/php-4.2.1/main -I/usr/local/src/php-4.2.1 -I/usr/include/apache -I/usr/local/src/php-4.2.1/Zend -I/usr/include/freetype2/freetype -I/usr/include/imap -I/usr/local/include -I/usr/local/src/php-4.2.1/ext/mysql/libmysql -I/usr/local/src/php-4.2.1/ext/xml/expat  -DLINUX=22 -DEAPI -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/usr/local/src/php-4.2.1/TSRM -g -O2 -prefer-pic  -c libmysql.c
In file included from libmysql.c:5:
global.h:256: warning: redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
global.h:257: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
global.h:258: warning: redefinition of `ulong'
/usr/include/sys/types.h:150: warning: `ulong' 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[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory `/usr/local/src/php-4.2.1/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.2.1/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.2.1/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.1/ext'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-17 23:47 UTC] sniper@php.net
This should be fixed in this snapshot:

http://snaps.php.net/php4-latest.tar.gz

 [2002-06-17 23:52 UTC] emrecio at netscape dot net
./configure --with-apxs=/usr/sbin/apxs --enable-dbase --enable-ftp --with-gd --with-ldap --with-imap --with-kerberos=/usr --with-imap-ssl=/usr --with-mysql makes it fail too. (remove the imap/kerberos/ssl and it combines fine...
 [2002-06-18 00:08 UTC] sniper@php.net
Did you, or did you not try this snapshot:

http://snaps.php.net/php4-latest.tar.gz

???

 [2002-07-03 00:53 UTC] imajes@php.net
Reporter, would you let us know if this is fixed or not for you?

 [2002-07-03 09:54 UTC] emrecio at netscape dot net
Will try it out on the latest release before 00:00 EST. Still getting errors on 4.2.1.
 [2002-07-03 17:16 UTC] emrecio at netscape dot net
No, it doesnt work in  php4-latest.tar.gz 
---

In file included from /home/erecio/Downloads/php4-200207022100/ext/mysql/libmysql/libmysql.c:4:
/home/erecio/Downloads/php4-200207022100/ext/mysql/libmysql/global.h:260: warning: redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
/home/erecio/Downloads/php4-200207022100/ext/mysql/libmysql/global.h:261: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
In file included from /home/erecio/Downloads/php4-200207022100/ext/mysql/libmysql/libmysql.c:11:
/home/erecio/Downloads/php4-200207022100/ext/mysql/libmysql/m_string.h:183: parse error before `__extension__'
/home/erecio/Downloads/php4-200207022100/ext/mysql/libmysql/m_string.h:183: parse error before `&&'
make: *** [ext/mysql/libmysql/libmysql.lo] Error 1
 [2002-07-03 17:19 UTC] emrecio at netscape dot net
The snapshot where I got the error was php4-200207022100
 [2002-07-07 21:25 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.



http://snaps.php.net/php4-latest.tar.gz

 [2002-07-08 18:43 UTC] emrecio at netscape dot net
Nope, the latest version (both stable and php-latest) experience the same problems when they get to the mysql section.
 [2002-07-08 21:53 UTC] sniper@php.net
What might be the gcc version in your system?

 [2002-07-08 22:18 UTC] emrecio at netscape dot net
[erecio@moz erecio]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
 [2002-07-08 22:33 UTC] sniper@php.net
And are HAVE_USHORT / HAVE_UINT defined in main/php_config.h ?

If not, check config.log for the reason why not..

 [2002-07-08 23:52 UTC] emrecio at netscape dot net
configure:44145: checking for type ushort
configure:44164: gcc -o conftest -g -O2  -DLINUX=22 -DEAPI -DEAPI_MM -DEAPI_MM_C
ORE_PATH=/var/run/httpd.mm  -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpat
h,/usr/local/lib -L/usr/local/lib conftest.c -lmhash -lldap -llber -lcrypt -lpam
 -lgd -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lgdbm -lz -lcrypt -lssl -lcrypto
-lresolv -lm -ldl -lnsl  -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status


However, gssapi_krb5 is not necessary for compiling the imap programs/libraries... as the normal krb5 devel/libs are installed.
 [2002-07-11 18:35 UTC] sniper@php.net
Use this --with-kerberos (without the path) and it should work.



 [2002-07-12 17:37 UTC] emrecio at netscape dot net
NICE! It worked. Should this be, or is this documented anywhere? If it is, sorry I wasted your time, if it's not, well, just a README.IMAP would be cool! :)
 [2002-07-12 17:55 UTC] sniper@php.net
Not really documentable. In RH, those kerberos libs are under /usr/kerberos, if you use '/usr', of course it will fail. I've made some adjustments to the configure so in
future php versions this kind of errors are caught earlier
during the configure.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 22:01:26 2024 UTC