There's a new MAWK update on freshmeat, dated 13 Jul 2009.
However, I ran into an error while building it.
gcc -c -DXTSTRINGDEFINES -g -O2 -W -Wall -Wbad-function-cast -Wcast- align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested- externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef matherr.c matherr.c:71:21: error: siginfo.h: No such file or directory matherr.c: In function 'matherr': matherr.c:156: warning: unused parameter 'e' make: *** [matherr.o] Error 1
This is in Mac OS X 10.4. The man page says, "The matherr() function is deprecated. Use the floating-point enivronment routines instead. Prototypes for those functions can be found in the header file fenv.h."
Anyone have a suggestion on how to get a working mawk in this situation? Is there some was to install what matherr needs without breaking anything else?
> There's a new MAWK update on freshmeat, dated 13 Jul 2009.
> However, I ran into an error while building it.
> gcc -c -DXTSTRINGDEFINES -g -O2 -W -Wall -Wbad-function-cast -Wcast- > align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested- > externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef matherr.c > matherr.c:71:21: error: siginfo.h: No such file or directory > matherr.c: In function 'matherr': > matherr.c:156: warning: unused parameter 'e' > make: *** [matherr.o] Error 1
> This is in Mac OS X 10.4. The man page says, "The matherr() function > is deprecated. Use the floating-point enivronment routines instead. > Prototypes for those functions can be found in the header file > fenv.h."
> Anyone have a suggestion on how to get a working mawk in this > situation? Is there some was to install what matherr needs without > breaking anything else?
As far as I understand the error text, gcc does not complain about the matherr() function but about the missing file siginfo.h. But I do not know where to get this for Mac OS X :-( On my openSUSE box, it seems to belong to glibc-devel package.
Mawk was written by Mike Brennan. There has been no maintainer for some time. I have adopted it, starting with fixes from the Debian package, and resolving issues which the package maintainer did not respond to.
> There's a newMAWKupdate on freshmeat, dated 13 Jul 2009.
> However, I ran into an error while building it.
> gcc -c -DXTSTRINGDEFINES -g -O2 -W -Wall -Wbad-function-cast -Wcast- > align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested- > externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef matherr.c > matherr.c:71:21: error:siginfo.h: No such file or directory > matherr.c: In function 'matherr': > matherr.c:156: warning: unused parameter 'e' > make: *** [matherr.o] Error 1
> This is in Mac OS X 10.4. The man page says, "The matherr() function > is deprecated. Use the floating-point enivronment routines instead. > Prototypes for those functions can be found in the header file > fenv.h."
> Anyone have a suggestion on how to get a workingmawkin this > situation? Is there some was to install what matherr needs without > breaking anything else?
That should only have been including siginfo.h if the configure script found sigaction_t and siginfo.h - and defines SV_SIGINFO (see config.h). However, my snapshot of 10.4 headers doesn't have siginfo.h (I don't have an OSX to test directly on). But I see that sys/signal.h defines SV_SIGINFO - so the problem is that the configure script from long ago chose a symbol that happens to be defined in OSX's headers.
> That should only have been including siginfo.h if the > configure script found sigaction_t and siginfo.h - and > defines SV_SIGINFO (see config.h). However, my snapshot > of 10.4 headers doesn't have siginfo.h (I don't have an > OSX to test directly on). But I see that sys/signal.h > defines SV_SIGINFO - so the problem is that the configure > script from long ago chose a symbol that happens to be > defined in OSX's headers.