Summary: | fcpci-0.1-ri does not emerge with kernel 2.6.31 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matthias M Weber <mmw> |
Component: | Current packages | Assignee: | Stefan Briesenick (RETIRED) <sbriesen> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | bugzilla.gentoo.dominik, bugzilla, davech, gentoo, knoeferl, mail, Manfred.Knick, net-dialup, sven.koehler |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch fixing compilations issues
ebuild using striped patch of Andreas Dröscher ebuild using striped patch of Andreas Dröscher striped version of Andreas Dröscher patch patch for fcpci-0.1-r1.ebuild fcpci Patch for Kernel 2.6.34 fcpci ebuild for kernels >= 2.6.34 |
Description
Matthias M Weber
2009-09-11 08:28:53 UTC
Should be a simple fix -- capi_ctr_reseted was renamed to capi_ctr_down in 2.6.31 Assigning to fcpci maintainers. Created attachment 207734 [details, diff]
patch fixing compilations issues
I am not 100% sure that the "atomic_xchg" part of the patch is always needed.
at least it was on my system.
Created attachment 208387 [details]
ebuild using striped patch of Andreas Dröscher
Created attachment 208388 [details]
ebuild using striped patch of Andreas Dröscher
Created attachment 208389 [details, diff]
striped version of Andreas Dröscher patch
I created an ebuild using a striped version Andreas Dröschers patch. The original patch failed because of the "atomic_xchg" part and I was unable to locate this code part. I also remove the ${DISTDIR} from rpm_unpack due to the QA notice. P.S.: Sorry for double posting the build but an interlan error occured while uploading and I pressed reload... with Jan Günter striped patch, I get:
* Applying fritz_pci.diff ... [ ok ]
* Applying fritz_irq.diff ... [ ok ]
* Applying fritz_driver_init.diff ... [ ok ]
* Converting src/Makefile to use M= instead of SUBDIRS= ... [ ok ]
* Localize symbols in fcpci-lib.o ...
* Applying 0.1-kernel-2.6.31.patch ... [ ok ]
>>> Source unpacked in /var/tmp/portage/net-dialup/fcpci-0.1-r2/work
>>> Compiling source in /var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz ...
* Preparing fcpci module
make HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= KDIR=/usr/src/linux LIBDIR=/var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src all
make -C /usr/src/linux M=/var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src modules
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo-r4'
CC [M] /var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src/main.o
In file included from /var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src/queue.h:27,
from /var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src/tables.h:31,
from /var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src/driver.h:30,
from /var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src/main.c:44:
/var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src/tools.h:75: error: conflicting types for 'atomic_xchg'
/usr/src/linux-2.6.31-gentoo-r4/arch/x86/include/asm/atomic_32.h:215: error: previous definition of 'atomic_xchg' was here
make[2]: *** [/var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src/main.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-dialup/fcpci-0.1-r2/work/fritz/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r4'
make: *** [fcpci.ko] Error 2
sigh I had forgotten to update the linux-headers. That caused weird "atomic_xchg" error. shame on me New versions for 2.6.31.5 ( Open SuSE 11.2 ) have been published on 13-Nov-2009 : http://opensuse.foehr-it.de/rpms/11_2/2.6.31.5-0.1/ Created attachment 212408 [details, diff]
patch for fcpci-0.1-r1.ebuild
Applying this patch I were able to compile the driver against a 2.6.30 kernel as well as a 2.6.31 kernel. It depends on the rpm from #10 and uses the fact, that the version from SuSE 11.2 is a superset of that one from SuSE 10.3.
So far I could only test it on amd64 and I don't know whether it also works for x86.
I tested http://bugs.gentoo.org/attachment.cgi?id=212408&action=view on x86. You have to add 5 to PAT at line 37: local BIT="" PAT="012345" Patch 5 is tools2.diff which is commenting out atomic_xchg (In reply to comment #12) Works fine and amd64. > I tested http://bugs.gentoo.org/attachment.cgi?id=212408&action=view on x86. > You have to add 5 to PAT at line 37: > > local BIT="" PAT="012345" > > Patch 5 is tools2.diff which is commenting out atomic_xchg > Abandoned upstream. Won't work with current kernels. Closed Source. Created attachment 245318 [details, diff]
fcpci Patch for Kernel 2.6.34
Created attachment 247474 [details]
fcpci ebuild for kernels >= 2.6.34
Here is an ebuild i am using for kernels >= 2.6.34.
greetings
|