Ebrahim Mayat wrote:
> Hi 
>
>
> I am trying to link readline-4.3 into the app that I am building.
> However, config.log reports a prototyping error in a readline header 
>
>
> configure:22427: checking for readline
> configure:22475: gcc -c   -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 -I/sw/include 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:364: warning: function declaration isn't
> a prototype
> conftest.c:59: warning: function declaration isn't a prototype
> conftest.c: In function 'main':
>
>
> Now /sw/include/readline/rltypedefs.h:35 looks like this
>
>
> #if !defined (_FUNCTION_DEF)
> #  define _FUNCTION_DEF
>
>
> typedef int Function (); // line 35
> typedef void VFunction ();
> typedef char *CPFunction ();
> typedef char **CPPFunction ();
>
>
> #endif /* _FUNCTION_DEF */
>
>
> Evidently, this is a prototyping problem. I thought about changing line
> 35 to 
>
>
> typedef int Function (void);
>
>
> but the file is read-only. 
>
>
> Any help on correcting this readline problem would be appreciated.
> TIA.
> E
>
>
>
> -
Those all just say "warning", though (presumably due to the 
-Wstrict-prototypes flag).  Does your build actually fail? 

-- 
Alexander K. Hansen
Fink User Liaison/Documenter
akh AT finkproject DOT org


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