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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 10:00:01 2026 UTC