Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: wist@onyx2.lam.mw.tu-muenchen.de (Henrik Wist)
Subject: Re: Can't compile elm2.3 on Alpha/OSF1
Date: 1995/08/09	[thread overview]
Message-ID: <40ahjq$2a6@sunsystem5.informatik.tu-muenchen.de> (raw)
In-Reply-To: 408if9$bio@chaos.dac.neu.edu

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



  reply	other threads:[~1995-08-09  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-04  4:00 Can't compile elm2.3 on Alpha/OSF1 Roger Eugene Gregory-Allen
1995-08-05  4:00 ` Torbj|rn Lindgren
1995-08-08  4:00   ` Liz Stewart
1995-08-09  4:00     ` Henrik Wist [this message]
1995-08-14  4:00       ` Greg Pratt
1995-08-07  4:00 ` Erik Green
1995-08-08  4:00 ` Richard Eckman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox