php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45584 PHP 5 compilation failed with mysql/32bit on AIX5.3/64bit
Submitted: 2008-07-21 16:18 UTC Modified: 2008-07-29 01:00 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: frederic dot cabo at fr dot ibm dot com Assigned: fb-req-jani (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.2.6 OS: aix 5.3 TL06
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: frederic dot cabo at fr dot ibm dot com
New email:
PHP Version: OS:

 

 [2008-07-21 16:18 UTC] frederic dot cabo at fr dot ibm dot com
Description:
------------
Hi,
i'm trying to compile php5.2.6 on aix 5.3/64bit, with mysql extension.

# CC=cc ./configure --with-mysql=shared,/opt/mysql5 --with-mysql-sock=/tmp/mysql.sock

and i get this error :
checking for mysql_close in -lmysqlclient... no
checking for mysql_errno in -lmysqlclient... no
configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information.


When i look at that logfile, i see :
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_close();

int main() {
mysql_close()
; return 0; }
configure:62585: checking for mysql_errno in -lmysqlclient
configure:62604: cc -o conftest -g  -R/opt/mysql5/lib -L/opt/mysql5/lib  conftest.c -lmysqlclient  -lm  1>&5
ld: 0706-027 The -R /opt/mysql5/lib flag is ignored.
ld: 0711-317 ERROR: Undefined symbol: .mysql_errno
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
configure: failed program was:
#line 62593 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_errno();

int main() {
mysql_errno()
; return 0; }


Is there a bug known, on that kind of configuration?
Thanks for help ;-)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 01:01:28 2024 UTC