NetBSD Problem Report #42970

From www@NetBSD.org  Sun Mar 14 12:56:46 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 1E2C663B86C
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Mar 2010 12:56:46 +0000 (UTC)
Message-Id: <20100314125645.E0E7463B11D@www.NetBSD.org>
Date: Sun, 14 Mar 2010 12:56:45 +0000 (UTC)
From: abelmorabito@yahoo.com.ar
Reply-To: abelmorabito@yahoo.com.ar
To: gnats-bugs@NetBSD.org
Subject: Compile Realtek 8185 wireless driver error
X-Send-Pr-Version: www-1.0

>Number:         42970
>Category:       kern
>Synopsis:       Compile Realtek 8185 wireless driver error
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 14 13:00:00 +0000 2010
>Closed-Date:    Mon Jan 31 03:21:52 +0000 2011
>Last-Modified:  Mon Jan 31 03:21:52 +0000 2011
>Originator:     Abel Morabito
>Release:        5.0.2
>Organization:
Personal
>Environment:
NetBSD  5.0.2 NetBSD 5.0.2 (GENERIC) #0: Sat Feb  6 17:53:27 UTC 2010  builds@b7.netbsd.org:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
I'm trying to compile the Realtek 8185 driver for a 802.11b/g 54M Cardbus/PCI Wireless LAN Network Adapter. I've taken original drivers from the vendor CDROM and followed NetBSD documentation on compiling a new kernel.

# ndiscvt -i net8185.inf -s rtl8185.sys -o ndis_driver_data.h; etc...

This is the error I get at compile time:

cc1: warnings being treated as errors
../../../../dev/if_ndis/if_ndis.c: In function 'ndis_detach':
../../../../dev/if_ndis/if_ndis.c:1187: warning: passing argument 1 of 'mutex_destroy' from incompatible pointer type
*** Error code 1

Regards,

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/42970: Compile Realtek 8185 wireless driver error
Date: Sun, 14 Mar 2010 18:17:52 +0000

 On Sun, Mar 14, 2010 at 01:00:01PM +0000, abelmorabito@yahoo.com.ar wrote:
  > # ndiscvt -i net8185.inf -s rtl8185.sys -o ndis_driver_data.h; etc...
  > 
  > This is the error I get at compile time:
  > 
  > cc1: warnings being treated as errors
  > ../../../../dev/if_ndis/if_ndis.c: In function 'ndis_detach':
  > ../../../../dev/if_ndis/if_ndis.c:1187: warning: passing argument 1 of 'mutex_destroy' from incompatible pointer type
  > *** Error code 1

 I'm not sure ndis is expected to work in 5.0.x - it was broken at
 several points, and 5.0.x only gets critical fixes pulled up. Are you
 able to try 5.0_STABLE? (or -current)?

 -- 
 David A. Holland
 dholland@netbsd.org

From: Abel Morabito <abelmorabito@yahoo.com.ar>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/42970: Compile Realtek 8185 wireless driver error
Date: Sun, 14 Mar 2010 16:34:24 -0700 (PDT)

 Do you mean the whole -current distribution or should I try just the kernel=
  sources? I have to get it from the Internet...=0A=0AThank you for your ans=
 wer!=0A=0A--- El dom 14-mar-10, David Holland <dholland-bugs@netbsd.org> es=
 cribi=F3:=0A=0A> De: David Holland <dholland-bugs@netbsd.org>=0A> Asunto: R=
 e: kern/42970: Compile Realtek 8185 wireless driver error=0A> Para: kern-bu=
 g-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, abelmo=
 rabito@yahoo.com.ar=0A> Fecha: domingo, 14 de marzo de 2010, 16:20=0A> The =
 following reply was made to PR=0A> kern/42970; it has been noted by GNATS.=
 =0A> =0A> From: David Holland <dholland-bugs@netbsd.org>=0A> To: gnats-bugs=
 @NetBSD.org=0A> Cc: =0A> Subject: Re: kern/42970: Compile Realtek 8185 wire=
 less=0A> driver error=0A> Date: Sun, 14 Mar 2010 18:17:52 +0000=0A> =0A>  O=
 n Sun, Mar 14, 2010 at 01:00:01PM +0000, abelmorabito@yahoo.com.ar=0A> wrot=
 e:=0A> =A0 > # ndiscvt -i net8185.inf -s rtl8185.sys -o=0A> ndis_driver_dat=
 a.h; etc...=0A> =A0 > =0A> =A0 > This is the error I get at compile time:=
 =0A> =A0 > =0A> =A0 > cc1: warnings being treated as errors=0A> =A0 > ../..=
 /../../dev/if_ndis/if_ndis.c: In function=0A> 'ndis_detach':=0A> =A0 > ../.=
 ./../../dev/if_ndis/if_ndis.c:1187:=0A> warning: passing argument 1 of 'mut=
 ex_destroy' from=0A> incompatible pointer type=0A> =A0 > *** Error code 1=
 =0A>  =0A>  I'm not sure ndis is expected to work in 5.0.x - it was=0A> bro=
 ken at=0A>  several points, and 5.0.x only gets critical fixes pulled=0A> u=
 p. Are you=0A>  able to try 5.0_STABLE? (or -current)?=0A>  =0A>  -- =0A>  =
 David A. Holland=0A>  dholland@netbsd.org=0A>  =0A> =0A=0A=0A      Yahoo! C=
 ocina=0A=0AEncontra las mejores recetas con Yahoo! Cocina.=0A=0A=0Ahttp://a=
 r.mujer.yahoo.com/cocina/

