[uClibc]Compile XFree 4.2

Martin Sieper msi at ngi-box.de
Thu Apr 18 17:32:04 UTC 2002


Hi,

I have compiled XFree 4.2 (kdrive/tinyX) without source code modifications. 
After 'make World' I have a working Xfbdev X-Server. But I got some 
errors:

...
gcc -c -O2 -fno-strength-reduce     -I../../.. -I../../../../.. 
-I../../../../../exports/include -I/usr/X11R6/include  -Dlinux -D__i386__ 
-D_POSIX_SOURCE -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_SVID_SOURCE 
-D_GNU_SOURCE -DX_LOCALE  -DFUNCPROTO=15 -DNARROWPROTO   
-DMALLOC_0_RETURNS_NULL       -fPIC lcGenConv.c
lcGenConv.c: In function `stdc_wcstombs':
lcGenConv.c:1027: `MB_CUR_MAX' undeclared (first use in this function)
lcGenConv.c:1027: (Each undeclared identifier is reported only once
lcGenConv.c:1027: for each function it appears in.)
lcGenConv.c: In function `stdc_wcstocts':
lcGenConv.c:1214: `MB_CUR_MAX' undeclared (first use in this function)
lcGenConv.c: In function `stdc_ctstowcs':
lcGenConv.c:1537: `MB_CUR_MAX' undeclared (first use in this function)
lcGenConv.c: In function `stdc_cstowcs':
lcGenConv.c:1573: `MB_CUR_MAX' undeclared (first use in this function)
lcGenConv.c: In function `stdc_wcstostr':
lcGenConv.c:2066: `MB_CUR_MAX' undeclared (first use in this function)
lcGenConv.c: In function `stdc_strtowcs':
lcGenConv.c:2591: `MB_CUR_MAX' undeclared (first use in this function)
make[7]: *** [lcGenConv.o] Error 1
...
gcc -o appres -O2 -fno-strength-reduce      -L../../exports/lib 
-L/usr/X11R6/lib appres.o -lXt -lSM -lICE -lXext -lX11      
-Wl,-rpath-link,../../exports/lib
../../exports/lib/libX11.so: undefined reference to `mbstowcs'
collect2: ld returned 1 exit status
make[4]: *** [appres] Error 1
...
gcc -o beforelight -O2 -fno-strength-reduce      -L../../exports/lib 
-L/usr/X11R6/lib b4light.o -lXss -lXaw -lXmu -lXt -lSM -lICE -lXpm 
-lXext -lX11      -Wl,-rpath-link,../../exports/lib
../../exports/lib/libXaw.so: undefined reference to `wctomb'
../../exports/lib/libX11.so: undefined reference to `mbstowcs'
collect2: ld returned 1 exit status
make[4]: *** [beforelight] Error 1
...

and a lot more of them.

I'm sure this functions are not in the uClibc. How I can switch off the use of 
`wctomb' and `mbstowcs'. I've try '#define UseXwctomb NO' in my host.def but
it doesn't work.

Can someone help me to solve this problems?

 -Martin

P.S. I'm using uClibc on ix86 plattform.



More information about the uClibc mailing list