Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Compile error wrapndis.c:

Help
jtp2r
2011-05-21
2012-10-06
  • jtp2r
    jtp2r
    2011-05-21

    Hi sorry to post this bust after 24 hours of trying to get my wna3100 to work
    with backtrack 5 I am very close to giving up.

    I have been following various forum posts etc trying to get this resolved and
    as soon as I solve one error another one comes up, currently I am unable to
    compile ndiswrapper because of an error in erapandis.c please see the details
    below

    oot@bt:~/ndiswrapper-1.56# make
    make -C driver
    make: Entering directory /root/ndiswrapper-1.56/driver' make -C /usr/src/linux-source-2.6.38 M=/root/ndiswrapper-1.56/driver make: Entering directory/usr/src/linux-source-2.6.38'

    WARNING: Symbol version dump /usr/src/linux-source-2.6.38/Module.symvers
    is missing; modules will have no dependencies and modversions.

    CC /root/ndiswrapper-1.56/driver/wrapndis.o
    In file included from include/linux/jhash.h:27,
    from include/net/inet_sock.h:23,
    from include/net/inet_connection_sock.h:23,
    from include/linux/tcp.h:211,
    from /root/ndiswrapper-1.56/driver/wrapndis.c:23:
    include/linux/unaligned/packed_struct.h:6: error: expected ‘)’ before
    attribute
    include/linux/unaligned/packed_struct.h:6: error: expected identifier or ‘(’
    before ‘)’ token
    include/linux/unaligned/packed_struct.h:7: error: expected ‘)’ before
    attribute
    include/linux/unaligned/packed_struct.h:7: error: expected identifier or ‘(’
    before ‘)’ token
    include/linux/unaligned/packed_struct.h:8: error: expected ‘)’ before
    attribute
    include/linux/unaligned/packed_struct.h:8: error: expected identifier or ‘(’
    before ‘)’ token
    make: Error 1
    make:
    Error 2
    make: Leaving directory /usr/src/linux-source-2.6.38' make: *** Error 2 make: Leaving directory/root/ndiswrapper-1.56/driver'
    make: *** Error 2

    Thanks

     
  • Sinex
    Sinex
    2011-06-21

    Hey, I'm getting the same errors as you are after running the patches.

    Did you have any luck with yours?

     
  • Mike Martoncik
    Mike Martoncik
    2011-06-25

    Im getting the same problem

    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/mike/Work/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[3]: *** [/home/mike/Work/ndiswrapper-1.56/driver/wrapndis.o] Error 1
    make[2]: *** [_module_/home/mike/Work/ndiswrapper-1.56/driver] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/home/mike/Work/ndiswrapper-1.56/driver'
    make: *** [all] Error 2