Announcement

News: Chakra 2013.03 Benz Released: Release Notes - Download - A good place to start: Beginner's Guide - For pasting any code/info please use paste.chakra. Please read Forum Etiquette.

#1 2011-02-18 00:14:40

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

[solved] ndiswrapper build issues with kernel 2.6.38

phil@[chroot]:~/core-testing/ndiswrapper$ ../fakeuname -v 2.6.38 ../makepkg -s
==> Making package: ndiswrapper 1.56-12 (Thu Feb 17 23:25:02 UTC 2011)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found ndiswrapper-1.56.tar.gz
  -> Found kernel-2.6.35.patch
  -> Found kernel-2.6.36.patch
==> Validating source files with md5sums...
    ndiswrapper-1.56.tar.gz ... Passed
    kernel-2.6.35.patch ... Passed
    kernel-2.6.36.patch ... Passed
==> Extracting Sources...
  -> Extracting ndiswrapper-1.56.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
patching file usb.c
patching file wrapndis.c
patching file loader.c
make -C /usr/src/linux-2.6.38-CHAKRA M=/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver
make[1]: Entering directory `/usr/src/linux-2.6.38-CHAKRA'
  LD      /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/built-in.o
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/crt_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/hal_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndis_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_io_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/rtl_exports.h
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/crt.o
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/usb_exports.h
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/hal.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/iw_ndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/loader.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_io.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/pe_linker.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/pnp.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/proc.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/rtl.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapmem.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapper.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/usb.o
In file included from include/linux/jhash.h:27:0,
                 from include/net/inet_sock.h:23,
                 from include/net/inet_connection_sock.h:23,
                 from include/linux/tcp.h:211,
                 from /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapndis.c:23:
include/linux/unaligned/packed_struct.h:6:29: error: expected ')' before '__attribute__'
include/linux/unaligned/packed_struct.h:6:29: error: expected identifier or '(' before ')' token
include/linux/unaligned/packed_struct.h:7:29: error: expected ')' before '__attribute__'
include/linux/unaligned/packed_struct.h:7:29: error: expected identifier or '(' before ')' token
include/linux/unaligned/packed_struct.h:8:29: error: expected ')' before '__attribute__'
include/linux/unaligned/packed_struct.h:8:29: error: expected identifier or '(' before ')' token
make[2]: *** [/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapndis.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38-CHAKRA'
make: *** [modules] Error 2
    Aborting...
phil@[chroot]:~/core-testing/ndiswrapper$

Seems we have to patch again ...

Offline

#2 2011-02-18 23:29:27

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved] ndiswrapper build issues with kernel 2.6.38

Some quotes from our IRC channel:

[23:38:57] <STiAT> philm: i'm betting my money on the packed_struct.h which actually includes code and functions and that it broke with 2.6.38, getting a kernel git clone
[23:39:10] <STiAT> would be an error in the tcp stack of the kernel then
[23:39:25] <philm> so it is a kernel issue?
[23:39:34] <STiAT> looks like it
[23:40:06] <STiAT> the ndiswrapper fails on including tcp
[23:40:09] <philm> so wait and drink tee
[23:41:20] <STiAT> yea, but i wonder, because theoretically the intel drivers use this as well
[23:41:25] <STiAT> and if they do not fail .. it's strange
[23:41:38] <STiAT> so i check the code first ^^
[23:42:10] <philm> ndis?
[23:42:23] <STiAT> no, kernel
[23:42:33] <STiAT> getting a clone looking for what changed there
[23:42:41] <philm> kk. thx

Offline

#3 2011-02-18 23:49:10

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved] ndiswrapper build issues with kernel 2.6.38

Seems to be kernel after all:

[00:00:03] <STiAT> philm: it's tthe following patch by andrew which breaks it
[00:00:04] <STiAT> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=1725310324163f56fea71bb77c5d6e88f9ce4192
[00:00:09] <philm> ok ...
[00:00:47] <STiAT> which was made because of this patch
[00:00:48] <STiAT> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=4e06fd14d5fa78826397c891654a37e5a36ee827
[00:00:50] <STiAT> which will fail either :D

Offline

#4 2011-02-19 00:08:59

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved] ndiswrapper build issues with kernel 2.6.38

sed -i -e "s~#include <linux/tcp.h>~#include <linux/unaligned/packed_struct.h>~" wrapndis.c

phil@[chroot]:~/core-testing/ndiswrapper$ ../makepkg
==> Making package: ndiswrapper 1.56-12 (Fri Feb 18 23:19:33 UTC 2011)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found ndiswrapper-1.56.tar.gz
  -> Found kernel-2.6.35.patch
  -> Found kernel-2.6.36.patch
==> Validating source files with md5sums...
    ndiswrapper-1.56.tar.gz ... Passed
    kernel-2.6.35.patch ... Passed
    kernel-2.6.36.patch ... Passed
==> Extracting Sources...
  -> Extracting ndiswrapper-1.56.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
patching file usb.c
patching file wrapndis.c
patching file loader.c
make -C /usr/src/linux-2.6.38-CHAKRA M=/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver
make[1]: Entering directory `/usr/src/linux-2.6.38-CHAKRA'
  LD      /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/built-in.o
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/crt_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/hal_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndis_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_io_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/rtl_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/usb_exports.h
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/crt.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/hal.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/iw_ndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/loader.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_io.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/pe_linker.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/pnp.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/proc.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/rtl.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapmem.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapndis.o
In file included from /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapndis.c:23:0:
include/linux/unaligned/packed_struct.h:6:29: error: expected ')' before '__attribute__'
include/linux/unaligned/packed_struct.h:6:29: error: expected identifier or '(' before ')' token
include/linux/unaligned/packed_struct.h:7:29: error: expected ')' before '__attribute__'
include/linux/unaligned/packed_struct.h:7:29: error: expected identifier or '(' before ')' token
include/linux/unaligned/packed_struct.h:8:29: error: expected ')' before '__attribute__'
include/linux/unaligned/packed_struct.h:8:29: error: expected identifier or '(' before ')' token
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapper.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/usb.o
make[2]: *** [/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapndis.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38-CHAKRA'
make: *** [modules] Error 2
    Aborting...

Offline

#5 2011-02-19 00:40:39

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved] ndiswrapper build issues with kernel 2.6.38

