public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mtd-utils-1.1.0: build error
@ 2007-12-13 10:51 KokHow.Teh
  2007-12-13 11:03 ` Peter Wippich
  0 siblings, 1 reply; 5+ messages in thread
From: KokHow.Teh @ 2007-12-13 10:51 UTC (permalink / raw)
  To: linux-mtd

Hi;
	I have downloaded mtd-utils-1.1.0 and unfortunately bump into
build error as follows:

mips-linux-cc -I./include -g -O3 -G0 -pipe -fpic -fPIC -msoft-float
-mabi=32 -march=mips32r2 -mtune=34kc -g -c -o mkfs.jffs2.o mkfs.jffs2.c
-g -Wp,-MD,./.mkfs.jffs2.c.dep
mkfs.jffs2.c:69:21: sys/acl.h: No such file or directory
mkfs.jffs2.c: In function `formalize_posix_acl':
mkfs.jffs2.c:1084: error: `ACL_USER_OBJ' undeclared (first use in this
function)
mkfs.jffs2.c:1084: error: (Each undeclared identifier is reported only
once
mkfs.jffs2.c:1084: error: for each function it appears in.)
mkfs.jffs2.c:1085: error: `ACL_GROUP_OBJ' undeclared (first use in this
function)
mkfs.jffs2.c:1086: error: `ACL_MASK' undeclared (first use in this
function)
mkfs.jffs2.c:1087: error: `ACL_OTHER' undeclared (first use in this
function)
mkfs.jffs2.c:1093: error: `ACL_USER' undeclared (first use in this
function)
mkfs.jffs2.c:1094: error: `ACL_GROUP' undeclared (first use in this
function)
mkdir -p .
mips-linux-cc -I./include -g -O3 -G0 -pipe -fpic -fPIC -msoft-float
-mabi=32 -march=mips32r2 -mtune=34kc -g -c -o compr_zlib.o compr_zlib.c
-g -Wp,-MD,./.compr_zlib.c.dep
make: *** [mkfs.jffs2.o] Error 1
make: *** Waiting for unfinished jobs....
[tehkok@linux2:/usr/src/mtd-utils-1.1.0 8]$

	Any advice is appreciated. Thanks.

Regards,
KH

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mtd-utils-1.1.0: build error
  2007-12-13 10:51 mtd-utils-1.1.0: build error KokHow.Teh
@ 2007-12-13 11:03 ` Peter Wippich
  2007-12-13 12:21   ` Ricard Wanderlof
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Wippich @ 2007-12-13 11:03 UTC (permalink / raw)
  To: KokHow.Teh; +Cc: linux-mtd



Hi,

On Thu, 13 Dec 2007, KokHow.Teh@infineon.com wrote:

> Hi;
> 	I have downloaded mtd-utils-1.1.0 and unfortunately bump into
> build error as follows:
> 
> mips-linux-cc -I./include -g -O3 -G0 -pipe -fpic -fPIC -msoft-float
> -mabi=32 -march=mips32r2 -mtune=34kc -g -c -o mkfs.jffs2.o mkfs.jffs2.c
> -g -Wp,-MD,./.mkfs.jffs2.c.dep
> mkfs.jffs2.c:69:21: sys/acl.h: No such file or directory
> mkfs.jffs2.c: In function `formalize_posix_acl':
> mkfs.jffs2.c:1084: error: `ACL_USER_OBJ' undeclared (first use in this
.....
> 
> 	Any advice is appreciated. Thanks.

This one should go into the FAQ...., it's a commmon pitfall. I'm not sure 
if this is already fixed in 1.1.0, but at least in a recent GIT version 
you can add WITHOUT_XATTR=1 to the make command to compile without 
Posix ACL (which, IMHO, should be the default because I never came across 
any embedded system which uses Posix ACLs). 

Ciao, 

Peter 


|       Peter Wippich                   Voice: +49 30 46776411          |
|       G&W Instruments GmbH            fax:   +49 30 46776419          |
|       Gustav-Meyer-Allee 25, Geb. 12  Email: pewi@gw-instruments.de   |
|       D-13355 Berlin  / Germany                                       |

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mtd-utils-1.1.0: build error
  2007-12-13 11:03 ` Peter Wippich
@ 2007-12-13 12:21   ` Ricard Wanderlof
  2007-12-13 12:39     ` Artem Bityutskiy
  0 siblings, 1 reply; 5+ messages in thread
From: Ricard Wanderlof @ 2007-12-13 12:21 UTC (permalink / raw)
  To: Peter Wippich; +Cc: linux-mtd, KokHow.Teh


On Thu, 13 Dec 2007, Peter Wippich wrote:

> This one should go into the FAQ...., it's a commmon pitfall. I'm not sure
> if this is already fixed in 1.1.0, but at least in a recent GIT version
> you can add WITHOUT_XATTR=1 to the make command to compile without
> Posix ACL (which, IMHO, should be the default because I never came across
> any embedded system which uses Posix ACLs).

I agree, or at least something should be done to make the error 
clearer.

/Ricard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mtd-utils-1.1.0: build error
  2007-12-13 12:21   ` Ricard Wanderlof
@ 2007-12-13 12:39     ` Artem Bityutskiy
  2007-12-13 12:53       ` Ricard Wanderlof
  0 siblings, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2007-12-13 12:39 UTC (permalink / raw)
  To: Ricard Wanderlof; +Cc: KokHow.Teh, linux-mtd, Peter Wippich

On Thu, 2007-12-13 at 13:21 +0100, Ricard Wanderlof wrote:
> On Thu, 13 Dec 2007, Peter Wippich wrote:
> 
> > This one should go into the FAQ...., it's a commmon pitfall. I'm not sure
> > if this is already fixed in 1.1.0, but at least in a recent GIT version
> > you can add WITHOUT_XATTR=1 to the make command to compile without
> > Posix ACL (which, IMHO, should be the default because I never came across
> > any embedded system which uses Posix ACLs).
> 
> I agree, or at least something should be done to make the error 
> clearer.

The MTD web site can be cloned from git://git.infradead.org/mtd-www.git

Feel free to send a patch which will add a FAQ entry about this.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mtd-utils-1.1.0: build error
  2007-12-13 12:39     ` Artem Bityutskiy
@ 2007-12-13 12:53       ` Ricard Wanderlof
  0 siblings, 0 replies; 5+ messages in thread
From: Ricard Wanderlof @ 2007-12-13 12:53 UTC (permalink / raw)
  To: Artem Bityutskiy; +Cc: KokHow.Teh, linux-mtd, Peter Wippich


On Thu, 13 Dec 2007, Artem Bityutskiy wrote:

>> I agree, or at least something should be done to make the error
>> clearer.
>
> The MTD web site can be cloned from git://git.infradead.org/mtd-www.git
>
> Feel free to send a patch which will add a FAQ entry about this.

I was thinking along the line of adding an #ifdef-something to the 
mkfs.jffs2.c which outputs a more informative #error.

I'll try to think up a patch.

/Ricard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-13 12:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-13 10:51 mtd-utils-1.1.0: build error KokHow.Teh
2007-12-13 11:03 ` Peter Wippich
2007-12-13 12:21   ` Ricard Wanderlof
2007-12-13 12:39     ` Artem Bityutskiy
2007-12-13 12:53       ` Ricard Wanderlof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox