Re: [AVFS] avfs on Linux 2.6

[email protected] Thu, 30 Jun 2005 11:29:56 -0300
Newsgroups gmane.comp.file-systems.avfs.user
Message-ID <20050630142956.GA19199@malaquias>
Hi,

On Thu, Jun 30, 2005 at 02:51:44PM +0200, Ralf Hoffmann wrote:
> [...]
> I updated the patch so it will apply to avfs 0.9.5 without any problem,
> please try the attached patch.

Thanks for the patch.

> > Is this the same error you have got?
> 
> No, I got this error:
> In file included from /usr/include/linux/coda.h:102,
>                  from mount.c:16:
> /usr/include/linux/time.h:9: error: redefinition of `struct timespec'
> /usr/include/linux/time.h:15: error: redefinition of `struct timeval'

I have not got the error above. I am running Gentoo Linux:

$ uname -a
Linux malaquias 2.6.12-gentoo-r2 #1 Wed Jun 29 10:02:07 BRT 2005 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux

The only problem I had was the the attempt of installing
redir. But the attached patch stops it from being
installed.

Now I have avfs working on my system:

$ cat /overlay/#avfsstat/version
Interface version: 0.9.5
Compile date: Thu Jun 30 11:16:56 BRT 2005
Compile system: Linux 2.6.12-gentoo-r2 x86_64
Module directory: /usr/local/lib/avfs

$ ls -l /overlay/var/tmp/avfs-0.9.5.tar.gz#/avfs-0.9.5/
total 920
-rw-r--r--  1 romildo users     37 Jun 13 18:12 AUTHORS
-rw-r--r--  1 romildo users  17976 Mar  1  2001 COPYING
-rw-r--r--  1 romildo users  25283 Mar  1  2001 COPYING.LIB
-rw-r--r--  1 romildo users   4526 Jun 20 17:39 ChangeLog
-rw-r--r--  1 romildo users   9240 Jun 22 15:26 INSTALL
-rw-r--r--  1 romildo users    428 Jun 13 18:12 Makefile.am
-rw-r--r--  1 romildo users  18741 Jun 22 15:26 Makefile.in
-rw-r--r--  1 romildo users   3548 Jun 20 16:11 NEWS
-rw-r--r--  1 romildo users   9346 Jun 20 17:39 README
-rw-r--r--  1 romildo users    702 Jan 17  2002 TODO
-rw-r--r--  1 romildo users 167978 Jun 22 15:26 aclocal.m4
drwxrwxrwx  3 romildo users      0 Jun 22 15:27 avfscoda
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 bzlib
-rwxr-xr-x  1 romildo users   2774 Jun 22 15:26 compile
-rwxr-xr-x  1 romildo users  39923 Jun 22 15:26 config.guess
-rw-r--r--  1 romildo users   4610 Jun 22 15:26 config.h.in
-rwxr-xr-x  1 romildo users  29628 Jun 22 15:26 config.sub
-rwxr-xr-x  1 romildo users 417387 Jun 22 15:26 configure
-rw-r--r--  1 romildo users  10664 Jun 22 13:50 configure.in
-rwxr-xr-x  1 romildo users  13866 Jun 22 15:26 depcomp
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 doc
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 extfs
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 glassfs
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 include
-rwxr-xr-x  1 romildo users   5585 Mar  1  2001 install-sh
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 lib
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 libneon
-rw-r--r--  1 romildo users 142449 Jun 22 15:26 ltmain.sh
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 macros
-rwxr-xr-x  1 romildo users  10266 Jun 22 15:26 missing
-rwxr-xr-x  1 romildo users    729 Mar  1  2001 mkinstalldirs
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 modules
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 patch
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 preload
drwxrwxrwx  3 romildo users      0 Jun 22 15:27 scripts
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 spec
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 src
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 test
drwxrwxrwx  2 romildo users      0 Jun 22 15:27 zlib

Later I will test under Fedora Core 4.

Best regards,

Romildo
avfs-0.9.5-makefile-woRedir.patch (text/plain, 896 B)
--- avfs-0.9.5.orig/avfscoda/Makefile.am	2005-06-13 18:12:56.000000000 -0300
+++ avfs-0.9.5/avfscoda/Makefile.am	2005-06-30 11:15:00.000000000 -0300
@@ -1,4 +1,4 @@
-EXTRA_DIST = redir/Makefile.in redir/redir.c
+#EXTRA_DIST = redir/Makefile.in redir/redir.c
 
 noinst_HEADERS = avfscoda.h
 
@@ -10,23 +10,23 @@
 
 avfscoda_LDFLAGS = @LDFLAGS@ @LIBS@
 avfscoda_LDADD = ../lib/libavfs_static.la
-avfscoda_DEPENDENCIES = redir_module
+#avfscoda_DEPENDENCIES = redir_module
 avfscoda_SOURCES = \
 	avfscoda.c          \
 	mount.c              \
 	dispatch.c           \
 	child.c
 
-redir_module:
-	( cd redir && make )
+#redir_module:
+#	( cd redir && make )
 
 install-exec-hook:
-	( cd redir && make install )
+#	( cd redir && make install )
 
 uninstall-hook:
-	( cd redir && make uninstall )
+#	( cd redir && make uninstall )
 
-CLEANFILES = redir/redir.o
+#CLEANFILES = redir/redir.o
 
 else