Fail to compile ROOT 5.11.06 on FreeBSD 6.1

Hello, ROOTers,

I can not complie ROOT source (v5.11.06) on FreeBSD 6.1 with
gcc 3.4.4

While compling, I got the follwoing error message at very early stage;

g++ -O -pipe -W -Wall -fPIC -I/usr/X11R6/include -Iinclude  -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".o\" -o build/rmkdepend/mainroot.o -c build/rmkdepend/mainroot.cxx
In file included from /usr/include/c++/3.4/bits/postypes.h:46,
                 from /usr/include/c++/3.4/iosfwd:50,
                 from /usr/include/c++/3.4/bits/stl_algobase.h:70,
                 from /usr/include/c++/3.4/bits/char_traits.h:46,
                 from /usr/include/c++/3.4/string:47,
                 from build/rmkdepend/mainroot.cxx:19:
/usr/include/c++/3.4/cwchar:166: error: `::vfwscanf' has not been declared
/usr/include/c++/3.4/cwchar:170: error: `::vswscanf' has not been declared
/usr/include/c++/3.4/cwchar:174: error: `::vwscanf' has not been declared
/usr/include/c++/3.4/cwchar:191: error: `::wcstof' has not been declared
gmake: *** [build/rmkdepend/mainroot.o] Error 1

Could you give me any idea ?

Hi,

can you check (by grepping in the include directories) in which include file the ::vfwscanf et al functions are declared. Then include this file before the in mainroot.cxx. Let me know when it works and I’ll make the fix in cvs.

Cheers, Fons.

Thank you for your kind reply.

/usr/include/wchar.h contains vfwscanf

in the case of FreeBSD system.

A detailed information is the following.
In wchar.h
:
:
#if __ISO_C_VISIBLE >= 1999
int vfwscanf(struct __sFILE * __restrict, const wchar_t * __restrict,
__va_list);
:
:
#endif /* __ISO_C_VISIBLE >= 1999 */