From: Abel Morabito <abelmorabito@yahoo.com.ar>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/42970: Compile Realtek 8185 wireless driver error
Date: Mon, 15 Mar 2010 10:55:58 -0700 (PDT)

 David,=0A=0AI've checked my compilation. I did use the last formal distribu=
 tion -5.0.2- and its kernel sources, so it was all done under a stable envi=
 ronment. I wonder if I should try "-current" for it's unstable and -I must =
 say- I am not a developer!=0A=0ARegards,=0A=0A=0A--- El dom 14-mar-10, Davi=
 d Holland <dholland-bugs@netbsd.org> escribi=F3:=0A=0A> De: David Holland <=
 dholland-bugs@netbsd.org>=0A> Asunto: Re: kern/42970: Compile Realtek 8185 =
 wireless driver error=0A> Para: kern-bug-people@netbsd.org, gnats-admin@net=
 bsd.org, netbsd-bugs@netbsd.org, abelmorabito@yahoo.com.ar=0A> Fecha: domin=
 go, 14 de marzo de 2010, 16:20=0A> The following reply was made to PR=0A> k=
 ern/42970; it has been noted by GNATS.=0A> =0A> From: David Holland <dholla=
 nd-bugs@netbsd.org>=0A> To: gnats-bugs@NetBSD.org=0A> Cc: =0A> Subject: Re:=
  kern/42970: Compile Realtek 8185 wireless=0A> driver error=0A> Date: Sun, =
 14 Mar 2010 18:17:52 +0000=0A> =0A>  On Sun, Mar 14, 2010 at 01:00:01PM +00=
 00, abelmorabito@yahoo.com.ar=0A> wrote:=0A> =A0 > # ndiscvt -i net8185.inf=
  -s rtl8185.sys -o=0A> ndis_driver_data.h; etc...=0A> =A0 > =0A> =A0 > This=
  is the error I get at compile time:=0A> =A0 > =0A> =A0 > cc1: warnings bei=
 ng treated as errors=0A> =A0 > ../../../../dev/if_ndis/if_ndis.c: In functi=
 on=0A> 'ndis_detach':=0A> =A0 > ../../../../dev/if_ndis/if_ndis.c:1187:=0A>=
  warning: passing argument 1 of 'mutex_destroy' from=0A> incompatible point=
 er type=0A> =A0 > *** Error code 1=0A>  =0A>  I'm not sure ndis is expected=
  to work in 5.0.x - it was=0A> broken at=0A>  several points, and 5.0.x onl=
 y gets critical fixes pulled=0A> up. Are you=0A>  able to try 5.0_STABLE? (=
 or -current)?=0A>  =0A>  -- =0A>  David A. Holland=0A>  dholland@netbsd.org=
 =0A>  =0A> =0A=0A=0A      Yahoo! Cocina=0A=0AEncontra las mejores recetas c=
 on Yahoo! Cocina.=0A=0A=0Ahttp://ar.mujer.yahoo.com/cocina/

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/42970: Compile Realtek 8185 wireless driver error
Date: Wed, 17 Mar 2010 19:58:36 +0000

 On Mon, Mar 15, 2010 at 01:25:01AM +0000, Abel Morabito wrote:
  > Do you mean the whole -current distribution or should I try just the kernel
  > sources? 

 You should be able to build and run a -current (or 5.0_STABLE, which
 is not the same as 5.0.2; it will be 5.1 "soon") kernel, including as
 far as I know all the ndis stuff, without changing the rest of the
 system.

 If you do try -current, build the MONOLITHIC kernel rather than the
 GENERIC one to avoid having to mess around with installing kernel
 modules. However, if you don't want to get involved with -current,
 5.0_STABLE (the "netbsd-5" branch in CVS) has quite a few fixes that
 aren't in 5.0.2 and may also work.

 (Also note that your mail seems to be arriving pretty mangled -- see
 http://gnats.netbsd.org/42970 -- and this seems to be causing some
 problems here. You may not be able to do anything about it, but if
 there's some preferences setting to be more compliant with internet
 standards it may help.)

 -- 
 David A. Holland
 dholland@netbsd.org

