Bug #18226: MySQL Engine compile fails
| From: | andreas dot blatzheim at gecits-eu dot com | Date: | Mon, 08 Jul 2002 12:14:53 +0000 |
| Subject: | Bug #18226: MySQL Engine compile fails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13511@lists.php.net to get a copy of this message | ||
From: andreas.blatzheim@gecits-eu.com
Operating system: Solaris 2.8
PHP version: 4.2.1
PHP Bug Type: Compile Failure
Bug description: MySQL Engine compile fails
Enviroment:
INCLUDE_PATH=/usr/include:/opt/GEITSlib/include:/opt/sfw/include
LD_LIBRARY_PATH=/lib:/usr/lib:/opt/GEITSlib/lib:/opt/sfw/lib
LIBRARY_PATH=/lib:/usr/lib:/opt/GEITSlib/lib:/opt/sfw/lib
Compiler:
gcc 2.95 from the SFW (SUN Freeware Package)
Problem:
/bin/sh /export/build/php-4.2.1/libtool --silent --mode=compile gcc -I.
-I/export/build/php-4.2.1/ext/mysql/libmysql
-I/export/build/php-4.2.1/main -I/export/build/php-4.2.1
-I/opt/GEITSwww/include -I/export/build/php-4.2.1/Zend
-I/opt/GEITSlib/include -I/export/build/php-4.2.1/ext/mysql/libmysql
-I/export/build/php-4.2.1/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/export/build/php-4.2.1/TSRM
-DTHREAD=1 -g -O2 -pthreads -DZTS -prefer-pic -c dbug.c
In file included from dbug.c:72:
global.h:256: warning: redefinition of `uint'
/usr/include/sys/types.h:484: warning: `uint' previously declared here
global.h:257: warning: redefinition of `ushort'
/usr/include/sys/types.h:483: warning: `ushort' previously declared here
global.h:258: warning: redefinition of `ulong'
/usr/include/sys/types.h:485: warning: `ulong' previously declared here
In file included from dbug.c:72:
global.h:590: warning: redefinition of `ulong'
global.h:258: warning: `ulong' previously declared here
dbug.c:180: warning: static declaration for `perror' follows non-static
dbug.c: In function `perror':
dbug.c:1907: argument `s' doesn't match prototype
dbug.c:180: prototype declaration
*** Error code 1
make: Fatal error: Command failed for target `dbug.lo'
Current working directory /export/build/php-4.2.1/ext/mysql/libmysql
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
bash-2.03#
This is one of several error that occure when you set the --with-mysql
option during the compile.
Configure Options:
./configure --prefix=/opt/GEITSphp --with-apxs2=/opt/GEITSwww/bin/apxs
--with-zlib=/opt/GEITSlib --with-ldap=/opt/GEITSlib --with-mysql
--with-ssl=/opt/GEITSlib --with-memory-limit --enable-trans-sid
In addition I've tried to enable my owen MySQL Libs by setting a path
Additional Options and result:
checking base type of last arg to accept... socklen_t
checking return type of qsort... void
configure: error: Cannot find header files under /opt/GEITSql/lib/mysql
bash-2.03#
--
Edit bug report at http://bugs.php.net/?id=18226&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18226&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18226&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18226&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18226&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18226&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18226&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18226&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18226&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18226&r=globals