php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1274 memory.h name collision
Submitted: 1999-03-28 12:21 UTC Modified: 1999-05-02 12:08 UTC
From: cloos at jhcloos dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0 Latest CVS (28/03/1999) OS: Linux/RH5.2/kernel2.2
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: cloos at jhcloos dot com
New email:
PHP Version: OS:

 

 [1999-03-28 12:21 UTC] cloos at jhcloos dot com
When the image magick support is configured, -I/usr/X11R6/lib/X11/include/magick is added the the CFLAGS.  That dir has a memory.h in it, which collides with /usr/include/memory.h included by apache's ap_config.h (at least via apxs).

The fix would be to fix Makefile.in not to add @IMAGICK_INCLUDE@ to INCLUDE and to have magick.c include things like <magick/magick.h> rather than like "magick.h", but magick.h uses the latter style to include the rest of the files in /usr/X11R6/lib/X11/include/magick.... 

As such, next best is to add -I/usr/X11R6/lib/X11/include/magick only when compiling magick.c.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-02 12:08 UTC] sas at cvs dot php dot net
I believe the issue about "memory.h" was resolved and does not exist anymore in actual ImageMagick releases. Therefore, closing the report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 03:01:35 2024 UTC