LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2010, 04:39 AM   #1
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Rep: Reputation: Disabled
Cross compiling mtd utils


While cross compiling mtd utils form my board... I am getting such error (





mkfs.jffs2.c:71:21: error: sys/acl.h: No such file or directory
mkfs.jffs2.c: In function 'formalize_posix_acl':
mkfs.jffs2.c:1024: error: 'ACL_USER_OBJ' undeclared (first use in this function)
mkfs.jffs2.c:1024: error: (Each undeclared identifier is reported only once
mkfs.jffs2.c:1024: error: for each function it appears in.)
mkfs.jffs2.c:1025: error: 'ACL_GROUP_OBJ' undeclared (first use in this function)
mkfs.jffs2.c:1026: error: 'ACL_MASK' undeclared (first use in this function)
mkfs.jffs2.c:1027: error: 'ACL_OTHER' undeclared (first use in this function)
mkfs.jffs2.c:1033: error: 'ACL_USER' undeclared (first use in this function)
mkfs.jffs2.c:1034: error: 'ACL_GROUP' undeclared (first use in this function)
mkfs.jffs2.c: In function 'recursive_populate_directory':
mkfs.jffs2.c:1238: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t'
mkfs.jffs2.c:1247: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t'
mkfs.jffs2.c:1256: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t'
mkfs.jffs2.c:1286: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t'
mkfs.jffs2.c:1297: warning: format '%9lu' expects type 'long unsigned int', but argument 3 has type '__off64_t'
make: *** [/home/einfochips/Desktop/mtd-utils/mtd-utils//bin/gcc/bin/arm-none-linux-gnueabi/mkfs.jffs2.o] Error 1
 
Old 12-17-2010, 01:08 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Looks like you will have to cross compile acl before building 'mtd_utils':
Quote:
mkfs.jffs2.c:71:21: error: sys/acl.h: No such file or directory
If you are very lucky, that only the header 'sys/acl.h' is used,
you may get away with just installing acl=libacl=libacl1 on your OS.
I.e. the development version libacl-devel / libacl1-dev.

Else : All dependencies must be cross compiled beforehand.
( zlib , liblzo , libacl.)

Debian has packages for "all" architectures :
http://packages.debian.org/lenny/libacl1-dev

mtd-utils : http://packages.debian.org/lenny/mtd-utils
..

Last edited by knudfl; 12-17-2010 at 01:15 PM.
 
Old 12-20-2010, 01:11 AM   #3
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
Huhhh tried hard... but no success
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bluez-utils cross-compiling error cloudlast Linux - Embedded & Single-board computer 5 08-27-2015 04:10 AM
Error in cross-compiling bluez-utils mrmuds Linux - Wireless Networking 0 06-30-2009 06:49 AM
Cross compiling Bluez-utils for ARM deshu Linux - Software 1 03-06-2009 02:29 PM
how to cross-compile bluez-utils? cloudlast Linux - Software 1 04-29-2008 07:24 PM


All times are GMT -5. The time now is 02:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration