apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44231] New: - configure check for alloca fails
Date Mon, 14 Jan 2008 17:48:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44231>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44231

           Summary: configure check for alloca fails
           Product: APR
           Version: 1.2.11
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: bero@arklinux.org


While building apr, I noticed its "checking for alloca... no" line -- since I
know Ark Linux does provide alloca(), I took a look at what's going on:

config.log says:

configure:29990: checking for alloca
configure:30046: gcc -o conftest -O2 -march=i586 -mtune=i686
-fomit-frame-pointer -fweb -frename-registers -pthread -DLINU
X=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  conftest.c -lrt -lcrypt 
-lpthread >&5
conftest.c:76: warning: conflicting types for built-in function 'alloca'
/tmp/ccqfbHeU.o: In function `main':
conftest.c:(.text+0x12): undefined reference to `alloca'
collect2: ld returned 1 exit status

The problem is the #define trickery autoconf does -- since alloca on Linux isn't
a function, but a compiler builtin, forcing the symbol in and trying to link it
doesn't work.

The configure.in script currently does

AC_CHECK_FUNCS([alloca .......])

It should probably be doing

AC_FUNC_ALLOCA

instead, autoconf provides that specialized check to fix the problem described here.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message