Hi Jeff,

Jeff Fellin wrote:
Hello,

I have a problem with petalinux-v0-20-rc3 release using linux-2.6.x for the kernel, compiling e2fsck. There appears to be several header files not included, and before I spent time determining the missing header files. I want to know if anyone else has seen this problem. My kernel configuration is the Xilinx/ML401, and using the microblaze gcc toolchain.

The e2fs utils are in that naughty class of user apps that include kernel headers. The attached patch gets them building OK on petalinux v0.20-rc3

Apply with

patch -p0 < petalinux-v0.20-rc3-e2fsprogs./patch

from the petalinux-dist/user/e2fsprogs directory

This will be folded into the next release.

Regards,

John
Index: MCONFIG
===================================================================
--- MCONFIG     
(.../tags/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs)   
(revision 2999)
+++ MCONFIG     (.../petalinux/software/petalinux-dist/user/e2fsprogs)  
(revision 2999)
@@ -82,7 +82,7 @@
 endif
 
 ifneq ($(findstring uClibc,$(LIBCDIR)),uClibc)
-CFLAGS += -DHAVE_SBRK=1
+#CFLAGS += -DHAVE_SBRK=1
 endif
 
 CFLAGS += -DHAVE_STRCASECMP=1
Index: misc/Makefile
===================================================================
--- misc/Makefile       
(.../tags/petalinux-v0.20-rc3/software/petalinux-dist/user/e2fsprogs)   
(revision 2999)
+++ misc/Makefile       (.../petalinux/software/petalinux-dist/user/e2fsprogs)  
(revision 2999)
@@ -2,7 +2,7 @@
 include ../MCONFIG
 
 E2IMAGE_PROG= e2image
-SPROGS=                mke2fs badblocks tune2fs dumpe2fs $(E2IMAGE_PROG) fsck
+SPROGS=                mke2fs badblocks tune2fs dumpe2fs $(E2IMAGE_PROG) fsck 
e2label
 USPROGS=       mklost+found
 
 UPROGS=                chattr lsattr uuidgen
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to