Received: (qmail 25125 invoked by uid 2012); 27 Jul 1998 13:06:29 -0000 Message-Id: <19980727130629.25124.qmail@hyperreal.org> Date: 27 Jul 1998 13:06:29 -0000 From: Lee Berger Reply-To: lberger@roy.org To: apbugs@hyperreal.org Subject: alloc.h conflicts with libstd++ installed header file X-Send-Pr-Version: 3.2 >Number: 2718 >Category: apache-api >Synopsis: alloc.h conflicts with libstd++ installed header file >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Jul 27 06:10:00 PDT 1998 >Closed-Date: >Last-Modified: Sun Jul 09 06:11:16 PDT 2000 >Originator: lberger@roy.org >Release: 1.3.0 >Organization: >Environment: $ uname -a Linux rob.roy.org 2.1.101 #1 SMP Thu May 14 15:30:40 EDT 1998 i686 unknown $ gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.8.1/specs gcc version 2.8.1 Running the RedHat distribution v5.0 >Description: libstd++ installs a header file, alloc.h into /usr/include/g++ ... this header file conflicts with the alloc.h header file included into /usr/local/apache/include This is a problem when the programmer attempts to use the various STL header files along with the Apache header files. -I/usr/local/apache/include confuses the STL header files, and -idirafter /usr/local/apache/include confuses the apache header files :) >How-To-Repeat: Simply compile a C++ program with the following includes: #include #include >Fix: I simply renamed Apache's alloc.h to ap_alloc.h, and modified httpd.h to point to the proper header file. This fixed the problem. >Release-Note: >Audit-Trail: State-Changed-From-To: open-suspended State-Changed-By: coar State-Changed-When: Sun Sep 27 11:49:42 PDT 1998 State-Changed-Why: Apache and its API is currently based on C, and we don't necessarily support C++ modules or compilations. I'm marking this issue as suspended so we can figure out what to do about the name conflict. State-Changed-From-To: suspended-feedback State-Changed-By: coar State-Changed-When: Thu Apr 29 10:19:02 PDT 1999 State-Changed-Why: [This is a standard response.] This Apache problem report has not been updated recently. Please reply to this message if you have any additional information about this issue, or if you have answers to any questions that have been posed to you. If there are no outstanding questions, please consider this a request to try to reproduce the problem with the latest software release, if one has been made since last contact. If we don't hear from you, this report will be closed. If you have information to add, BE SURE to reply to this message and include the apbugs@Apache.Org address so it will be attached to the problem report! State-Changed-From-To: feedback-closed State-Changed-By: coar State-Changed-When: Wed May 24 10:42:38 PDT 2000 State-Changed-Why: [This is a standard response.] No response from submitter, assuming issue has been resolved. Comment-Added-By: wrowe Comment-Added-When: Sun Jul 9 06:11:16 PDT 2000 Comment-Added: alloc.h has been renamed to ap_alloc.h in the forthcoming Apache 1.3.13 release. Thank you for your interest in the Apache project! >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]