cdfs-src doesn't build on oneiric

Bug #896780 reported by sordna
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cdfs-src (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm running oneiric (amd64) with kernel 3.0.0-13-generic

If I try to build cdfs with "m-a build" it tries to build 2.4 instead of 2.6 and fails because it can't find some header files.

If I go to the cdfs/2.6 subdirectory and type "sudo make" I get errors because get_sb_bdev does not exist in kernel 3.0,
I believe it has been renamed to mount_bdev. Basically, cdfs-src needs to be updated for oneiric / kernel 3.0
Please look into it!

make -C /lib/modules/3.0.0-13-generic/build SUBDIRS=/usr/src/modules/cdfs/2.6 modules
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-13-generic'
  CC [M] /usr/src/modules/cdfs/2.6/root.o
/usr/src/modules/cdfs/2.6/root.c: In function ‘cdfs_get_sb’:
/usr/src/modules/cdfs/2.6/root.c:602:3: error: implicit declaration of function ‘get_sb_bdev’ [-Werror=implicit-function-declaration]
/usr/src/modules/cdfs/2.6/root.c: At top level:
/usr/src/modules/cdfs/2.6/root.c:612:3: error: unknown field ‘get_sb’ specified in initializer
/usr/src/modules/cdfs/2.6/root.c:612:3: warning: initialization makes integer from pointer without a cast [enabled by default]
/usr/src/modules/cdfs/2.6/root.c:612:3: warning: (near initialization for ‘cdfs_fs_type.fs_flags’) [enabled by default]
/usr/src/modules/cdfs/2.6/root.c:612:3: error: initializer element is not computable at load time
/usr/src/modules/cdfs/2.6/root.c:612:3: error: (near initialization for ‘cdfs_fs_type.fs_flags’)
cc1: some warnings being treated as errors

make[2]: *** [/usr/src/modules/cdfs/2.6/root.o] Error 1
make[1]: *** [_module_/usr/src/modules/cdfs/2.6] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-13-generic'
make: *** [all] Error 2

I don't think get_sb_dev exists in kernel 3.0, I think it's renamed to mount_bdev ...

Revision history for this message
Daniel Brandes (daniel-brandes) wrote :

Yes, i changed in root.c "get_sb_bdev" to "mount_bdev" , deleted "mnt" in this function call, and in "static struct file_system_type cdfs_fs_type" "get_sb" to "mount". I get a few warnings, but it compiles and works fine.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cdfs-src (Ubuntu):
status: New → Confirmed
Revision history for this message
Jeff_05 (jeffdegap05) wrote :

+ 1 under Lucid 10.04 with 2.6.32.41-generic

Revision history for this message
clubsoda (clubsoda) wrote :

bump
:)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.