[uClibc]building mtd utils using uclibc

Randy Cooper randywcooper at yahoo.ca
Mon May 26 21:51:03 UTC 2003


Thanks for the info. Now I have another problem. I decided to try to use uclibc 09.19, but when I enter "make CROSS=arm-linux- menuconfig" I get a conflict on the definition of bool It is defined as an enumerated type in /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/stdbool.hand as a char in/usr/include/ncurses/ncurses.h Should I change the definition in one of these header files (temporaryily so that the config) file can be built? If so, which one should I change?Is there a better way to deal with this issue? Thanks,Randy

Manuel Novoa III <mjn3 at codepoet.org> wrote:On Mon, May 26, 2003 at 03:16:13PM -0400, Randy Cooper wrote:
> Hi, I'm trying to build the mtd utils from the 2003/05/12 snapshot using uclibc 09.16 for an ARM based system. I have read that the utlities can be built like this but no information was given regarding the versions used. I am having a problem where is I get an undefined reference to IFTODT from ld when building the mtd utils (I can build them using glibc).

As I recall, in 0.9.16 struct dirent didn't contain the d_type field
unless you were using large file support. The IFTODT macro in dirent.h
was hidden under certain circumstances to avoid configure problems with
some packages.

> Would going to the latest version of uclibc fix this?

I believe so. But there may be an easier way.

> If so, then do I have to rebuild everything already built using 09.16?

Yes, as a number of the internal structs have changed since then.

> Is there something I can specify on the make command line to resolve the problem? Any help would be appreciated. Randy

As long as the mtd code isn't trying to use IFTODT on a (nonexistent)
d_type field in a dirent struct, you could just unhide the define in
dirent.h, or just define it where needed.

Manuel


---------------------------------
Post your free ad now! Yahoo! Canada Personals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20030526/2f7da0e3/attachment-0001.htm 


More information about the uClibc mailing list