ID: 26910
Updated by: [EMAIL PROTECTED]
Reported By: desmond at covalent dot net
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Solaris 2.8 64bit
PHP Version: 4.3.5RC1
New Comment:
It's mysql bug. Use external mysql client library to fix this.
(we can not upgrade the mysql client library anymore due to license
issues, so..)
Previous Comments:
------------------------------------------------------------------------
[2004-01-14 14:35:46] desmond at covalent dot net
Description:
------------
(Note: you have two similar bugs in the database but closed them due to
either lack of information or feedback. This bug is from the latest
release candidate and is quite severe.)
I received a compile error under solaris:
ext/mysql/libmysql/my_getwd.c line 65...
No way to get current directory.
Don't know why but assuming "configure" didn't define HAVE_GETCWD. I
guess I could have just defined HAVE_CWD, but I side-stepped this by
commenting out error and adding back the code for HAVE_CWD as in:
#else
/*error "No way to get current directory"*/
if (!getcwd(buf,size-2) && MyFlags & MY_WME)
{
my_errno=errno;
my_error(EE_GETWD,
MYF(ME_BELL+ME_WAITTANG),errno);
return(-1);
}
#endif
Reproduce code:
---------------
FWIW, here's how to reproduce:
-- requires a solaris SunOs2.8 64bit machine...
1. configure:
CC=gcc
CFLAGS="-O3 -m64 -fno-omit-frame-pointer"
CXX=gcc
CXXFLAGS="-O3 -m64 -fno-omit-frame-pointer -felide-constructors
-fno-exceptions -fno-rtti"
./configure --with-gnu-ld \
--with-gnu-as \
--with-ldap=/usr/local/iplanetsdk \
--with-mysql \
--with-zlib-dir=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-extra-charsets=complex \
--enable-thread-safe-client \
--enable-local-infile \
--enable-assembler \
--with-named-curses-libs=-lcurses \
--disable-shared
2. make
Expected result:
----------------
compile success
Actual result:
--------------
compiler failure
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26910&edit=1