SCIENTIFIC-LINUX-USERS Archives

May 2010

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Troy Dawson <[log in to unmask]>
Reply To:
Troy Dawson <[log in to unmask]>
Date:
Tue, 25 May 2010 10:53:05 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (137 lines)
Hi,
I'm not totally sure what's wrong, but I'll point out three things that 
might help.

First, don't build from xfs-0.4-1.sl5.src.rpm unless you want to have 
the same xfs and xorg-x11-xfs problem that was discussed on this 
mailling list a few days ago.
Use xfs-filesystem-0.4-2.sl5.src.rpm found here

http://ftp1.scientificlinux.org/linux/scientific/5x/SRPMS/SL/xfs-filesystem-0.4-2.sl5.src.rpm

Second, here are the options that I use when building the xfs kernel module.

rpmbuild --rebuild --target $arch --define "dist .sl5" --define "ksrc 
/lib/modules/$KERNEL/build" --define "kernel $KERNEL" 
xfs-filesystem-0.4-2.sl5.src.rpm

So for you it would probrubly be

rpmbuild --rebuild --target x86_64 --define "dist .sl5" --define "ksrc 
/lib/modules/2.6.18-194.3.1.el5/build" --define "kernel 
2.6.18-194.3.1.el5" xfs-filesystem-0.4-2.sl5.src.rpm

And Third - 2.6.18-194.3.1.el5 already has the XFS kernel module in it. 
  If you build your own and put it in, then selinux is not going to like it.

Troy

Andrey Y. Shevel wrote:
> Hello,
> 
> I tried to rebuild the package xfs-0.4-1.sl5.src.rpm and got the result
> ===================================================
> [root@pcfarm-09 ~]# rpmbuild --rebuild xfs-0.4-1.sl5.src.rpm
> Installing xfs-0.4-1.sl5.src.rpm
> warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 
> 82fd17b2
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.32229
> + umask 022
> + cd /usr/src/redhat/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /usr/src/redhat/BUILD
> + rm -rf xfs-0.4
> + /bin/mkdir -p xfs-0.4
> + cd xfs-0.4
> + /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/xfs.tar.bz2
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chown -Rhf root .
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chgrp -Rhf root .
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + pushd xfs
> /usr/src/redhat/BUILD/xfs-0.4/xfs /usr/src/redhat/BUILD/xfs-0.4
> + cp /usr/src/redhat/SOURCES/config.xfs .
> + echo 'Patch #0 (xfs-ootbuild.patch):'
> Patch #0 (xfs-ootbuild.patch):
> + patch -p1 -s
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.32229
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd xfs-0.4
> + LANG=C
> + export LANG
> + unset DISPLAY
> + echo -e '\nDriver version: 0.4\nKernel version: 2.6.18-194.3.1.el5\n'
> 
> Driver version: 0.4
> Kernel version: 2.6.18-194.3.1.el5
> 
> + cd xfs
> + make TOPDIR=/usr/src/kernels/2.6.18-194.3.1.el5-x86_64 clean
> make -C /usr/src/kernels/2.6.18-194.3.1.el5-x86_64 OOT_BUILD=y 
> SUBDIRS=/usr/src/redhat/BUILD/xfs-0.4/xfs clean
> make[1]: Entering directory `/usr/src/kernels/2.6.18-194.3.1.el5-x86_64'
> make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.3.1.el5-x86_64'
> + make TOPDIR=/usr/src/kernels/2.6.18-194.3.1.el5-x86_64 modules
> make -C /usr/src/kernels/2.6.18-194.3.1.el5-x86_64 OOT_BUILD=y 
> SUBDIRS=/usr/src/redhat/BUILD/xfs-0.4/xfs modules
> make[1]: Entering directory `/usr/src/kernels/2.6.18-194.3.1.el5-x86_64'
>    CC [M]  /usr/src/redhat/BUILD/xfs-0.4/xfs/quota/xfs_dquot.o
> In file included from /usr/src/redhat/BUILD/xfs-0.4/xfs/xfs.h:20,
>                   from 
> /usr/src/redhat/BUILD/xfs-0.4/xfs/quota/xfs_dquot.c:18:
> /usr/src/redhat/BUILD/xfs-0.4/xfs/linux-2.6/xfs_linux.h:120: error: 
> redefinition of 'set_buffer_unwritten'
> include/linux/buffer_head.h:126: error: previous definition of 
> 'set_buffer_unwritten' was here
> /usr/src/redhat/BUILD/xfs-0.4/xfs/linux-2.6/xfs_linux.h:120: error: 
> redefinition of 'clear_buffer_unwritten'
> include/linux/buffer_head.h:126: error: previous definition of 
> 'clear_buffer_unwritten' was here
> /usr/src/redhat/BUILD/xfs-0.4/xfs/linux-2.6/xfs_linux.h:120: error: 
> redefinition of 'buffer_unwritten'
> include/linux/buffer_head.h:126: error: previous definition of 
> 'buffer_unwritten' was here
> make[2]: *** [/usr/src/redhat/BUILD/xfs-0.4/xfs/quota/xfs_dquot.o] Error 1
> make[1]: *** [_module_/usr/src/redhat/BUILD/xfs-0.4/xfs] Error 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.3.1.el5-x86_64'
> make: *** [modules] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.32229 (%build)
> 
> 
> RPM build errors:
>      InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 82fd17b2
>      Bad exit status from /var/tmp/rpm-tmp.32229 (%build)
> [root@pcfarm-09 ~]#
> [root@pcfarm-09 ~]# uname -a
> Linux pcfarm-09.pnpi.spb.ru 2.6.18-194.3.1.el5xen #1 SMP Fri May 7 
> 02:05:32 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
> [root@pcfarm-09 ~]# cat /etc/issue
> Scientific Linux SL release 5.3 (Boron)
> Kernel \r on an \m
> ========================================================
> 
> Does somebody know what is wrong ?
> 
> Many thanks in advance,
> 
> Andrey
> 
> 


-- 
__________________________________________________
Troy Dawson  [log in to unmask]  (630)840-6468
Fermilab  ComputingDivision/LSCS/CSI/USS Group
__________________________________________________

ATOM RSS1 RSS2