On 8/24/06, Marius Schamschula <[EMAIL PROTECTED]> wrote:
>
> Hi there,

Hi!

>
> When building fish 1.21.11 under Mac OS X 10.4.7 I get the following error:
>
> gcc -g -O2 -std=c99 -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L
> -fno-optimize-sibling-calls -Wall
> -DLOCALEDIR=\"/usr/local/share/locale\"
> -DPREFIX=L\"/usr/local\" -DDATADIR=L\"/usr/local/share\"
> -DSYSCONFDIR=L\"/usr/local/etc\"    -c -o signal.o signal.c
> signal.c: In function 'signal_set_handlers':
> signal.c:573: error: 'SIGWINCH' undeclared (first use in this function)
> signal.c:573: error: (Each undeclared identifier is reported only once
> signal.c:573: error: for each function it appears in.)
> make: *** [signal.o] Error 1
>
> And under 10.3.9 it fails with
>
> gcc -g -O2 -std=c99 -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L
> -fno-optimize-sibling-calls -Wall
> -DLOCALEDIR=\"/usr/local/share/locale\"
> -DPREFIX=L\"/usr/local\" -DDATADIR=L\"/usr/local/share\"
> -DSYSCONFDIR=L\"/usr/local/etc\"    -c -o main.o main.c
> main.c: In function `main':
[lots of badness]
> make: *** [main.o] Error 1
>
> Note: both machines had built 1.21.10 cleanly.

These compilation problems are both caused by the addition of the
added gcc arguments -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L,
defined in the Makefile on line 53 of the Makefile. Remove them and
things should work again. I'll release a new version that only adds
these switches if they don't seem to break anything in a day or two.

The reason these switches where added in the first place is that they
have the exact _opposite_ effect on Solaris - without them, various
Posix and BSD extensions are disabled. They also help out a bit on the
BSDs, though more macros are needed there. As to which interpretation
of the ANSI/ISO standards documents of what these macros should
actually do, I'll leave that to someone else.

Thanks for the report.

>
>
> Marius
>
> --
>
> Marius Schamschula                               Webmaster
>
>
>
>
>         The Huntsville Macintosh Users Group
>
>                     www.hmug.org
>
>
>
>
> webmaster at hmug dot org    marius at schamschula dot com


-- 
Axel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to