After testing lots of options we still don't have an answer for this issue. Time will tell ...

[00:37:32] <philm> STiAT: I tested some files also linked to an older tcp.h with the same errors
[00:41:46] <STiAT> which files? which kernel versions?
[00:42:09] <philm> well I did 37.1
[00:42:24] <philm> also tested packed_struck.h
[00:42:26] <philm> from that one
[00:42:28] <philm> same issue
[00:42:53] <philm> maybe some patches don't work
[00:43:15] <philm> /home/phil/core-testing/ndiswrapper/packed_struct.h:6:44: error: expected ')' before '__attribute__'
[00:43:26] <STiAT> hmh, could be another problem related
[00:43:34] <philm> seems so
[00:43:37] <STiAT> which kernel includes do you have INSTALLED in your path?
[00:43:54] <STiAT> so /usr/include/linux
[00:43:59] <philm> well it is just the one file
[00:44:06] <STiAT> this could be the problem, since they include #include <linux/>
[00:44:08] <STiAT> and not ""
[00:44:09] <philm> in chroot it is 38-rc5
[00:44:32] <STiAT> mäh, i don't want to set up a chroot now :D
[00:44:41] <STiAT> gotta' work in 30 minutes :p
[00:44:42] <philm> well on my host the same
[00:45:32] <philm> let me check some
[00:49:33] <philm> /usr/src/linux-2.6.37-CHAKRA/include/linux/tcp.h are the headers in stable
[00:50:04] <STiAT> i just reverted the changes and have no success as well ..
[00:50:10] <philm> /usr/src/linux-2.6.38-CHAKRA/include/linux/tcp.h
[00:50:21] <philm> well so it is ndis after all
[00:50:30] <STiAT> ls
[00:50:33] <philm> anyway. thx for trying
[00:50:37] <philm> yep ls
[00:51:10] <philm> time will come that somebody will fix ndis
[00:51:16] <philm> not so important

Offline

#6 2011-02-19 04:17:33

STiAT
Chakra Developer
Registered: 2008-12-23
Posts: 332

Re: [solved] ndiswrapper build issues with kernel 2.6.38

Still, I won't bet my money on ndiswrapper, but on the recent changes in the kernel, since it's the problem of including kernel headers (tcp.h fails because of packed_struct.h, I don't see the error though, but I often don't understand kernel code big_smile) ... I'll go for a chroot with 3.6.38-rc5 before asking the official lists though...

Last edited by STiAT (2011-02-19 04:20:51)

Offline

#7 2011-02-19 04:55:46

manutortosa
Core-Team - SysAdmin
From: Reus - Spain
Registered: 2009-03-22
Posts: 1,884

Re: [solved] ndiswrapper build issues with kernel 2.6.38

My build for x86_64 was worng. i need some more time for it...

Offline

