Building the m4 macro processor. Help!!

Building the m4 macro processor. Help!!

Post by Gustavo Comeza » Sat, 07 Dec 1996 04:00:00

I have been trying to build m4 v. 1.0, which is in turn needed to
build STonX (Atari emulator for Linux). I found the source with a
patch for Linux at; I applied the patch and tried to
run the configure script; supposedly one must give the hosttype as
argument, so I first tried "configure linux", which did not work: I
got a message saying that there was no s-linux.h file. Since the patch
fixed only the s-usg.h file, I figured I should try "configure usg",
although this seemed a little strange, considering that s-usg.h
contains the settings for System V. The configuration ran smoothly,
but when I tried to make, I got:

make[1]: Entering directory `/m4-1.0/lib'
gcc -O -DUSG -c obstack.c -o obstack.o
gcc -O -DUSG -c regex.c -o regex.o
gcc -O -DUSG -c getopt.c -o getopt.o
gcc -O -DUSG -c getopt1.c -o getopt1.o
ar cru gnu.a obstack.o regex.o getopt.o getopt1.o
ranlib gnu.a
make[1]: Leaving directory `/m4-1.0/lib'
cc -O -Ilib -DUSG -c m4.c -o m4.o
In file included from m4.h:52,
                 from m4.c:20:
/usr/include/stdlib.h:244: conflicting types for `abort'
m4.h:49: previous declaration of `abort'
/usr/include/stdlib.h:260: conflicting types for `exit'
m4.h:48: previous declaration of `exit'
m4.c: In function `cmd_error':
m4.c:414: called object is not a function
make: *** [m4.o] Error 1

Then I tried various settings in s-template.h, in order to create an
s-linux.h, with no luck: in all cases there seem to be conflicts
between the source and stdlib.h. Has anybody succeeded in compiling
this thing? Or better yet, are there elf binaries available by ftp at
some site? Thanks.