elm compilation problems

elm 2.5.8

solaris 10

gcc 3.3.2

First, I tried using the default cc compiler to install elm:

# make

cd lib && makeall

cc -fpcc-struct-return -O -I.. -I../hdrs -c add_site.c

sh: cc: not found

*** Error code 1

make: Fatal error: Command failed for target `add_site.o'

Current working directory /usr/local/bin/elm2.5.8/lib

*** Error code 1

make: Fatal error: Command failed for target `all'

then I installed gcc and modified config.sh file to read:

instead of cc='cc'

cc='/usr/local/bin/gcc'

That gave me the following error:

# make

cd lib && makeall

/usr/local/bin/gcc -fpcc-struct-return -O -I.. -I../hdrs -c add_site.c

In file included from /usr/include/sys/signal.h:34,

from /usr/include/signal.h:26,

from ../hdrs/elm_defs.h:92,

from add_site.c:29:

/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"

/usr/include/sys/siginfo.h:292: error: parse error before '}' token

/usr/include/sys/siginfo.h:294: error: parse error before '}' token

/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"

/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'

/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'

/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'

/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'

/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'

/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'

/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'

/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'

/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'

/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'

/usr/include/sys/siginfo.h:426: error: parse error before '}' token

/usr/include/sys/siginfo.h:428: error: parse error before '}' token

/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"

/usr/include/sys/siginfo.h:437: error: parse error before '}' token

In file included from /usr/include/signal.h:26,

from ../hdrs/elm_defs.h:92,

from add_site.c:29:

/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"

In file included from ../hdrs/elm_defs.h:92,

from add_site.c:29:

/usr/include/signal.h:111: error: parse error before "siginfo_t"

/usr/include/signal.h:113: error: parse error before "siginfo_t"

*** Error code 1

make: Fatal error: Command failed for target `add_site.o'

Current working directory /usr/local/bin/elm2.5.8/lib

*** Error code 1

make: Fatal error: Command failed for target `all'

8#

I also tried running:

./Configure CC=/usr/local/bin/gcc

and make CC=/usr/local/bin/gcc

without any success.What can I do to build elm? Is there a package available?

[3136 byte] By [etcetera] at [2007-11-26 8:24:32]
# 1
> then I installed gcc and modified config.sh file toDid you re-run the configure script after editing the config.sh file?
timevans at 2007-7-6 21:35:43 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Yes, and it resulted in the above error.It's finding gcc but blows up during compilation.
etcetera at 2007-7-6 21:35:43 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

Ran mkheaders command and tried again, got further:

/usr/local/bin/gcc -fpcc-struct-return -O -I.. -I../hdrs -c forms.c

/usr/local/bin/gcc -fpcc-struct-return -O -I.. -I../hdrs -c hdrconfg.c

/usr/local/bin/gcc -fpcc-struct-return -O -I.. -I../hdrs -c help.c

/usr/local/bin/gcc -fpcc-struct-return -O -I.. -I../hdrs -c in_utils.c

/usr/local/bin/gcc -fpcc-struct-return -O -I.. -I../hdrs -c init.c

/usr/local/bin/gcc -fpcc-struct-return -O -I.. -I../hdrs -c leavembox.c

leavembox.c:87: error: redefinition of `struct utimbuf'

*** Error code 1

make: Fatal error: Command failed for target `leavembox.o'

Current working directory /usr/local/bin/elm2.5.8/src

*** Error code 1

make: Fatal error: Command failed for target `all'

coresun6:/usr/local/bin/elm2.5.8#

etcetera at 2007-7-6 21:35:43 > top of Java-index,Solaris Operating System,Solaris 10 Features...