[OpenAFS] RedHat Enterprise 3 srpm compile errors

John Koyle jkoyle@rfpdepot.com
Fri, 24 Oct 2003 14:58:21 -0600


Yep, that fixes it.  I know this isn't the fix you'll want, but it may
help others get it running for now.  Here's the spec file diff:

--- openafs-1.2.10.spec.org     2003-08-04 08:49:51.000000000 -0600
+++ openafs-1.2.10.spec 2003-10-24 14:34:24.000000000 -0600
@@ -4,7 +4,7 @@
 # Define your particular Red Hat and kernel versions:
 #      For Linux 2.4:  24
 #
-%define osvers rh9.0
+%define osvers rhel3.0
 %define kernvers 24

 # This is where to look for kernel-build includes files.
@@ -230,7 +230,7 @@
 ###
 %build

-%ifarch i386 i486 i586 i686 athlon
+%ifarch i686
 sysbase=i386
 %else
 sysbase=%{_arch}
@@ -249,8 +249,8 @@
    exit 1
 fi

-%ifarch i386 i486 i586 i686 athlon
-archlist="i386 i586 i686 athlon"
+%ifarch i686
+archlist="i686"
 %if %{bootkernelsupport}
   archlist="${archlist} BOOT"
 %endif

Thanks for you help Derek,
John

On Fri, 2003-10-24 at 13:10, Derek Atkins wrote:
> John Koyle <jkoyle@rfpdepot.com> writes:
> 
> > When I modified the redhat-fix.h to #undef i386 and #define i686 then it
> > was able to compile.  So it may just be some logic in the SPEC file. 
> > Here's the relevent parts of mm.h
> 
> Aha... The problem is that it's failing to build an i386 module.
> 
> I bet that Red Hat doesn't support the i386 in their Enterprise
> Edition.  So, you should just remove i386 support from the SRPM (you
> may want to remove i586 support as well)..  Then it should build fine.
> 
> -derek