#8 2011-02-19 08:26:13

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved] ndiswrapper build issues with kernel 2.6.38

no rush manu. You've all the time you need.

Offline

#9 2011-02-20 00:36:55

STiAT
Chakra Developer
Registered: 2008-12-23
Posts: 332

Re: [solved] ndiswrapper build issues with kernel 2.6.38

Hmh, strangely, we seem to have a problem with the scope of the __attribute__((packed)).

For this I know the kernel by far too less (and probably my c knowledge is not that good as well .. well, I'm quite sure it is not), I asked Will Newton and Andrew Morton for advice directly, since it seems not to be a real kernel bug, but rather a problem in combination of the includes of ndiswrapper, I did not post it as a kernel bug.

Since this two guys definitely know what they're doing, and had the last commits on the file, they probably know which scope changed (at least they seem to be on this topic). I even went that far to take the whole code changes of the .37 series to .38 series, but could not find anything of relevance within the past 6 hours.

Check back soon ..

Last edited by STiAT (2011-02-20 00:37:35)

Offline

#10 2011-02-20 01:00:10

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved] ndiswrapper build issues with kernel 2.6.38

Thx for digging so deep into it. I moved the kernel to our new unstable repository for now.

Offline

#11 2011-02-20 22:57:26

STiAT
Chakra Developer
Registered: 2008-12-23
Posts: 332

Re: [solved] ndiswrapper build issues with kernel 2.6.38

Okay, I got new C Knowledge by today, what makes it even more strange, and not clearer...

__attribute__((packed)) is a gcc feature, not a kernel feature, and packs c structures up, seems to be something actually referring to memory spacing on different architectures... although, I didn't fully understand that part, and the differences of __attribute__((packed)) and __attribute((__packed__))

This means, that there should never ever be compile errors unless glibc / libtool changed and the gcc implementation is bugged. Although, what I wonder is, why the kernel compiles then? tcp.h must be included somewhere....  so it basically can not be that it fails.

The gentoo guys tell that the ndiswrapper trunk version works, trying to get a patch out of that information.

[edit] try this patch, it "works for me", it seems as if the winnt_types.h of ndiswrapper conflicted with the implementation of the 2.6.38 kernel in the __attribute__((packed)) argument since they reimplement packed, which caused a recursion in packed_struct.h which gcc could not handle.

--- ndiswrapper-1.56.old/driver/wrapndis.c   (revision 2728)
+++ ndiswrapper-1.56/driver/wrapndis.c   (revision 2729)
@@ -13,16 +13,16 @@
  *
  */

+#include <linux/inetdevice.h>
+#include <linux/ip.h>
+#include <linux/tcp.h>
+#include <linux/udp.h>
+#include <linux/in.h>
 #include "ndis.h"
 #include "iw_ndis.h"
 #include "pnp.h"
 #include "loader.h"
 #include "wrapndis.h"
-#include <linux/inetdevice.h>
-#include <linux/ip.h>
-#include <linux/tcp.h>
-#include <linux/udp.h>
-#include <linux/in.h>
 #include "wrapper.h"

 /* Functions callable from the NDIS driver */

Last edited by STiAT (2011-02-21 00:08:31)

Offline

#12 2011-02-20 23:13:06

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved] ndiswrapper build issues with kernel 2.6.38

Long life gentoo wink

Can't be our toolchar:

phil@[chroot]:~/core-testing/ndiswrapper$ ../makepkg
==> Making package: ndiswrapper 1.56-11 (Sun Feb 20 22:24:06 UTC 2011)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found ndiswrapper-1.56.tar.gz
  -> Found kernel-2.6.35.patch
  -> Found kernel-2.6.36.patch
==> Validating source files with md5sums...
    ndiswrapper-1.56.tar.gz ... Passed
    kernel-2.6.35.patch ... Passed
    kernel-2.6.36.patch ... Passed
==> Extracting Sources...
  -> Extracting ndiswrapper-1.56.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
