Bug 79240

Summary: Errors at the compilation of /usr/src/modules/if_ndis/
Product: Base System Reporter: Arnaud de Prelle <arnaud>
Component: i386Assignee: freebsd-i386 (Nobody) <i386>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Arnaud de Prelle 2005-03-25 22:50:02 UTC
Won't compile if we follow the instructions given in the handbook ( http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html ). It can't find ndis_driver_data.h.

Fix: 

I correct the problem. Here are the diffs files:

# cat if_ndis.c.diff
87c87
< #include "ndis_driver_data.h"
---
> #include <modules/if_ndis/ndis_driver_data.h>

# cat if_ndis_pci.c.diff
65c65
< #include "ndis_driver_data.h"
---
> #include <modules/if_ndis/ndis_driver_data.h>

# cat if_ndis_pccard.c.diff
66c66
< #include "ndis_driver_data.h"
---
> #include <modules/if_ndis/ndis_driver_data.h>

Sincerely yours.

Arnaud de Prelle
How-To-Repeat: Everytimes we try to compile.
Comment 1 Matteo Riondato 2005-04-02 11:27:40 UTC
Are you still having this issue?
I didn't manage to reproduce this bug, and I really cannot understand
why your patch should solve it.
Can you please send the output of the failing compilation?
Best Regards
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 2 Matteo Riondato 2005-04-02 13:55:13 UTC
On Sat, Apr 02, 2005 at 01:50:53PM +0200, arnaud pn wrote:
> Matteo Riondato wrote:
> 
> >Are you still having this issue?
> >I didn't manage to reproduce this bug, and I really cannot understand
> >why your patch should solve it.
> >Can you please send the output of the failing compilation?
> >Best Regards
> > 
> >
> Yes I still have the same problem.
> 
> root@compaq# ndiscvt -i usr11g.inf -s usr11g.sys -o ndis_driver_data.h
> root@compaq# make && make install
> cc -O2 -fno-strict-aliasing -pipe  -Werror -D_KERNEL -DKLD_MODULE 
> -nostdinc -I-   -I. -I@ -I@/contrib/altq -I@/../include 
> -finline-limit=8000 -fno-common  -mno-align-long-strings 
> -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 


Well. Don't know if it does mean anything, but parto of the make
procedure seems to be missing.
That's what I get when I compile if_ndis:
kaiser# make
Warning: Object directory not changed from original
/usr/src/sys/modules/if_ndis
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
touch opt_bdg.h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pccard/card_if.m -h
awk -f @/tools/pccarddevs2h.awk @/dev/pccard/pccarddevs
cc -O -pipe -march=pentium3 -D_KERNEL -DKLD_MODULE -nostdinc -I- -I.  -I@ -I@/contrib/altq -I@/../include -I/usr/include -finline-limit=8000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c 
cc -O -pipe -march=pentium3 -D_KERNEL -DKLD_MODULE -nostdinc -I-   -I.  -I@ -I@/contrib/altq -I@/../include -I/usr/include -finline-limit=8000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c
cc -O -pipe -march=pentium3 -D_KERNEL -DKLD_MODULE -nostdinc -I-   -I.  -I@ -I@/contrib/altq -I@/../include -I/usr/include -finline-limit=8000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pccard.c ld  -d -warn-common -r -d -o if_ndis.kld if_ndis.o if_ndis_pci.o if_ndis_pccard.o
touch /usr/src/sys/modules/if_ndis/export_syms
awk -f /usr/src/sys/modules/if_ndis/../../conf/kmod_syms.awk if_ndis.kld  /usr/src/sys/modules/if_ndis/export_syms |  xargs -J%
objcopy % if_ndis.kld ld -Bshareable  -d -warn-common -o if_ndis.ko if_ndis.kld
objcopy --strip-debug if_ndis.ko


As you see, the first part is missing in your compilation. Can you
please try a "make clean && make && make install", please?
Are you sure to have a clean source tree?
Best regards
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 3 Matteo Riondato 2005-04-03 17:59:25 UTC
On Sun, Apr 03, 2005 at 06:09:47PM +0200, arnaud de prelle wrote:
> Matteo Riondato wrote:
> 
> After that, I entirely delete /usr/src then re-cvsup and it is always 
> the same thing.


Well, I'm sorry, but I don't know what else to say.
You can try to contact Bill Paul, which is the NDIS mantainer.
His address is wpaul AT freebsd DOT org.
Best Regards and good luck

--
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 4 Matteo Riondato 2005-04-03 18:17:20 UTC
On Sun, Apr 03, 2005 at 07:07:34PM +0200, arnaud de prelle wrote:
> 
> PS: It's not a very critical probem and my patch is well running for my 
> particular case so I think it is not really necessary to contact Bill Paul.


Please ask freebsd-bugs@freebsd.org to close this PR then.
Best Regards
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2005-04-12 01:51:26 UTC
State Changed
From-To: open->closed

No one else is able to duplicate this problem. 

In any case, you should report kernel compile failures on the appropriate 
mailing list, in this case, freebsd-stable.  Build failures tend to get 
fixed very quickly due to the high number of developers who track the 
latest code, and the automated tinderboxes that continually run builds.