php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #853 doesn't work with apache 1.3.3
Submitted: 1998-10-16 09:54 UTC Modified: 1998-11-02 08:42 UTC
From: cm at acs-ba dot sk Assigned: jimjag (profile)
Status: Closed Package: Compile Failure
PHP Version: 3.0.5 OS: AIX 4.2.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cm at acs-ba dot sk
New email:
PHP Version: OS:

 

 [1998-10-16 09:54 UTC] cm at acs-ba dot sk
root /usr/local/php-3.0.5_16#make install
make
        cc -g   -I. -I.   -I/usr/local/apache_1.3.3/src/include -I/usr/local/apa
che_1.3.3/sr
c/os/unix                      -c language-parser.tab.c -o language-parser.tab.o
"/usr/local/apache_1.3.3/src/os/unix/os.h", line 109.12: 1506-343 (S) Redeclarat
ion of dlerr
or differs from previous declaration on line 35 of "/usr/include/dlfcn.h".
"/usr/local/apache_1.3.3/src/os/unix/os.h", line 109.12: 1506-050 (I) Return typ
e "const uns
igned char*" in redeclaration is not compatible with the previous return type "u
nsigned char
*".
make: 1254-004 The error code from the last command is 1.


Stop.
root /usr/local/php-3.0.5_17#

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-02 08:42 UTC] jimjag
Yep. Apache does not use AIX's DSO, but PHP doesn't know
that, so it trys to include /usr/include/dlfcn.h which
conflicts with Apache.

Try this patch for php.h

  #if HAVE_LIBDL
  # if MSVC5
  #  include <windows.h>
  #  define dlclose FreeLibrary
  #  define dlopen(a,b) LoadLibrary(a)
  #  define dlsym GetProcAddress
  # else
! #if HAVE_DLFCN_H && !(defined(_AIX)) && APACHE
  #  include <dlfcn.h>
  #endif
  # endif
  #endif

and let me know.

-----------------------
11/2/98
Modified patch fixes the reported bug. The remaining
errors don't fall under this bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC