[XForms] Building xforms library (1.0.90)

Angus Leeming angus.leeming at btopenworld.com
Tue Jun 1 17:27:11 EDT 2004


On Tuesday 01 June 2004 10:02 pm, Gayle C Roth wrote:
> To subscribers of the xforms list
>
>
> Hi.
>
> Angus, you solved my previous problem so well (the missing forms.h
> one) that I'm going to throw another one at you...  when I tried to
> compile (on VMS) the 1st C source, I got an error on the following
> statement in FLINTERNAL.H:
>
> typedef RETSIGTYPE(*FL_OSSIG_HANDLER) (int);
>
> It said:  found '*' when expecting one of : <type-specifier>,...
>
> I think the type 'RETSIGTYPE' isn't defined at that point.  I
> noticed by searching for RETSIGTYPE that some of the times it's
> supposed to be void but not necessarily all the time.  So what
> should I do?

Let's see:
$ grep -r RETSIGTYPE lib
lib/flinternal.h:typedef RETSIGTYPE(*FL_OSSIG_HANDLER) (int);
lib/signal.c:static RETSIGTYPE
lib/signal.c:#ifndef RETSIGTYPE_IS_VOID
lib/config.h.in:#undef RETSIGTYPE
lib/config.h.in:#undef RETSIGTYPE_IS_VOID

$ grep RETSIGTYPE build/lib/config.h
#define RETSIGTYPE void
#define RETSIGTYPE_IS_VOID 1

config.h is a file generated by the configure script from config.h.in 
which, in turn, is generated by autoconf from configure.ac. Given 
that you don't have the autotools at your disposal, I'm attaching 
both so that you can create your own config.h using config.h.in as a 
template.

Here, on linux, 'man signal' gives me this signature, confirming that 
RETSIGTYPE should be 'void' on this platform.
       #include <signal.h>
       typedef void (*sighandler_t)(int);

Regards,
Angus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h.in
Type: text/x-csrc
Size: 4336 bytes
Desc: not available
Url : attachments/20040601/f0925261/attachment-0020.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: text/x-chdr
Size: 4594 bytes
Desc: not available
Url : attachments/20040601/f0925261/attachment-0021.bin 


More information about the Xforms mailing list