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

Massimo Calò m.calo at ctsgroup.it
Fri Mar 21 06:23:11 EST 2003


Hi Davidm,

    thank you for you support.

For the moment I have removed the include of "libgen.h" and it is working.

I have looked at mkfs.jffs2.i, but I didn't understand anything.

I don't know if this is important : I'm building the kernel with the uC-libc
library instead of uClibc.

If you have any other idea obout the problem, please e-mail me.

Thanks!

Massimo

----- Original Message -----
From: "David McCullough" <davidm at snapgear.com>
To: <uclinux-dev at uclinux.org>
Sent: Friday, March 21, 2003 10:45 AM
Subject: Re: [uClinux-dev] m68k-elf-tool-20030314 MTD Compiling Problem


>
> 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
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org




More information about the uClinux-dev mailing list