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
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: 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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Tue Jul 14 08:00:01 2026 UTC