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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: armin at devicen dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC