On 5/8/06, Bilco Schaddi <[EMAIL PROTECTED]> wrote:
I tried to compile the fish shell under OpenBSD and got the following error:
gcc -g -O2 -std=c99 -fno-optimize-sibling-calls -Wall -c common.c
common.c: In function `unescape':
common.c:849: error: `WCHAR_MAX' undeclared (first use in this function)
common.c:849: error: (Each undeclared identifier is reported only once
common.c:849: error: for each function it appears in.)
*** Error code 1
Stop in /home/thrall/fish-1.21.6.
This is under OpenBSD 3.9 and Fish 1.21.6. The same version compiled under
linux without problems. Anyway, if someone could come up with a solution
that'd be great. Let me know if you need more info.
That's funny, the exact same thing was reported yesterday. Do OpenBSD
users always come in pairs? ;-)
Add
#ifndef WCHAR_MAX
#define WCHAR_MAX 0x7fffffffu
#endif
to fallback.h, and things should compile. Also remember to use Gnu
make, and not BSD make.
Lastly, when this is done, it seems you may get warnings like:
set_color in free(): error: page is already free
If you encounter this, try removing all calls to the del_curterm
functions (Should be three of them, I belive) and see if this fixes
things. I seem to remember this being the case in some FreeBSD
versions. Should be reported as a bug in OpenBSD if this is the case.
Another option if you encounter this and haven't installed ncurses is
to do so. (Remember to rerun ./configure before recompiling, though,
or fish won't detect the change)
Good luck
--
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&kid0709&bid&3057&dat1642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users