php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26910 failure in my_getwd.c
Submitted: 2004-01-14 14:35 UTC Modified: 2004-01-14 14:37 UTC
From: desmond at covalent dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.5RC1 OS: Solaris 2.8 64bit
Private report: No CVE-ID: None
 [2004-01-14 14:35 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-14 14:37 UTC] sniper@php.net
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..)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Dec 06 08:00:01 2025 UTC