openafs module cannot be built on PPC64

Bug #37661 reported by Sergey V. Udaltsov
6
Affects Status Importance Assigned to Milestone
module-assistant (Debian)
Fix Released
Unknown
module-assistant (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Running this:

% sudo module-assistant -t auto-install openafs

I get:

/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h:55:2: error: #error ▒
                         │ Not sure what to do about rlim (should be in the Linux task struct ▒
                         │ somewhere....)

Revision history for this message
In , Paul Brossier (piem) wrote : spca5xx-20050601.tar.gz compiles on powerpc64

for info, i tried earlier versions of spca5xx from
http://mxhaard.free.fr/spca50x/Download/?M=D and found out that the last
version compiling on -powerpc64 is spca5xx-20050601

piem@calabaza:~/spca5xx-20050601$ make
   Building SPCA5XX driver for 2.5/2.6 kernel.
   Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/piem/spca5xx-20050601 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.12-1-powerpc64'
  CC [M] /home/piem/spca5xx-20050601/drivers/usb/spca5xx.o
/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c: In function ‘spca50x_configure_sensor’:
/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c:5690: warning: ISO C90 forbids mixed declarations and code
/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’:
/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c:5855: warning: ‘defaultpipe’ may be used uninitialized in this function
/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c:5854: warning: ‘defaultrows’ may be used uninitialized in this function
/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c:5853: warning: ‘defaultcols’ may be used uninitialized in this function
  CC [M] /home/piem/spca5xx-20050601/drivers/usb/spcadecoder.o
  LD [M] /home/piem/spca5xx-20050601/spca5xx.o
  Building modules, stage 2.
  MODPOST
  CC /home/piem/spca5xx-20050601/spca5xx.mod.o
  LD [M] /home/piem/spca5xx-20050601/spca5xx.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.12-1-powerpc64'

so far, the camera (041e:4034 Creative instant) is working great in
pd-pdp, but i can't get camorama, gphoto2 or gtkam to detect it. i found
the following in dmesg, with similar lines for each usb devices
(including the camera):

ioctl32(gtkam:5245): Unknown cmd fd(6) cmd(c00c5512){00} arg(fff990c8) on /proc/bus/usb/003/008

ciao, piem

Revision history for this message
In , Stephen Birch (sgbirch) wrote : Re: [Pkg-spca5xx-devel] Bug#334392: spca5xx-source: does not compile on powerpc
Download full text (13.5 KiB)

Hi Michel:

You may already be aware of this but spca5xx has now made it into
Debian's testing repository. Kel and I are working to get the
toolchain (spcaview etc) into Debian as well, that should happen
fairly soon.

Some bad news though, we have received a bug report from a power PC
user (Paul Brossier), it looks like the driver doesnt compile on
powerpc. Do you have a co-maintainer versed on powerpc that can look
into this for us by any chance?

Also, we have set up a mail list for discussing debian packaging
aspects of your driver. I dont expect it to be a high traffic site
but if you are interested in joining the list point your browser here:

http://lists.alioth.debian.org/mailman/listinfo/pkg-spca5xx-devel

The alioth site also has a forum but we (Kel and I) are planning to
shut that down, we dont need a list server *and* a forum :-)

Steve

Paul Brossier(<email address hidden>)@2005-10-17 17:31:
> Package: spca5xx-source
> Version: 20051001-1
> Severity: normal
>
> Hi,
>
> thanks for packaging these modules. the module works fine on an i386
> box, but I have troubles compiling it on 2.6.12-1-powerpc64. Attached is
> the compilation log.
>
>
> piem@calabaza:/usr/src/modules/spca5xx$ make
> Building SPCA5XX driver for 2.5/2.6 kernel.
> Remember: you must have read/write access to your kernel source tree.
> make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/spca5xx CC=cc modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.12-1-powerpc64'
> CC [M] /usr/src/modules/spca5xx/drivers/usb/spca5xx.o
> In file included from include/linux/thread_info.h:20,
> from include/linux/spinlock.h:12,
> from include/linux/capability.h:45,
> from include/linux/sched.h:7,
> from include/linux/module.h:10,
> from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:39:
> include/linux/bitops.h: In function ???generic_hweight64???:
> include/linux/bitops.h:123: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:123: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:124: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:124: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:125: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:125: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:126: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:126: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:127: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:127: warning: integer constant is too large for ???unsigned long??? type
> include/linux/bitops.h:128: warning: right shift count >= width of type
> In file included from include/linux/byteorder/big_endian.h:12,
> from include/asm/byteorder.h:94,
> from include/linux/kernel.h:16,
> ...

