Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47116 - davfs2 will not build against coda module in gentoo-dev-sources (2.6.x)
Summary: davfs2 will not build against coda module in gentoo-dev-sources (2.6.x)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 09:53 UTC by Jason Vasquez
Modified: 2004-11-24 12:04 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
davfs2-0.2.2_p.ebuild (davfs2-0.2.2_p.ebuild,889 bytes, text/plain)
2004-08-30 14:38 UTC, alex f
Details
davfs2-0.2.2-r1.ebuild (davfs2-0.2.2-r1.ebuild,999 bytes, text/plain)
2004-08-30 14:40 UTC, alex f
Details
davfs2-2.6.8-patch.diff (davfs2-2.6.8-patch.diff,20.37 KB, text/plain)
2004-08-30 14:42 UTC, alex f
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Vasquez 2004-04-07 09:53:23 UTC
obiwan root # uname -a
Linux obiwan 2.6.3-gentoo-r1 #1 Sat Apr 3 14:02:58 EST 2004 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

obiwan root # lsmod
Module                  Size  Used by
coda                   35492  -

obiwan root # emerge net-www/davfs2
....
<lots of warnings here>
src/davfsd.c: In function `setfscred':
src/davfsd.c:128: error: structure has no member named `cred'
src/davfsd.c:129: error: structure has no member named `cred'
src/davfsd.c: At top level:
src/davfsd.c:227: error: syntax error before "id"
src/davfsd.c: In function `look_name':
...
<lots more errors here>

Reproducible: Always
Steps to Reproduce:
1.  install gentoo-dev-sources (2.6 kernel) including coda module
2.  emerge net-www/davfs2
Actual Results:  
build could not complete

Expected Results:  
I suspect there should be a block for users of 2.6 kernels until davfs2 is
updated to work against the newer release of the coda sources.
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 10:31:57 UTC
Kernel filesystems aren't web-apps thing; can you find another herd for this please?

Thanks,
Stu
Comment 2 Bob Black 2004-05-04 01:53:51 UTC
On the sorceforge project page there appears to be a patch to build against 2.6.

http://sourceforge.net/tracker/?func=detail&aid=911138&group_id=26275&atid=386749

Here is a direct link to the patch.
http://ave.sytes.net/~moriyoshi/davfs2-patch.diff

I have not tried it myself.
Comment 3 Chris Carlin 2004-06-11 21:32:24 UTC
Note that this doesn't work for me, patched against both davfs2 0.2.2 and 0.2.1 with kernel 2.6.6-love1
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-21 13:43:16 UTC
Hm, this isn't a kernel bug, but a davfs2 bug.  Please reassign it.
Comment 5 Chris Carlin 2004-07-31 05:18:51 UTC
Check out http://patearl.net/projects/ for a pre-patched version that does compile against my kernel.

And, I don't know, perhaps someone should attach that file to this bug. I don't know if that's appropriate or not...
Comment 6 Martin Probst 2004-08-07 02:26:25 UTC
I can confirm that the edition by Chris Carlin fixes the problem, at least for me in here on:
Linux perseus 2.6.7-gentoo-r9 #1 SMP Sun Jul 11 21:33:45 MEZ 2004 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz GenuineIntel GNU/Linux
.. it works like a charm.
Comment 7 Alexander Jenisch 2004-08-14 09:45:17 UTC
is there anything happening here?

i still get a compiler error:
...
/usr/src/linux/include/linux/time.h:387: error: redefinition of `struct itimerval'
src/davfsd.c: In function `main':
src/davfsd.c:894: error: incompatible types in assignment
src/davfsd.c:895: error: structure has no member named `Unique'
src/davfsd.c:921: error: structure has no member named `Unique'
src/davfsd.c:959: error: incompatible types in assignment
src/davfsd.c:1051: error: structure has no member named `Unique'
src/davfsd.c:1067: error: incompatible types in assignment
src/davfsd.c:1068: error: structure has no member named `Unique'
src/davfsd.c:1082: error: incompatible types in assignment
distcc[20664] ERROR: compile src/davfsd.c on localhost failed
make: *** [src/davfsd.o] Error 1
make: *** Waiting for unfinished jobs....
distcc[20666] ERROR: compile src/mount.c on localhost failed
make: *** [src/mount.o] Error 1

!!! ERROR: net-www/davfs2-0.2.2 failed.
!!! Function src_compile, Line 18, Exitcode 2
!!! (no error message)
Comment 8 alex f 2004-08-30 14:38:51 UTC
Created attachment 38538 [details]
davfs2-0.2.2_p.ebuild

This is a patched version from http://patearl.net/projects/ it works for me.
Comment 9 alex f 2004-08-30 14:40:45 UTC
Created attachment 38539 [details]
davfs2-0.2.2-r1.ebuild

This ebuild is different from the above in that it uses the latest official
upstream tarball and applies the patch from
http://pv105234.reshsg.uci.edu/~jfeise/davfs2-2.6.8-patch.diff 

Works as well for me.
Comment 10 alex f 2004-08-30 14:42:04 UTC
Created attachment 38540 [details]
davfs2-2.6.8-patch.diff

This is the patch needed by the 2nd ebuild davfs2-0.2.2-r1.ebuild only.
Comment 11 zhcnmccmzhdvfevooo 2004-08-31 10:36:18 UTC
i can also confirm that the patch works good with this kernel:
gentoo-dev-sources-2.6.8-r3

Any Chance that it will be implementet in an offzial ebuild soon?
Comment 12 christian werner 2004-09-02 11:50:13 UTC
I can also confirm that davfs is now compiling against my 2.6.9-rc1-mm2 kernel...
Works like a charme :-)

Thanks a lot!
Comment 13 fabiolla 2004-09-02 14:34:26 UTC
Well, I can also confirm that the patch works
kernel: gentoo-dev-sources-2.6.8-r3

Comment 14 David Raison 2004-10-05 07:20:35 UTC
Indeed, davfs2-0.2.2-r1.ebuild works like a charm, thanks!
maybe some instructions for other people like me that have never before build from a local ebuild file:

put davfs2-0.2.2-r1.ebuild into /usr/portage/net-fs/davfs2/
put davfs2-2.6.8-patch.diff into /usr/portage/net-fs/davfs2/files/

$>emerge -av "=davfs2-0.2.2-r1"

that's it!
Comment 15 David Raison 2004-11-23 08:37:40 UTC
I recommend upgrading to version 2.2.3 from the dav.sf.et homepage, it's working flawlessly for me.
Comment 16 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-24 12:04:34 UTC
should be fixed in 0.2.3