* Compile failure: Elm v2.4pl24 & DEC OSF/1 v3.2c
@ 1995-11-02 5:00 Carl Privitt
1995-11-03 5:00 ` Alec Habig
0 siblings, 1 reply; 3+ messages in thread
From: Carl Privitt @ 1995-11-02 5:00 UTC (permalink / raw)
I'm trying to compile Elm on a DEC Alpha running OSF/1 v3.2c. I've looked
through the FAQ and most of the Elm web site to no avail. The error
message is:
cc -migrate -std1 -g -I../hdrs -c get_tz.c
cc: Error: /usr/include/sys/signal.h, line 74: In this declaration, the type
of "posix_signal" is not compatible with the type of a previous declaration
of "posix_signal" at line number 670 in file ../hdrs/defs.h.
extern void (*signal __((int, void (*)(int)))) __((int));
------------^
*** Exit 1
Stop.
I've tried most combinations of CFLAGS with both GNU C v2.6.3 and the DEC C
shipped with the OS. Any and all help is greatly appreciated. I will
summarize any information.
--
Carl Privitt / Texas A&M / cprivitt@tamu.edu / 409.862.4106 / CIS Unix Systems
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compile failure: Elm v2.4pl24 & DEC OSF/1 v3.2c
1995-11-02 5:00 Compile failure: Elm v2.4pl24 & DEC OSF/1 v3.2c Carl Privitt
@ 1995-11-03 5:00 ` Alec Habig
1995-11-06 5:00 ` Carl Privitt
0 siblings, 1 reply; 3+ messages in thread
From: Alec Habig @ 1995-11-03 5:00 UTC (permalink / raw)
After running configure, manually edit the config.sh file, and set
SIGTYPE=void. For some reason, the configure script thinks it's int.
Alec
--
Alec Habig, Indiana University High Energy Astrophysics
ahabig@bigbang.astro.indiana.edu
http://www.astro.indiana.edu/home/ahabig/
Ted Kennedy's car has killed more people than my guns.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compile failure: Elm v2.4pl24 & DEC OSF/1 v3.2c
1995-11-03 5:00 ` Alec Habig
@ 1995-11-06 5:00 ` Carl Privitt
0 siblings, 0 replies; 3+ messages in thread
From: Carl Privitt @ 1995-11-06 5:00 UTC (permalink / raw)
Evidently, Configure does not correctly determine the signal return type
under DEC OSF/1 v3.2c. It thinks signal() returns an int when, in fact,
it returns a void. The solution is to edit config.sh at the end of
Configure's questions (when it suggests using a shell escape). Change
sigtype='int'
to be
sigtype='void'
I successfully compiled Elm v2.4pl24 with DEC's native C compiler using just
the default flags (-O) and with the more strict ansi flags (-migrate -std1).
Thanks to John Steele <steele@tamu.edu>, David Tuttle <dct@odin.mdacc.tmc.edu>,
and Alec Habig <ahabig@bigbang.astro.indiana.edu> who all responded with the
correct fix.
--
Carl Privitt / Texas A&M / cprivitt@tamu.edu / 409.862.4106 / CIS Unix Systems
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-11-06 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-02 5:00 Compile failure: Elm v2.4pl24 & DEC OSF/1 v3.2c Carl Privitt
1995-11-03 5:00 ` Alec Habig
1995-11-06 5:00 ` Carl Privitt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox