Re: Compilation Issue - Reiser4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Wed, Oct 20, 2010 at 3:23 PM, Viji V Nair <viji@xxxxxxxxxxxxxxxxx> wrote:
> H
>
> I am working on "kmod-reiser4" package, to pack the module only - will
> help to avoid the full recompilation of the kernel. There are couple
> of issues.
>
> 1. I have downloaded the kernel source package of fedora 13 and
> patched for reiser4. I believe the module should get compiled with the
> kernel-devel package, instead of the full source tree. The main
> purpose of providing  the kernel development package with the
> distribution is to support these kind of module development, but the
> reise4 compilation fails with the following error.
>
> # make CONFIG_REISER4_FS=m CONFIG_REISER4_DEBUG=n -C
> /usr/src/kernels/2.6.34.7-56.fc13.x86_64/
> M=/data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4
>
> make: Entering directory `/usr/src/kernels/2.6.34.7-56.fc13.x86_64'
>  LD      /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/built-in.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/debug.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/jnode.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/znode.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/key.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/pool.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/tree_mod.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/estimate.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/carry.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/carry_ops.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/lock.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/tree.o
>  CC [M]  /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/context.o
> /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/context.c:
> In function ‘reiser4_throttle_write_at’:
> /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/context.c:156:
> error: implicit declaration of function ‘current_is_flush_bd_task’
> make[1]: *** [/data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4/context.o]
> Error 1
> make: *** [_module_/data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4]
> Error 2
> make: Leaving directory `/usr/src/kernels/2.6.34.7-56.fc13.x86_64'
>
> 2. If I compile against the full source tree,
>
>      a. I need to run "make scripts && make prepare " first and
> executing make "make CONFIG_REISER4_FS=m CONFIG_REISER4_DEBUG=n -C
> /data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64
> M=/data/mockbuild/rpmbuild/BUILD/kernel-2.6.34.fc13/linux-2.6.34.x86_64/fs/reiser4".
> This is complaining about the missing Module.symvers file, this file
> will be created automatically by running "make all" which is an
> overhead.
>
>      b. The module alone is getting compiled (on step a), but getting
> the following error when trying to load.
>
> insmod fs/reiser4/reiser4.ko
> insmod: error inserting 'fs/reiser4/reiser4.ko': -1 Invalid module format

reiser4: Unknown symbol lzo1x_1_compress
reiser4: Unknown symbol might_fault
reiser4: Unknown symbol mutex_lock_nested
reiser4: Unknown symbol zlib_deflate
reiser4: Unknown symbol writeback_inodes_wbc
reiser4: Unknown symbol zlib_deflateReset
reiser4: Unknown symbol __raw_spin_lock_init
reiser4: Unknown symbol generic_writeback_sb_inodes
reiser4: Unknown symbol zlib_deflate_workspacesize
reiser4: Unknown symbol zlib_deflateInit2
reiser4: Unknown symbol inode_lock
reiser4: Unknown symbol _raw_spin_unlock_irq
reiser4: Unknown symbol _raw_spin_lock_nested
reiser4: Unknown symbol _raw_read_unlock
reiser4: Unknown symbol _raw_write_unlock
reiser4: Unknown symbol debug_lockdep_rcu_enable
reiser4: Unknown symbol lock_acquire
reiser4: Unknown symbol lock_release
reiser4: Unknown symbol __rwlock_init
reiser4: Unknown symbol writeback_skip_sb_inodes
reiser4: Unknown symbol set_page_dirty_notag
reiser4: Unknown symbol _raw_spin_unlock
reiser4: Unknown symbol find_get_pages
reiser4: Unknown symbol rcu_lock_map

>
>
> Any help on the above is greatly appreciated.
>
> Thanks
> Viji Nair
>
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux