php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #385 Missing code in php3
Submitted: 1998-05-18 15:41 UTC Modified: 1998-07-02 13:04 UTC
From: armin at devicen dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0 Release Candidate 4 OS: NEXTSTEP 3.0
Private report: No CVE-ID: None
 [1998-05-18 15:41 UTC] armin at devicen dot de
Configure line for php3:
CC=gcc ./configure --host=m68k-next-nextstep3 --with-apache=/home1/armin/Internet/compile/apache_1.2.6-src --with-msql=/usr/local/msql --enable-bcmath

Main problem: Can't compile php3 as a module into apache 1.2.6 because of undefined symbol "_tempnam".

There seem to be unsupported configurations in the php3 code:
"configure" guesses right about missing "tempnam()" function and comments "HAVE_TEMPNAM", but the source code doesn't reflects this parameter: especially in "functions/mime.c" the source code still uses this function. So, when gcc tries to link mod_php3.o, the linker exits because of undefined symbol "_tempnam"

Other problems are:
Some files try to include the same header files as apache's "conf.h". The double references are to <pwd.h>, <netdb.h> and <grp.h>.
Code uses "dirent" routines even if "configure" doesn't set "HAVE_DIRENT" (in function/dir.c).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-02 13:04 UTC] ssb
A substitute tempnam() function has been added for the
systems without it.  Please try the latest CVS version
or wait for 3.0.1.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 13:01:29 2024 UTC