Revision history for this message
In , Stephen Birch (sgbirch) wrote : Re: Fwd: [Pkg-spca5xx-devel] Bug#334392: spca5xx-20050601.tar.gz compiles on powerpc64

michel Xhaard(<email address hidden>)@2005-10-18 10:02:
> Steve,
> Ok i wil look I have also forward the bug report to Tomas Groth working on
> spca5xx ppc support.

Excellent, thanks Michel

Steve

Revision history for this message
In , kelmo (kelrin) wrote : Re: [Pkg-spca5xx-devel] Bug#334392: spca5xx-20050601.tar.gz compiles on powerpc64

Paul Brossier wrote:

>for info, i tried earlier versions of spca5xx from
>http://mxhaard.free.fr/spca50x/Download/?M=D and found out that the last
>version compiling on -powerpc64 is spca5xx-20050601
>
>piem@calabaza:~/spca5xx-20050601$ make
> Building SPCA5XX driver for 2.5/2.6 kernel.
> Remember: you must have read/write access to your kernel source tree.
>make -C /lib/modules/`uname -r`/build SUBDIRS=/home/piem/spca5xx-20050601 modules
>make[1]: Entering directory `/usr/src/linux-headers-2.6.12-1-powerpc64'
> CC [M] /home/piem/spca5xx-20050601/drivers/usb/spca5xx.o
>/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c: In function ‘spca50x_configure_sensor’:
>/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c:5690: warning: ISO C90 forbids mixed declarations and code
>/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’:
>/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c:5855: warning: ‘defaultpipe’ may be used uninitialized in this function
>/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c:5854: warning: ‘defaultrows’ may be used uninitialized in this function
>/home/piem/spca5xx-20050601/drivers/usb/spca5xx.c:5853: warning: ‘defaultcols’ may be used uninitialized in this function
> CC [M] /home/piem/spca5xx-20050601/drivers/usb/spcadecoder.o
> LD [M] /home/piem/spca5xx-20050601/spca5xx.o
> Building modules, stage 2.
> MODPOST
> CC /home/piem/spca5xx-20050601/spca5xx.mod.o
> LD [M] /home/piem/spca5xx-20050601/spca5xx.ko
>make[1]: Leaving directory `/usr/src/linux-headers-2.6.12-1-powerpc64'
>
>so far, the camera (041e:4034 Creative instant) is working great in
>pd-pdp, but i can't get camorama, gphoto2 or gtkam to detect it. i found
>the following in dmesg, with similar lines for each usb devices
>(including the camera):
>
>ioctl32(gtkam:5245): Unknown cmd fd(6) cmd(c00c5512){00} arg(fff990c8) on /proc/bus/usb/003/008
>
>ciao, piem
>
>
>
Thanks for your time piem, very appreciated!

The upstream authours have been informed and are now investigating.

Thanks, Kel.

Revision history for this message
In , Paul Brossier (piem) wrote : Re: [Pkg-spca5xx-devel] Bug#334392: spca5xx-source: does not compile on powerpc

Hi all,

On Tue, Oct 18, 2005 at 12:16:27AM -0700, Stephen Birch wrote:
> Hi Michel:
>
> You may already be aware of this but spca5xx has now made it into
> Debian's testing repository. Kel and I are working to get the
> toolchain (spcaview etc) into Debian as well, that should happen
> fairly soon.

great. thanks for your work.

