[OpenAFS] Installing 1.4.0.rc6 version of OpenAFS

Ron Croonenberg ronc@depauw.edu
Mon, 10 Oct 2005 13:29:48 -0500


>> And that's correct but then "it" says":
>> checking your OS... configure: error: No usable linux headers found
at
>> /
>> + exit 1
>> error: Bad exit status from /var/tmp/rpm-tmp.49522 (%build)

>That's... ODD.  What do you see under:

>   /lib/modules/2.4.22-1.2199.nptl_afs_ssi_9/build

lrwxrwxrwx  1 root root     26 Oct  6 11:23 build ->
/opt/OpenSSI/CVS/linux-ssi
[root@oort 2.4.22-1.2199.nptl_afs_ssi_9smp]# ls build
arch           drivers  MAINTAINERS                   Rules.make
cluster        fs       Makefile                      scripts
configs        include  Makefile.org                  System.map
COPYING        init     mm                           
tmp_include_depends
CREDITS        ipc      net                           vmlinux
crypto         kdb      OpenAFS-OpenSSI-kernel.patch
CVS            kernel   README
Documentation  lib      REPORTING-BUGS


>> When I run ./configure from the 
/usr/src/redhat/BUILD/openafs-1.4.0.rc5
>> the configure command just works.

>That's REALLY odd.  I have no idea why a plain configure works but the
>configure from the rpmbuild does not.  Can you try running the rpmbuild
./configure
>line by hand and then perhaps removing each argument, one at a time,
until you
>figure out which one was causing the issue?

yes I can do that ...  
--with-linux-kernel-headers=/lib/modules/2.4.22-1.2199.nptl_afs_ssi_9/build

and, btw using this option instead works :
--with-linux-kernel-headers=/usr/src/linux-2.4.22-1.2199.nptl_ssi_9
(./configure --with-afs-sysname=i386_linux24 --prefix=/usr
--libdir=/usr/lib --bindir=/usr/bin --sbindir=/usr/sbin
--with-linux-kernel-headers=/usr/src/linux-2.4.22-1.2199.nptl_ssi_9
--enable-redhat-buildsys --enable-transarc-paths)


> Then when I do a make, make just works too (well modulo the few minor
> changes that I had to make)
>
> So ..  uhm..  now how do I get the rpms ?

I dont know.. We need to figure out what's broken with the configure... 
Why
it's not finding your kernel headers in the right place...

-derek

PS: This probably shouldn't have left the list....

I'll cc the list.
-- 
       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