php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18226 MySQL Engine compile fails
Submitted: 2002-07-08 08:14 UTC Modified: 2002-07-08 08:22 UTC
From: andreas dot blatzheim at gecits-eu dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.1 OS: Solaris 2.8
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: andreas dot blatzheim at gecits-eu dot com
New email:
PHP Version: OS:

 

 [2002-07-08 08:14 UTC] andreas dot blatzheim at gecits-eu dot com
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#


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-08 08:22 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the original bug instead.

Thank you for your interest in PHP.

Already submitted as #18222
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 22:00:01 2026 UTC