patching file usb.c
patching file wrapndis.c
patching file loader.c
make -C /usr/src/linux-2.6.37-CHAKRA M=/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver
make[1]: Entering directory `/usr/src/linux-2.6.37-CHAKRA'
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/usb_exports.h
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/crt.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/hal.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/iw_ndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/loader.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_io.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/pe_linker.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/pnp.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/proc.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/rtl.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapmem.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapper.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/usb.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/divdi3.o
  LD [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndiswrapper.mod.o
  LD [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndiswrapper.ko
make[1]: Leaving directory `/usr/src/linux-2.6.37-CHAKRA'
make -C /usr/src/linux-2.6.37-CHAKRA M=/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver
make[1]: Entering directory `/usr/src/linux-2.6.37-CHAKRA'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-2.6.37-CHAKRA'
echo /home/phil/core-testing/ndiswrapper/pkg/lib/modules/2.6.37-CHAKRA/misc
/home/phil/core-testing/ndiswrapper/pkg/lib/modules/2.6.37-CHAKRA/misc
mkdir -p /home/phil/core-testing/ndiswrapper/pkg/lib/modules/2.6.37-CHAKRA/misc
install -m 0644 ndiswrapper.ko /home/phil/core-testing/ndiswrapper/pkg/lib/modules/2.6.37-CHAKRA/misc
/sbin/depmod -a 2.6.37-CHAKRA -b /home/phil/core-testing/ndiswrapper/pkg
==> Tidying install...
  -> Removing doc files...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Adding install script...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ndiswrapper 1.56-11 (Sun Feb 20 22:24:18 UTC 2011)
phil@[chroot]:~/core-testing/ndiswrapper$

Offline

#13 2011-02-20 23:17:36

STiAT
Chakra Developer
Registered: 2008-12-23
Posts: 332

Re: [solved] ndiswrapper build issues with kernel 2.6.38

Amnon82 wrote:

Long life gentoo wink

True, for sure one of the best technical communities around.

try the above patch please (i edited my post).

Patchline:   patch -Np2 -i $startdir/kernel-2.6.38.patch

If you name it that way of course big_smile

Last edited by STiAT (2011-02-21 01:52:08)

Offline

#14 2011-02-21 08:22:07

philm
Manjaro Linux Developer
From: Germany, Garching
Registered: 2009-04-16
Posts: 4,508
Website

Re: [solved] ndiswrapper build issues with kernel 2.6.38

You just got me !!!. Simple things are hard to find.

phil@[chroot]:~/core-testing/ndiswrapper$ ../makepkg
==> Making package: ndiswrapper 1.56-12 (Mon Feb 21 07:33:25 UTC 2011)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found ndiswrapper-1.56.tar.gz
  -> Found kernel-2.6.35.patch
  -> Found kernel-2.6.36.patch
  -> Found kernel-2.6.38.patch
==> Validating source files with md5sums...
    ndiswrapper-1.56.tar.gz ... Passed
    kernel-2.6.35.patch ... Passed
    kernel-2.6.36.patch ... Passed
    kernel-2.6.38.patch ... Passed
==> Extracting Sources...
  -> Extracting ndiswrapper-1.56.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
patching file usb.c
patching file wrapndis.c
patching file loader.c
patching file wrapndis.c
make -C /usr/src/linux-2.6.38-CHAKRA M=/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver
make[1]: Entering directory `/usr/src/linux-2.6.38-CHAKRA'
  LD      /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/built-in.o
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/crt_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/hal_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndis_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_io_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/rtl_exports.h
  MKEXPORT /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/usb_exports.h
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/crt.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/hal.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/iw_ndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/loader.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ntoskernel_io.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/pe_linker.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/pnp.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/proc.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/rtl.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapmem.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapndis.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/wrapper.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/usb.o
  CC [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/divdi3.o
  LD [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndiswrapper.mod.o
  LD [M]  /home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver/ndiswrapper.ko
make[1]: Leaving directory `/usr/src/linux-2.6.38-CHAKRA'
make -C /usr/src/linux-2.6.38-CHAKRA M=/home/phil/core-testing/ndiswrapper/src/ndiswrapper-1.56/driver
make[1]: Entering directory `/usr/src/linux-2.6.38-CHAKRA'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-2.6.38-CHAKRA'
echo /home/phil/core-testing/ndiswrapper/pkg/lib/modules/2.6.38-CHAKRA/misc
/home/phil/core-testing/ndiswrapper/pkg/lib/modules/2.6.38-CHAKRA/misc
mkdir -p /home/phil/core-testing/ndiswrapper/pkg/lib/modules/2.6.38-CHAKRA/misc
install -m 0644 ndiswrapper.ko /home/phil/core-testing/ndiswrapper/pkg/lib/modules/2.6.38-CHAKRA/misc
/sbin/depmod -a 2.6.38-CHAKRA -b /home/phil/core-testing/ndiswrapper/pkg
==> Tidying install...
  -> Removing doc files...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Adding install script...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ndiswrapper 1.56-12 (Mon Feb 21 07:33:42 UTC 2011)
phil@[chroot]:~/core-testing/ndiswrapper$

Offline

Board footer

Powered by FluxBB 1.4.8