[#5436] lsof fails to compile
Submitted By: Peter Meerwald
Open Date
2009-08-13 04:43:01 Close Date
2010-06-11 04:16:14
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
snaps Release:
Category:
N/A Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Rejected
Uboot version or rev.:
Toolchain version or rev.:
svn
App binary format:
N/A
Summary: lsof fails to compile
Details:
current toolchain (see below), uclinux-dist svn r8713
bfin-linux-uclibc-gcc -pipe -Wall -O2 -mcpu=bf537-0.2 -DGLIBCV=204 -DEMBED -D__uClinux__ -I/home/pmeerw/bf/svn/uclinux-dist -mcpu=bf537-0.2 -c -o misc.o misc.c
misc.c:42:22: error: wctype.h: No such file or directory
misc.c: In function ‘doinchild’:
misc.c:286: warning: implicit declaration of function ‘fork’
misc.c: In function ‘safestrprt’:
misc.c:1198: error: ‘MB_CUR_MAX’ undeclared (first use in this function)
misc.c:1198: error: (Each undeclared identifier is reported only once
misc.c:1198: error: for each function it appears in.)
misc.c:1211: warning: implicit declaration of function ‘mblen’
misc.c:1213: warning: implicit declaration of function ‘mbtowc’
misc.c:1213: warning: implicit declaration of function ‘iswprint’
make[4]: *** [misc.o] Error 1
make[4]: Leaving directory `/home/pmeerw/bf/svn/uclinux-dist/user/lsof/lsof'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/pmeerw/bf/svn/uclinux-dist/user/lsof'
make[2]: *** [lsof] Error 2
make[2]: Leaving directory `/home/pmeerw/bf/svn/uclinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/pmeerw/bf/svn/uclinux-dist/user'
make: *** [subdirs] Error 1
toolchain:
pmeerw@pmeerw-pc:~/bf/svn/uclinux-dist$ bfin-linux-uclibc-gcc -v
Using built-in specs.
Target: bfin-linux-uclibc
Configured with: /usr/local/src/blackfin/git/toolchain/gcc-4.1/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-linux-uclibc --prefix=/usr/local/src/blackfin/toolchains/i386/20090811/bfin-linux-uclibc --enable-threads=posix --enable-shared --with-sysroot=/usr/local/src/blackfin/toolchains/i386/20090811/bfin-linux-uclibc/bfin-linux-uclibc/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI-trunk/git-8df97f3
Thread model: posix
gcc version 4.1.2 (ADI svn)
Follow-ups
--- Barry Song 2009-08-31 05:43:18
The problem happens in 2009R1 release too.
wctype.h is confirmed in C99. MB_CUR_MAX is a macro in stdlib.h. Installed libc
for bfin-uclinux- and bfin-linux-uclibc- don't include them in default. Jie
should can help.
--- Robin Getz 2009-08-31 15:18:08
Barry/Peter:
This is an expected failure - not a bug.
If you want wide char support - you need to turn it on in uCibc. It is not
included in the default build. Install the uClibc-full version.
-Robin
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found