From: Abel Morabito <abelmorabito@yahoo.com.ar>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/42970: Compile Realtek 8185 wireless driver error
Date: Wed, 17 Mar 2010 18:39:28 -0700 (PDT)

 =A1Thank you for your answer!



 --- El mi=E9 17-mar-10, David Holland <dholland-bugs@netbsd.org> escribi=F3=
 :

 > De: David Holland <dholland-bugs@netbsd.org>
 > Asunto: Re: kern/42970: Compile Realtek 8185 wireless driver error
 > Para: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@net=
 bsd.org, abelmorabito@yahoo.com.ar
 > Fecha: mi=E9rcoles, 17 de marzo de 2010, 18:00
 > The following reply was made to PR
 > kern/42970; it has been noted by GNATS.
 >=20
 > From: David Holland <dholland-bugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc:=20
 > Subject: Re: kern/42970: Compile Realtek 8185 wireless
 > driver error
 > Date: Wed, 17 Mar 2010 19:58:36 +0000
 >=20
 >  On Mon, Mar 15, 2010 at 01:25:01AM +0000, Abel Morabito
 > wrote:
 > =A0 > Do you mean the whole -current distribution or
 > should I try just the kernel
 > =A0 > sources?=20
 > =20
 >  You should be able to build and run a -current (or
 > 5.0_STABLE, which
 >  is not the same as 5.0.2; it will be 5.1 "soon") kernel,
 > including as
 >  far as I know all the ndis stuff, without changing the
 > rest of the
 >  system.
 > =20
 >  If you do try -current, build the MONOLITHIC kernel rather
 > than the
 >  GENERIC one to avoid having to mess around with installing
 > kernel
 >  modules. However, if you don't want to get involved with
 > -current,
 >  5.0_STABLE (the "netbsd-5" branch in CVS) has quite a few
 > fixes that
 >  aren't in 5.0.2 and may also work.
 > =20
 >  (Also note that your mail seems to be arriving pretty
 > mangled -- see
 >  http://gnats.netbsd.org/42970 -- and this seems to be
 > causing some
 >  problems here. You may not be able to do anything about
 > it, but if
 >  there's some preferences setting to be more compliant with
 > internet
 >  standards it may help.)
 > =20
 >  --=20
 >  David A. Holland
 >  dholland@netbsd.org
 > =20
 > =0A=0A=0A      Yahoo! Cocina=0A=0AEncontra las mejores recetas con Yahoo!=
  Cocina.=0A=0A=0Ahttp://ar.mujer.yahoo.com/cocina/

State-Changed-From-To: open->feedback
State-Changed-By: riz@NetBSD.org
State-Changed-When: Wed, 16 Jun 2010 17:06:13 +0000
State-Changed-Why:
Please try NetBSD 5.1_RC3 or later and report if this fixes the problem
or not.


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 31 Jan 2011 03:21:52 +0000
State-Changed-Why:
Feedback timeout. However, this turns out to be the same problem as 39034,
which is fixed in 5.1.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.