Didnt compile against kernel 2.4.26. Patched the defs.h file to compile again. Finde all changed files attached.
Created attachment 30682 [details] New ebuild to patch the defs.h
Created attachment 30683 [details, diff] Patch for the defs.h to compile with kernel 2.4.26
The patch works for me. (Without it doesn't compile.) I changed the ebuild to use: inherit eutils flag-o-matic kernel-mod and epatch ${FILESDIR}/defs.h.patch
Created attachment 30773 [details, diff] New ebuild to compile the fcpci module Bevor it might compile but the module wont load. This should be fixed now.
Comment on attachment 30773 [details, diff] New ebuild to compile the fcpci module Added a line to actually make things work. Bevor it might compile but the module wont load. Thx to tove
Benjamin, i hope i didn't confuse you. 1) "inherit" should be in nearly all cases the first line in an ebuild. You should have read my comment as: substitute in line 4 "inherit flag-o-matic kernel-mod" with "inherit eutils flag-o-matic kernel-mod". 2) The src_unpack function looks like this in my ebuild (i only replaced your "patch -p1 <${FILESDIR}/defs.h.patch" with "epatch ${FILESDIR}/defs.h.patch". | unpack ${A} | cd ${S} | epatch ${FILESDIR}/defs.h.patch | sed -i -e "s/\`uname -r\`/${KV_VERSION_FULL}/" \ Maybe a dev wants to tell me that this is not necessary at all? 3) You write "Added a line to actually make things work. Bevor it might compile but the module wont load." Your first ebuild works for me and the fcpci.o does load.
Will be fixed in bug 50716 *** This bug has been marked as a duplicate of 50716 ***
please reopen -- as #29667 says fcpci in the tree is broken.