From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5d35e6dc4a899dae X-Google-Attributes: gidfee84,public X-Google-Thread: 10e366,5d35e6dc4a899dae X-Google-Attributes: gid10e366,public From: wist@onyx2.lam.mw.tu-muenchen.de (Henrik Wist) Subject: Re: Can't compile elm2.3 on Alpha/OSF1 Date: 1995/08/09 Message-ID: <40ahjq$2a6@sunsystem5.informatik.tu-muenchen.de>#1/1 X-Deja-AN: 107833372 distribution: world references: <400rph$rge@nyheter.chalmers.se> <408if9$bio@chaos.dac.neu.edu> organization: Munich University of Technology, Department of Computer Science reply-to: wist@lam.mw.tu-muenchen.de newsgroups: comp.mail.elm,comp.unix.osf.osf1 In article <408if9$bio@chaos.dac.neu.edu>, liz@gateway.ece.neu.edu (Liz Stewart) writes: > > In article <400rph$rge@nyheter.chalmers.se>, tl@ae.chalmers.se (Torbj|rn Lindgren) writes: > |> I know that that the *current* version of elm, 2.4pl24, compiles > |> without major problems under DEC OSF/1 3.2, the only thing you have to > |> do is to remove a couple of a lines in a header-file (the error > |> message makes it rather obvious what you should remove). If you have > |> OSF/1 3.0 you don't have to do this editing. > > That's cool, but is there any other editing you _do_ have to do? > > I'm trying to compile elm 2.4PL23 on an alpha (OSF/1 3.0) and > I'm not getting very far. I get conflicting declarations for > "posix_signal" from hdrd/defs.h and /usr/include/sys/signal.h > when compiling get_tz.c: > > --- > cc -O -I../hdrs -c get_tz.c > /usr/lib/cmplrs/cc/cfe: Error: /usr/include/sys/signal.h, line 70: redeclaration > of 'posix_signal'; previous declaration at line 659 in file '../hdrs/defs.h' > extern void (*posix_signal ()) (); > --------------^ > /usr/lib/cmplrs/cc/cfe: Error: /usr/include/sys/signal.h, line 70: Incompatible > function return type for this function > extern void (*posix_signal ()) (); > ---------------------------^ > *** Exit 1 > Stop. > --- > > Any help would be appreciated, as I am trying to standardize our versions > of elm. Thanks! > > -- Liz -- Howdy! I had the same problem during my compilation of elm for OSF. The following should fix it: defs.h.orig: Line about 654 #ifdef POSIX_SIGNALS #define signal posix_signal #if ANSI_C extern SIGHAND_TYPE (*posix_signal(int, SIGHAND_TYPE (*)(int)))(int); #else /* ANSI_C */ extern SIGHAND_TYPE (*posix_signal())(); #endif /* ANSI_C */ defs.h.fixed: #ifdef POSIX_SIGNALS #define signal posix_signal #if ANSI_C extern SIGHAND_TYPE (*posix_signal(int, SIGHAND_TYPE (*)(int)))(int); #endif /* ANSI_C */ Sorry that I didn't post a diff, but I did not have the original file I patched, instead had to ftp new elm-sources, which differed much more than in these few lines :-((. I hope it helped anyway, if not, email me. So long, Henrik --------------------------------------------------------------------- "Woher soll ich wissen, was ich denke, bevor |Tel.:+49/89/6928153 ich nicht gehoert habe, was ich sage?" |smail: Saleggstr.21 IRC: |GOOSE| | 81547 Munich Systemadministrator am Lehrstuhl A fuer Mechanik| Germany -------------------------------------------------------------------- >>>http://www.lam.mw.tu-muenchen.de/mitarb/wist.html<<<