On Thursday, September 20, 2007, at 02:32PM, "Martin Costabel" <[EMAIL 
PROTECTED]> wrote:

>Since you still don't show the error message (as Daniel said, the line 
>after
>
>> conftest.c: In function 'main':
>
>would have been the interesting one),

Martin

Sorry about that. The entire message was:

configure:22427: checking for readline
configure:22475: gcc -c -I/sw/include  -Wall  -O2 -fomit-frame-pointer 
-funroll-all-loops -finline-functions -Wall -W -Wpointer-arith 
-Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wno-unused 
-Winline  conftest.c >&5
In file included from /sw/include/readline/readline.h:37,
                 from conftest.c:55:
/sw/include/readline/rltypedefs.h:35: warning: function declaration isn't a 
prototype
/sw/include/readline/rltypedefs.h:36: warning: function declaration isn't a 
prototype
/sw/include/readline/rltypedefs.h:37: warning: function declaration isn't a 
prototype
/sw/include/readline/rltypedefs.h:38: warning: function declaration isn't a 
prototype
In file included from conftest.c:55:
/sw/include/readline/readline.h:375: warning: function declaration isn't a 
prototype
conftest.c:59: warning: function declaration isn't a prototype
conftest.c: In function 'main':
conftest.c:62: error: nested functions are disabled, use -fnested-functions to 
re-enable
conftest.c:62: warning: 'main' is normally a non-static function
configure:22481: $? = 1
configure: failed program was:
| /* confdefs.h.  */

> I'll now switch on my crystal ball 
>and guess that that line was in fact
>
>  conftest.c:62: error: nested functions are disabled, use 
>-fnested-functions to re-enable
>
Brilliant!

>If this is the case, then this comes from a bug in the acinclude.m4 file 
>used to construct configure. In acinclude.m4, the AC_TRY_COMPILE 
>directive is not used correctly, resulting in a conftest.c program that 
>has two nested main() functions. Fixing that conftest.c by removing one 
>layer of main() from the lines
>
>int
>main ()
>{
>
>int main(void)
>{
>
>should fix this problem. Either patch configure or figure out the right 
>syntax for acinclude.m4 and run the autotools again.
>
>-- 
>Martin

Many thanks for your invaluable perspicacity!! 
Best Regards.
Ebrahim.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to