> Some bad news though, we have received a bug report from a power PC
> user (Paul Brossier), it looks like the driver doesnt compile on
> powerpc. Do you have a co-maintainer versed on powerpc that can look
> into this for us by any chance?

i just got my ibook back from repair. spca5xx 20051001 compiled fine
there, so the issue only applies to powerpc64 (a 64 bit kernel with a
biarch toolchain), as suggested by gcc errors.

cheers, paul

Revision history for this message
In , Otavio Salvador (otavio) wrote : Re: Bug#334392: [Pkg-spca5xx-devel] Bug#334392: spca5xx-source: does not compile on powerpc

Paul Brossier <email address hidden> writes:

>> Some bad news though, we have received a bug report from a power PC
>> user (Paul Brossier), it looks like the driver doesnt compile on
>> powerpc. Do you have a co-maintainer versed on powerpc that can look
>> into this for us by any chance?
>
> i just got my ibook back from repair. spca5xx 20051001 compiled fine
> there, so the issue only applies to powerpc64 (a 64 bit kernel with a
> biarch toolchain), as suggested by gcc errors.

Do you or someone else can provide an access to a powerpc64 machine to
me to test and fix the problem?

--
        O T A V I O S A L V A D O R
---------------------------------------------
 E-mail: <email address hidden> UIN: 5906116
 GNU/Linux User: 239058 GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."

Revision history for this message
In , Otavio Salvador (otavio) wrote : retitle 334392 to does not compile in powerpc64

# Automatically generated email from bts, devscripts version 2.9.8
retitle 334392 does not compile in powerpc64

Revision history for this message
In , Otavio Salvador (otavio) wrote : Can you recheck it?

Hello,

I uploaded a new version of spca5xx yestarday to Debian (20051101-1)
and it should enters archive today. Would be good if you could test it
and check if this problem still exist.

If you can confirm that, I'll try to catch access to any machine of
powerpc64 for testing.

Thanks,

--
        O T A V I O S A L V A D O R
---------------------------------------------
 E-mail: <email address hidden> UIN: 5906116
 GNU/Linux User: 239058 GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."

Revision history for this message
In , michel Xhaard (mxhaard) wrote : Re: [Pkg-spca5xx-devel] Bug#334392: Can you recheck it?

Le Mardi 1 Novembre 2005 12:15, Otavio Salvador a écrit :
> Hello,
>
> I uploaded a new version of spca5xx yestarday to Debian (20051101-1)
> and it should enters archive today. Would be good if you could test it
> and check if this problem still exist.
>
> If you can confirm that, I'll try to catch access to any machine of
> powerpc64 for testing.
>
> Thanks,
I did not change the MR97311 code so i think the ppc64 bug is here too, i will
try to change this part for the next release.
Regards
--
Michel Xhaard
http://mxhaard.free.fr

Revision history for this message
In , Paul Brossier (piem) wrote : Re: Bug#334392: [Pkg-spca5xx-devel] Bug#334392: Can you recheck it?

On Tue, Nov 01, 2005 at 03:08:50PM +0100, michel Xhaard wrote:
> Le Mardi 1 Novembre 2005 12:15, Otavio Salvador a écrit :
> > Hello,
> >
> > I uploaded a new version of spca5xx yestarday to Debian (20051101-1)
> > and it should enters archive today. Would be good if you could test it
> > and check if this problem still exist.
> >
> > If you can confirm that, I'll try to catch access to any machine of
> > powerpc64 for testing.
> > Thanks,

Otavio, i can't give you access to my machine easily, but debian should
have a few of these available. Not sure which they are though. I guess
Sven Luther is the one to ask.

> I did not change the MR97311 code so i think the ppc64 bug is here too, i will
> try to change this part for the next release.

Ready for testing :-)

bye, piem

Revision history for this message
In , Otavio Salvador (otavio) wrote :

Paul Brossier <email address hidden> writes:

