nmh-workers
[Top] [All Lists]

Re: Problems Compiling nmh 0.22 with Linux

1998-02-16 18:31:58
I'm using libc 5.4.44:

gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O3 getans.c
In file included from getans.c:10:
/usr/include/setjmp.h:57: warning: `sigsetjmp' redefined
../h/signals.h:35: warning: this is the location of the previous definition
In file included from getans.c:10:
/usr/include/setjmp.h:83: conflicting types for `jmp_buf'
/usr/include/setjmp.h:47: previous declaration of `jmp_buf'
make[1]: *** [getans.o] Error 1
make[1]: Leaving directory `/usr/src/nmh-0.22/sbr'
make: *** [all-recursive] Error 1

Looks like nmh is trying to use both BSD and POSIX jmp_buf.

Nope.  The script configure doesn't detect sigsetjmp on Linux (unlike
every other Unix on the planet, sigsetjmp is a macro on Linux).

Just manually edit config.h after running configure, and define
HAVE_SIGSETJMP.

It compiles fine after that.

--
Richard Coleman
coleman(_at_)math(_dot_)gatech(_dot_)edu


<Prev in Thread] Current Thread [Next in Thread>