|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-14 14:37 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 10:00:01 2025 UTC |
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