>> > If you can confirm that, I'll try to catch access to any machine of
>> > powerpc64 for testing.
>> > Thanks,
>
> Otavio, i can't give you access to my machine easily, but debian should
> have a few of these available. Not sure which they are though. I guess
> Sven Luther is the one to ask.

I'll try to get access to one machine ASAP.

--
        O T A V I O S A L V A D O R
---------------------------------------------
 E-mail: <email address hidden> UIN: 5906116
 GNU/Linux User: 239058 GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."

Revision history for this message
In , Otavio Salvador (otavio) wrote : Need to detect ppc64 arch

Hello,

I tested current code and it doesn't fail to build anymore but we have
another bug: How to detect ppc64 arch and kernel and then to use -m64
as gcc option to compile?

Since I don't have root permission on test machine, I cannot test
module-assistant with spca5xx-source package from sid but would be
good if you could do a test and check if it's working.

--
        O T A V I O S A L V A D O R
---------------------------------------------
 E-mail: <email address hidden> UIN: 5906116
 GNU/Linux User: 239058 GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."

Revision history for this message
In , Otavio Salvador (otavio) wrote : Checked and isn't our fault anymore

reassign 334392 module-assistant
thanks

----
Hello folks,

I got module-assistant to work in a test machine and it fail to detect
the need of -m64 gcc param. So this isn't our fault anymore and I'm
reassign this to it.

--
        O T A V I O S A L V A D O R
---------------------------------------------
 E-mail: <email address hidden> UIN: 5906116
 GNU/Linux User: 239058 GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."

Revision history for this message
In , Paul Brossier (piem) wrote : Re: Bug#334392: Checked and isn't our fault anymore

Hi,

On Thu, Nov 03, 2005 at 06:29:33PM -0200, Otavio Salvador wrote:
> reassign 334392 module-assistant
> thanks
>
> ----
> Hello folks,
>
> I got module-assistant to work in a test machine and it fail to detect
> the need of -m64 gcc param. So this isn't our fault anymore and I'm
> reassign this to it.

indeed. as a workaround, i could compile on 2.6.14 changing the line 54
in the Makefile of spca5xx-source 20051101-1 to

        $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) CC="$(CC) -m64" modules

and the module seems to work fine now, sorry for the noise :)

thanks, piem

Revision history for this message
In , Otavio Salvador (otavio) wrote :

Paul Brossier <email address hidden> writes:

>> I got module-assistant to work in a test machine and it fail to detect
>> the need of -m64 gcc param. So this isn't our fault anymore and I'm
>> reassign this to it.
>
> indeed. as a workaround, i could compile on 2.6.14 changing the line 54
> in the Makefile of spca5xx-source 20051101-1 to
>
> $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) CC="$(CC) -m64" modules
>
> and the module seems to work fine now, sorry for the noise :)

No problem. :-D

We now need to identify a way to discover if a kernel was built using
64 or 32 bits mode. So we can fix it on module-assistant.

--
        O T A V I O S A L V A D O R
---------------------------------------------
 E-mail: <email address hidden> UIN: 5906116
 GNU/Linux User: 239058 GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

Running this:

% sudo module-assistant -t auto-install openafs

I get:

/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h:55:2: error: #error ▒
                         │ Not sure what to do about rlim (should be in the Linux task struct ▒
                         │ somewhere....)

Revision history for this message
Björn Torkelsson (torkel) wrote :

The error is a more or less generic error. Any chance that you can try to find the real error from the module-assistant log file (should be in /var/cache/modass unless you have specified a different location) and/or the config.log?

By the way. What kernel and what version of openafs?

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

% uname -a
Linux tosha 2.6.15-19-powerpc64-smp #1 SMP Mon Mar 20 17:34:46 UTC 2006 ppc64 GNU/Linux

$ head debian/changelog
openafs (1.4.0-3.1) dapper; urgency=low
.....

I will attach the log now...

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote : module-assistant log file

gzipped

Revision history for this message
Björn Torkelsson (torkel) wrote :

