I believe that I have solved my own problem.

I found what I think was the appropriate version.h (the kernel version
file) in the tools directories, and put a link to that in the source
include directory.

.../ewrt-0.3/src/linux/linux/include/linux/version.h -> 
/opt/brcm/hndtools-mipsel-linux/mipsel-linux/include/linux/version.h

and that seemed to solve the problem, at least the make then finished
and made me an image file. I'll try it on the WRT54G later.

Is this the recommended method of including this file? There are lots of
other include files in the tools include directory.

BTW the instructions you wrote for the source were very clear and
helpful, thank you.

Paul Hilton

On Thu, 2005-06-09 at 13:46 -0400, Paul Hilton wrote:
> Thank you for the source, just what I was looking for.
> 
> My make fails on fuse looking for a <linux/version.h> file from 
> fuse_i.h, have I missed something?
> 
> The tail end of the make output follows.
> 
> There are a seven different version.h files in the tree, 
> but I'm fairly sure that none of them are right.
> 
> make[3]: Leaving directory
> `/home/paul/wrt/ewrt-0.3/src/router/fuse/util'
> awk: cmd. line:1: fatal: cannot open file
> `/home/paul/wrt/ewrt-0.3/src/linux/linux/include/linux/version.h' for
> reading (No such file or directory)
> awk: cmd. line:1: fatal: cannot open file
> `/home/paul/wrt/ewrt-0.3/src/linux/linux/include/linux/version.h' for
> reading (No such file or directory)
> /bin/sh: line 0: [: -ge: unary operator expected
> /bin/sh: line 0: [: -ge: unary operator expected
> /bin/sh: line 0: [: -ge: unary operator expected
> make[3]: Entering directory
> `/home/paul/wrt/ewrt-0.3/src/router/fuse/kernel'
> mipsel-uclibc-gcc -D__KERNEL__
> -I/home/paul/wrt/ewrt-0.3/src/linux/linux/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer
> -I/home/paul/wrt/ewrt-0.3/src/linux/linux/../../include
> -I /home/paul/wrt/ewrt-0.3/src/linux/linux/include/asm/gcc -G 0
> -mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap  -m4710a0kern
> -nostdinc -iwithprefix include -DMODULE -mlong-calls -fno-common
> -DFUSE_VERSION=\"2.1\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE
> -DFUSE_USE_VERSION=22 -DUSE_UCLIBC -DUCLIBC_HAS_MMU -I../include
> -DMAGIC_ROM_PTR   -c -o dev.o dev.c
> In file included from dev.c:9:
> fuse_i.h:11:27: linux/version.h: No such file or directory
> fuse_i.h:13:40: missing binary operator before '('
> fuse_i.h:17:41: missing binary operator before '('
> In file included from fuse_i.h:34,
>                  from dev.c:9:
> /home/paul/wrt/ewrt-0.3/src/linux/linux/include/linux/module.h:298:27:
> linux/version.h: No such file or directory
> In file included from fuse_i.h:34,
>                  from dev.c:9:
> /home/paul/wrt/ewrt-0.3/src/linux/linux/include/linux/module.h:300:
> parse error before "UTS_RELEASE"
> make[3]: *** [dev.o] Error 1
> make[3]: Leaving directory
> `/home/paul/wrt/ewrt-0.3/src/router/fuse/kernel'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/paul/wrt/ewrt-0.3/src/router/fuse'
> make[1]: *** [fuse] Error 2
> make[1]: Leaving directory `/home/paul/wrt/ewrt-0.3/src/router'
> make: *** [all] Error 2
> 
> On Tue, 2005-06-07 at 11:13 +0200, Christian Magnusson wrote:
> > 
> > I have created the tar-files now, and it's available on the project-page.
> > http://www.sf.net/project/showfiles.php?group_id=85502&package_id=143220
> > 
> > firmware-1.0  Is a new flash-image with the latest cvs-version of owfs
> >    and temploggerd.
> > firmware-1.0-src   Is the source and diffs which should be applied to
> >    the ewrt-0.3 source tree.
> > 
> > 
> > I have tried to run the latest owfs and owserver locally on the wrt54g
> > router, and right now it doesn't seem to leak any memory.
> > The leak I noticed before may only occur when owserver is used with remote
> > hosts or something similar. I'll tell you some more about this if I find
> > any bugs related to this.
> > 
> > /Christian
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to