pwc
[Top] [All Lists]

[pwc] SOLUTION FOUND: Can't compile pwc-10.0.12-rc1 on RHEL WS v4 kernel

To:
Subject: [pwc] SOLUTION FOUND: Can't compile pwc-10.0.12-rc1 on RHEL WS v4 kernel 2.6.9-42.0.2.EL
From: Peter Baitz <>
Date: Tue, 12 Sep 2006 10:34:02 -0700 (PDT)
Sorry, I found the solution... this worked for me too.
-Peter

################################################
Werner Laub w.laub at t-online.de
Mon Jul 10 21:25:00 CEST 2006

    * Previous message: [pwc] Re: pwc Digest, Vol 19,
Issue 1
    * Next message: [pwc] PWC + FC5
    * Messages sorted by: [ date ] [ thread ] [
subject ] [ author ]

Hi,
I had the exactly same problem compiling
pwc-10.0.12-rc1 with kernel 2.6.8-24.
I did not spent much time to investigate this problem.
The error message
tells what to do..
...
/home/pete/pwc-10.0.12-rc1/pwc-ioctl.h:60: error:
redefinition of typedef
'__le16'
include/linux/types.h:149: error: previous declaration
of '__le16' was here
...
If it is previously defined I don´t need it in
pwc-ioctl.h,
I fixed it for me this way ;-)
...
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 10)
/* Compatibility for older kernel
typedef __u16 __le16;
*/
#endif
...
Hope this helps.
Werner
#######################################


--- Peter Baitz <> wrote:

> Hello,
>
> I just want to make the pwc module, not patch the
> kernel. But having trouble with 'make' in the
> ./pwc-10.0.12-rc1 directory, as follows:
>
>  pwc-10.0.12-rc1]# make
>
> make -C /lib/modules/2.6.9-42.0.2.EL/source
> SUBDIRS=/opt/pwc-10.0.12-rc1 modules
> make[1]: Entering directory
> `/usr/src/kernels/2.6.9-42.0.2.EL-i686'
>   CC [M]  /opt/pwc-10.0.12-rc1/pwc-if.o
> In file included from
> /opt/pwc-10.0.12-rc1/pwc-uncompress.h:35,
>                  from /opt/pwc-10.0.12-rc1/pwc.h:40,
>                  from
> /opt/pwc-10.0.12-rc1/pwc-if.c:69:
> /opt/pwc-10.0.12-rc1/pwc-ioctl.h:60: error:
> redefinition of typedef '__le16'
> include/linux/types.h:149: error: previous
> declaration
> of '__le16' was here
> make[2]: *** [/opt/pwc-10.0.12-rc1/pwc-if.o] Error 1
> make[1]: *** [_module_/opt/pwc-10.0.12-rc1] Error 2
> make[1]: Leaving directory
> `/usr/src/kernels/2.6.9-42.0.2.EL-i686'
> make: *** [all] Error 2
>
>
> Here's the kernel I am running on RHELinux WS v4:
>
>  pwc-10.0.12-rc1]# uname -a
> Linux baitzphws0.jmu.edu 2.6.9-42.0.2.EL #1 Thu Aug
> 17
> 17:36:53 EDT 2006 i686 i686 i386 GNU/Linux
>
>
> Please advise?
>
> Thank you,
> Peter
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> _______________________________________________
> pwc mailing list
> 
> http://lists.saillard.org/mailman/listinfo/pwc
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
pwc mailing list

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU