Re: [PHP4BETA] libmysql.c compile error
| From: | Paul DuBois | Date: | Thu, 09 Mar 2000 20:41:33 +0000 |
| Subject: | Re: [PHP4BETA] libmysql.c compile error | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11817@lists.php.net to get a copy of this message | ||
At 1:31 PM -0500 03-09-2000, Mitch Vincent wrote:
I'm still getting some serious compile problems on my FreeBSD box with the latest PHP4 CVS and MySQL 3.22.32.. I tried > ./cvsclean ./buildconf and re-running configure but it didn't change a thing.. I got the snapshot about 30 minutes ago.Doesn't work for me, either (Solaris 7, gcc 2.95). I get somewhat different messages, but they're all in the mysql subtree. I haven't been able to build since the mysql stuff was added to the tree. Here's a sample: Making all in mysql gmake[2]: Entering directory `/src/extern/PHP/php4/ext/mysql' Making all in libmysql gmake[3]: Entering directory `/src/extern/PHP/php4/ext/mysql/libmysql' gmake[4]: Entering directory `/src/extern/PHP/php4/ext/mysql/libmysql' gcc -DHAVE_CONFIG_H -I. -I/src/extern/PHP/php4/ext/mysql/libmysql -I../../.. -I../../../Zend -I/src/extern/PHP/php4 -I/usr/local/include/gnome-xml -I/src/extern/PHP/php4/ext/mysql/libmysql -I/src/extern/PHP/php4/ext/xml/expat/xmltok -I/src/extern/PHP/php4/ext/xml/expat/xmlparse -I/usr/local/include -DXML_BYTE_ORDER=21 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -Wall -c libmysql.c && touch libmysql.lo In file included from libmysql.c:11: global.h:194: warning: redefinition of `uint' /usr/include/sys/types.h:475: warning: `uint' previously declared here global.h:195: warning: redefinition of `ushort' /usr/include/sys/types.h:474: warning: `ushort' previously declared here In file included from libmysql.c:11: global.h:508: warning: redefinition of `ulong' /usr/include/sys/types.h:476: warning: `ulong' previously declared here libmysql.c: In function `net_field_length_ll': libmysql.c:368: warning: left shift count >= width of type I'd be happy to disable the built-in mysql stuff and link against my installed mysql libs. I tried --disable-mysql --with-mysql=/usr/local on the configure command, but it had no effect. Can this be done?
libmysql.c: In function `mysql_store_result': libmysql.c:1725: warning: assignment from incompatible pointer type libmysql.c: In function `mysql_use_result': libmysql.c:1771: warning: assignment from incompatible pointer type libmysql.c: In function `mysql_fetch_row': libmysql.c:1816: warning: passing arg 4 of `read_one_row' from incompatible pointer type libmysql.c: At top level: libmysql.c:1847: conflicting types for `mysql_fetch_lengths' mysql.h:234: previous declaration of `mysql_fetch_lengths' libmysql.c: In function `mysql_fetch_lengths': libmysql.c:1858: warning: assignment from incompatible pointer type libmysql.c:1872: warning: return from incompatible pointer type libmysql.c: At top level: libmysql.c:2055: conflicting types for `mysql_kill' mysql.h:211: previous declaration of `mysql_kill' libmysql.c:2229: conflicting types for `mysql_thread_id' mysql.h:170: previous declaration of `mysql_thread_id' libmysql.c:2245: conflicting types for `mysql_escape_string' mysql.h:237: previous declaration of `mysql_escape_string' libmysql.c:2304: conflicting types for `mysql_odbc_escape_string' mysql.h:246: previous declaration of `mysql_odbc_escape_string' *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 .... to be precise :-) ----- Original Message ----- From: Sascha Schumann <sascha@schumann.cx> To: Dan Larsson <dl@tyfon.net> Cc: Php4beta (E-mail) <php4beta@lists.php.net> Sent: Thursday, March 09, 2000 7:42 AM Subject: Re: [PHP4BETA] libmysql.c compile error-- Paul DuBois, paul@snake.netOn Thu, Mar 09, 2000 at 12:04:20PM +0100, Dan Larsson wrote:After last nights CVS I get the following compile error: FYI: php-4.0b5-dev + apache-1.3.12 + mysql-3.22.27 on FreeBSD-3.2R How do I go from here?Try ./cvsclean ./buildconf Then rerun configure. - Sascha -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net