[OpenAFS] AFS on RHEL 3 RPMs

Derek Atkins warlord@MIT.EDU
Fri, 26 Dec 2003 13:45:39 -0500


Hi,

First, please CC all responses to openafs-info.
Second, please don't use the --target option to rpmbuild.
Third, make sure you are building against the correct kernel-source RPM

The errors you are getting are reminiscent of building against the
incorrect kernel headers.

-derek

"David Chait" <davidc@bonair.stanford.edu> writes:

> Hi Derek,
>     I origenally used  openafs-1.2.10-rh9.0.1.src.rpm built against RHEL 3
> with a 2.4.21-4.0.1.EL kernel with the following command:
>
> rpmbuild -ba --target i686-redhat-linux openafs-1.2.10.spec
>
> I will give it a shot with the fedora SRPM and see where that gets me.
>
> Thanks,
> David
>
>
> ----- Original Message ----- 
> From: "Derek Atkins" <warlord@MIT.EDU>
> To: "David Chait" <davidc@bonair.stanford.edu>
> Cc: <openafs-info@openafs.org>
> Sent: Thursday, December 25, 2003 7:57 PM
> Subject: Re: [OpenAFS] AFS on RHEL 3 RPMs
>
>
>> Hi,
>>
>> What version of the SRPM did you start with?
>> What version of RHEL are you using?
>>
>> I would suggest you start with the openafs-1.2.10-fd1.0.1 SRPM, although
>> you may need to enable the enterprise kernel support when you build.
>>
>> -derek
>>
>> "David Chait" <davidc@bonair.stanford.edu> writes:
>>
>> > All,
>> >     Does anyone have an "Iron clad" way of building/compiling AFS
> against a RHEL
>> > kernel? I have managed to get the SRPM to build by modifying it only to
> build for
>> > the i686 platform, however the kernel module still returns the following
> whenever I
>> > attempt to initiate it:
>> >
>> > [root@fac-print2 modload]# /etc/init.d/afs start
>> > Hmm...  I can't seem to find an AFS kernel module suitable for your
> Linux
>> > kernel.  That means you will need to build or obtain a suitable module.
>> > The following information may be of some use in obtaining assistance:
>> > CPU Type:       686.intel.8
>> > Linux version:  2.4.21-4.0.1.EL #1 Thu Oct 23 01:36:33 EDT 2003
>> > RedHat release: Red Hat Enterprise Linux AS release 3 (Taroon)
>> > Symbol versions:
>> >   sock_create aed60fac
>> > Did not find matching module in SymTable
>> > Failed to load AFS client, not starting AFS services.
>> >
>> > -- The SymTable does include the following:
>> >
>> > [root@fac-print2 modload]# more SymTable
>> > # This file describes the available AFS kernel modules and what kernel
>> > # versions they work with.  Each line matches against some kernel symbol
>> > # version, and specifies a module which may be used with kernels
> containing
>> > # that version of the specified symbol.  Only lines which match the
>> > # currently-running kernel are considered.
>> > #
>> > # In addition, each line may specify a minimum CPU model on which the
> module
>> > # will work.  If this value is present, the actual CPU model must be
> greater
>> > # than or equal to the version specified; otherwise, the module is
> assumed
>> > # to work on any CPU.
>> > #
>> > # The last match found will be used.
>> > #
>> > # Symbol  Version       MinCPU  Module
>> > #=======  ============  ======  ====================
>> > iget4     84b9adda      -       2.4.21-4.0.1.EL
>> >> sock_create=f91c78f0
>> >
>> > -- I do have indications of failure in the libafsmap file though:
>> >
>> > [root@fac-print2 modload]# more libafs.map
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > inode_change_ok_Rd6dfaf8c
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > register_filesystem_Rf7c836bc
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > generic_file_mmap_R140050d0
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > remove_wait_queue_R1947093e
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > d_instantiate_R73b1831c
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > sock_sendmsg_R111e2258
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > d_alloc_root_R1960a161
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > generic_file_write_R10d8de30
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > force_sig_R843f9371
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > path_init_R82b4e26a
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > shrink_dcache_parent_R2c7ffb45
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > filemap_fdatasync_R8843a7ef
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > page_follow_link_R99a0945a
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > unregister_sysctl_table_R506ce9e1
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > highmem_start_page_Rbf673ded
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
> d_move_Rd9e0ddc4
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > sock_recvmsg_Rf3fc90f3
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > truncate_inode_pages_R176f7b23
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > irq_stat_Rd032f027
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > generic_read_dir_R76398518
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > unlock_page_Rcd79f955
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > __user_walk_Rd36acb79
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > find_task_by_pid_R0d769ec7
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > dget_locked_R29c6dda3
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > d_rehash_R4beccf1e
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > init_task_union_R7213c5d7
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
> iget4_R84b9adda
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > inode_setattr_R1c7e87f8
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > kmap_high_Rc657051e
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > filemap_fdatawait_R1771e74f
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > generic_file_read_Ree39831c
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > invalidate_inode_pages_R696eb5eb
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > page_readlink_Rb4f99d7e
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > proc_dointvec_R9301a062
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
> dput_R9be2f601
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > unregister_filesystem_R4c227b0d
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > add_wait_queue_R53621d0f
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > path_release_Red4e40d9
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > path_walk_Rd5be8cfe
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > register_sysctl_table_R28a9fd05
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
> init_mm_R93ca81c5
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > sock_create_Rf91c78f0
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
> iput_R96060046
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > flush_signals_R0462ff76
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > kunmap_high_R0c5bc038
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o: unresolved symbol
>> > sock_release_Rb733d53f
>> > /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o:
>> > Hint: You are trying to load a module without a GPL compatible license
>> >       and it has unresolved symbols.  Contact the module supplier for
>> >       assistance, only they can help you.
>> >
>> > Warning: kernel-module version mismatch
>> >         /usr/vice/etc/modload/libafs-2.4.21-4.0.1.EL.o was compiled for
> kernel
>> > version 2.4.20-19.9
>> >         while this kernel is version 2.4.21-4.0.1.EL
>> >
>> > -- It is interresting that it states that this kernel mod was compiled
> for kernel
>> > version 2.4.20-19.9 when in reality, I built the RPM against this very
> machine/
>> > kernel.
>> > Any guidance would be appreciated.
>> >
>> > Thanks,
>> > David
>> >
>>
>> -- 
>>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>>        Member, MIT Student Information Processing Board  (SIPB)
>>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>>        warlord@MIT.EDU                        PGP key available
>>
>>
>
>
>

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available