[uClinux-dev] m68k-elf-tool-20030314 MTD Compiling Problem

David McCullough davidm at snapgear.com
Fri Mar 21 04:45:50 EST 2003


Jivin Massimo Cal? lays it down ...
> Hi All,
> 
>     I have installed the last "m68k-elf-tool-20030314".
> 
> I build the Kernel for MCF5272 with the default options + MTD/JFFS2.
> 
> With the previous version of "m68K-elf-tool" I had no problem.
> 
> I have this problem with the new "m68K-elf-tool" compiling the new
> uCLinux-Dist-20030305 and the previous one.


I had a look at libgen.h and it's doing some funky stuff.

It seems that wide char support is not enabled in your dist uClibc
but somehow the features.h from the compiler includes is getting picked up in
preference ?

Add a -save-temps to the CFLAGS in the mtd-utils dir and look at the
mkfs.jffs2.i file to see what headers are getting included.  It should
be using the ones from your uClibc directory.

If I get a chance I will try to reproduce this to work out what is going
on.

As a last reset,  remove the include of libgen.h in mkfs.jffs2.c.

Cheers,
Davidm


> I have the following message error :
> 
> NEW/uClinux-dist/lib/libdes -L/home/motorola/uClinux-dist-NEW/uClinux-dist/l
> ib/libaes -L/home/motorola/uClinux-dist-NEW/uClinux-dist/lib/libpcap -L/home
> /motorola/uClinux-dist-NEW/uClinux-dist/lib/libssl -L/home/motorola/uClinux-
> dist-NEW/uClinux-dist/lib/libcrypt_old -L/home/motorola/uClinux-dist-NEW/uCl
> inux-dist/lib/libsnapgear++ -L/home/motorola/uClinux-dist-NEW/uClinux-dist/l
> ib/libsnapgear -L/home/motorola/uClinux-dist-NEW/uClinux-dist/lib/zlib -lz -
> lc
> mkfs.jffs2.elf2flt: In function `create_target_filesystem':
> /home/motorola/uClinux-dist-NEW/uClinux-dist/user/mtd-utils/mkfs.jffs2.c:999
> : undefined reference to `__xpg_basename'
> /home/motorola/uClinux-dist-NEW/uClinux-dist/user/mtd-utils/mkfs.jffs2.c:101
> 0: undefined reference to `__xpg_basename'
> collect2: ld returned 1 exit status
> make[2]: *** [mkfs.jffs2] Error 1
> make[2]: Leaving directory
> `/home/motorola/uClinux-dist-NEW/uClinux-dist/user/mtd-utils'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/motorola/uClinux-dist-NEW/uClinux-dist/user'
> make: *** [subdirs] Error 1
> [root at uclinux uClinux-dist]#
> 
> 
> Any Help ?
> 
> 
> Thanks,
> 
> Massimo.
> 

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm at snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security



More information about the uClinux-dev mailing list