I think I need to have a look at config.log too. It should be /usr/src/modules/openafs/config.log. I don't need the whole log, just the errors it get when it is checking the kernel headers. You can probably search for rlim and see if there are any errors in the lines that follows.

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote : config.log

I attached the whole log.
See, it cannot find rlim... :(

Revision history for this message
Björn Torkelsson (torkel) wrote :

Turned out the bug is actually in module-assistant.

See Debian bug #334392 for a description.

Thanks to BenC for the help finding what the real problem was.

Changed in openafs:
status: Unconfirmed → Confirmed
Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

That's great. So is it goint to be fixed any time soon - what d'you recon?

Revision history for this message
In , Björn Torkelsson (torkel) wrote : Checking if compiling for a 64 bit kernel

Hi,

Shouldn't the following code snippet be enough to make module-assistant
work on PPC64 and hopefully still work on all machines with a 64-bit
kernel. Maybe it should also check if the arch is powerpc just to be on
the safe side?

--- module-assistant-0.10.2/modass/include/generic.make.orig 2006-04-05 10:22:36.000000000 +0200
+++ module-assistant-0.10.2/modass/include/generic.make 2006-04-05 10:23:08.000000000 +0200
@@ -48,6 +48,11 @@
 endif
 endif

+# Check if we are running a 64bit kernel
+ifneq "$(wildcard $(KSRC)/include/linux/config/64bit.h)" ""
+ CFLAGS += -m64
+endif
+
 # Special case gcc 2.7.2
 ifeq ($(CC),gcc-2.7)
 CC = gcc272

It is completely untested though as I don't have access to any PPC64 machine.

/torkel

Revision history for this message
In , Eduard Bloch (edi-gmx) wrote : proper generic 64bit/crosscompilation ARCH/flags selection

Hello,

I would like to get more competent comments from concerned kernel
packages on the issue quoted below. There is already a hack for sparc64:

ifeq ($(ARCH),)
SPARCH=$(shell grep 'CONFIG_SPARC..=y' "$(KSRC)/.config" 2>/dev/null| cut -d= -f1)
#maybe a different ARCH on sparc
ifeq (CONFIG_SPARC32,$(SPARCH))
ARCH :=sparc
export ARCH
endif
ifeq (CONFIG_SPARC64,$(SPARCH))
ARCH :=sparc64
export ARCH
endif
endif

* Björn Torkelsson [Wed, Apr 05 2006, 10:29:41AM]:

> Shouldn't the following code snippet be enough to make module-assistant
> work on PPC64 and hopefully still work on all machines with a 64-bit
> kernel. Maybe it should also check if the arch is powerpc just to be on
> the safe side?

> --- module-assistant-0.10.2/modass/include/generic.make.orig 2006-04-05 10:22:36.000000000 +0200
> +++ module-assistant-0.10.2/modass/include/generic.make 2006-04-05 10:23:08.000000000 +0200
> @@ -48,6 +48,11 @@
> endif
> endif
>
> +# Check if we are running a 64bit kernel
> +ifneq "$(wildcard $(KSRC)/include/linux/config/64bit.h)" ""
> + CFLAGS += -m64
> +endif
> +
> # Special case gcc 2.7.2
> ifeq ($(CC),gcc-2.7)
> CC = gcc272
>
> It is completely untested though as I don't have access to any PPC64 machine.
>
> /torkel
>
>

--
<krid> Hi, gibts einen Kazaa client für GNU?
<panthera> krid: falsche frage
<krid> panthera: Gibt es einen Kazaa client für Debian GNU/Linux? :-)
<panthera> krid: falsche frage ;)
<krid> panthera: Hm. Welche Frage ist die richtige?
<panthera> krid: gibt es einen freien ftp-client fuer linux?

Revision history for this message
In , Goswin von Brederlow (brederlo) wrote :

Eduard Bloch <email address hidden> writes:

> Hello,
>
> I would like to get more competent comments from concerned kernel
> packages on the issue quoted below. There is already a hack for sparc64:

