php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #756 alloca.c compiles when it shouldn't as "HAVE_ALLOCA" is set in config.h
Submitted: 1998-09-18 10:44 UTC Modified: 1998-09-18 10:52 UTC
From: Danny dot Heijl at cevi dot be Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0 Latest CVS OS: NCR Unix MP-RAS 3.02
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: Danny dot Heijl at cevi dot be
New email:
PHP Version: OS:

 

 [1998-09-18 10:44 UTC] Danny dot Heijl at cevi dot be
The linker can't find "xmalloc" referenced by the new "alloca.c" included in the latest CVS.

But NCR has it's own "alloca", and "HAVE_ALLOCA" is set accordingly in config.h by the configure script.

I changed "#ifndef alloca" to "#ifndef HAVE_ALLOCA" in "alloca.c" and then everything compiles and links OK.

Could someone knowledgeable in "alloca" things fix this on the CVS ?

I do not want to apply the change to "alloca.c" in the CVS myself as I don't know if I am doing the right thing.
It's not because it works for me that it will work for you.
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-18 10:52 UTC] zeev
Fixed.
p.s., not touching stuff you're not familiar with in
the CVS isn't only a good idea, it's a real must!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 21:01:30 2024 UTC