#26910 [NEW]: failure in my_getwd.c

From: Date: Wed, 14 Jan 2004 19:35:46 +0000
Subject: #26910 [NEW]: failure in my_getwd.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53334@lists.php.net to get a copy of this message
From: desmond at covalent dot net Operating system: Solaris 2.8 64bit PHP version: 4.3.5RC1 PHP Bug Type: Compile Failure Bug description: failure in my_getwd.c 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 bug report at http://bugs.php.net/?id=26910&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26910&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26910&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26910&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26910&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26910&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26910&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26910&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26910&r=support Expected behavior: http://bugs.php.net/fix.php?id=26910&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26910&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26910&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26910&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26910&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26910&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26910&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26910&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26910&r=float

« previous php.bugs (#53334) next »