brainpicture / hashlib

lib for node which makes hashes

Home Page:nodejs.ru

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while compiling on FreeBSD

Bananzz opened this issue · comments

node -v: v0.2.5
uname -a: FreeBSD i01.vm1.DOMAIN.ZONE 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

used gccs:
gcc version 4.2.1 20070719 [FreeBSD]
gcc version 4.4.5 20100706 (prerelease) (GCC)
gcc version 4.6.0 20100703 (experimental) (GCC)

Error comes on 4th step:
[4/6] cxx: hashlib.cc -> build/default/hashlib_2.o
In file included from /usr/include/c++/4.2/cwchar:55,
from /usr/include/c++/4.2/bits/postypes.h:46,
from /usr/include/c++/4.2/iosfwd:49,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from ../hashlib.cc:29:
/usr/include/wchar.h:131: error: expected ',' or '...' before numeric constant
/usr/include/wchar.h:137: error: expected ',' or '...' before numeric constant
/usr/include/wchar.h:221: error: expected ',' or '...' before numeric constant
Waf: Leaving directory `/usr2/workspace/build/brainfucker-hashlib-9f1d3fe/build'
Build failed: -> task failed (err #1):
{task: cxx hashlib.cc -> hashlib_2.o}
*** Error code 1

or some other path for wchar.h (if we're using not default gcc)
wchar.h:131: int swprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, ...);
wchar.h:137: int vswprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, __va__list);
wchar.h:221: int wcsncasecmp(const wchar_t *, const wchar_t *, size_t n);

All errors comes on size_t...