Bug 13037 - Alloca configure test fails
Summary: Alloca configure test fails
Status: RESOLVED FIXED
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: HEAD
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2002-09-26 16:22 UTC by TenThumbs
Modified: 2005-08-24 09:39 UTC (History)
0 users



Attachments
[PATCH] Use AC_FUNC_ALLOCA, which handles this issue (691 bytes, patch)
2004-01-19 01:09 UTC, Noah Misch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TenThumbs 2002-09-26 16:22:25 UTC
On x86 Linux at least, alloca is not in libc, it's strictly a compiler 
builtin function. You test for with with the AC_CHECK_FUNCS macro which does 
its work by trying to use the address of the function. I've tried a number 
of different versions and they all seem to decide that you can't want the 
builtin function because you're using an address so they emit a normal 
external symbol. Of course, this fails with a linker error.

I think you need a different test if you're using gcc.
Comment 1 Noah Misch 2004-01-19 01:09:17 UTC
Created attachment 10000 [details]
[PATCH] Use AC_FUNC_ALLOCA, which handles this issue
Comment 2 Jeff Trawick 2004-01-19 09:52:40 UTC
make the patch findable
Comment 3 Joe Orton 2005-08-24 17:39:00 UTC
Fixed on trunk, but I won't backport it; the only place this matters is in the
poll code and most places you have alloca support you probably have VLA support too.

Thanks for the patch, Noah.

http://svn.apache.org/viewcvs?rev=239697&view=rev