I'm not sure this answeres your problem but in recent kernels the
kernel adds the -m64 flag for amd64 automaticaly. The same should
happen for all other multiarch archs for both -m32 and -m64 as needed.

I also send in a patch for make-kpkg (applied in sid) for multiarch
cross-compile support using --arch <arch> --cross-compile '-'. This
tells make-kpkg to build for the arch but still use the normal "gcc"
instead of defaulting to "arch-os-gnu-gcc" as with other
cross-compiles.

Those two combined make building a kernel for "the other" arch of a
system simple.

MfG
        Goswin

Changed in module-assistant:
status: Unknown → New
Revision history for this message
Daniel T Chen (crimsun) wrote :

Can you reproduce this issue in 8.10 alpha?

Changed in module-assistant:
status: Confirmed → Incomplete
Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

Just installed 8.10.

Used module-assistant. Got build error:

checking for linux kernel module build works... no
configure: error: Fix problem or use --disable-kernel-module...
See `config.log' for more details.
make: *** [configure-stamp] Error 1

I can attach any files from /usr/src/modules/openafs

Changed in module-assistant:
status: Incomplete → Confirmed
Revision history for this message
Björn Torkelsson (torkel) wrote :

Can you please try with the new openafs version available in Intrepid, 1.4.7.dfsg1-6, and post both the build log and module-assistant log file if it still fails.

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

Just tried again. No luck.

$ dpkg-query -s openafs-modules-source | grep Version
Version: 1.4.7.dfsg1-6

Revision history for this message
Sergey V. Udaltsov (sergey-udaltsov) wrote :

modass log

Revision history for this message
Carsten Jacobi (jacobi-de) wrote :

I just built the PPC64 kernel modules, this is the patch that I needed:
--- /usr/src/openafs-1.4.11/include/afs/param.h.orig 2009-11-30 12:45:31.000000000 +0100
+++ /usr/src/openafs-1.4.11/include/afs/param.h 2010-04-23 13:41:58.193201645 +0200
@@ -15,10 +15,10 @@
 #define AFS_LINUX22_ENV 1
 #define AFS_LINUX24_ENV 1
 #define AFS_LINUX26_ENV 1
-#define AFS_PPC_LINUX20_ENV 1
-#define AFS_PPC_LINUX22_ENV 1
-#define AFS_PPC_LINUX24_ENV 1
-#define AFS_PPC_LINUX26_ENV 1
+#define AFS_PPC64_LINUX20_ENV 1
+#define AFS_PPC64_LINUX22_ENV 1
+#define AFS_PPC64_LINUX24_ENV 1
+#define AFS_PPC64_LINUX26_ENV 1
 #define AFS_NONFSTRANS 1

 #define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
@@ -26,6 +26,7 @@
 #define AFS_64BIT_ENV 1
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1
+#define AFS_LINUX_64BIT_KERNEL 1
 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
 #define AFS_MAXVCOUNT_ENV 1

Revision history for this message
Carsten Jacobi (jacobi-de) wrote :

Ok, though the module built it wouldn't load into the kernel because an object file was missing in the link step and though a symbol was missing. As a quintessence, you'll need one more patch so that the object "osi_flush.o" is also built and included into the kernel module:
--- /usr/src/openafs-1.4.11/src/libafs/Makefile.in.orig 2009-11-30 12:45:32.000000000 +0100
+++ /usr/src/openafs-1.4.11/src/libafs/Makefile.in 2010-04-23 21:08:40.053200388 +0200
@@ -21,6 +21,7 @@
  osi_probe.o \
  osi_sleep.o \
  osi_syscall.o \
+ osi_flush.o \
  osi_sysctl.o \
  osi_vfsops.o \
  osi_vm.o \

But finally, that's it! The module now compiles fine and is also loaded into the kernel, my openafs-client is up and running and I'm already using it as I write down these lines.
I still have no clue where these changes must be applied on the openafs-package source so that they turn out at the right spot for the openafs-modules-dkms package for PowerPC machines.

Changed in module-assistant (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.