Hello,

I have a HP ProLiant server with Intel PCI express gigabit ethernet
card. Relevant output of pciconf -v -l:

[EMAIL PROTECTED]:0:0: class=0x020000 card=0x10838086 chip=0x10b98086 rev=0x06 
hdr=0x00
    vendor   = 'Intel Corporation'
    class    = network
    subclass = ethernet

I have FreeBSD 5.5 and the FreeBSD kernel driver doesn't want to load it.
If I download the driver from Intel pages and try to compile it, I get this:

[EMAIL PROTECTED]:~/em-6.2.9# make
cd src; make
Warning: Object directory not changed from original /root/em-6.2.9/src
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
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
touch opt_bdg.h
cc -O -pipe  -DLM -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 if_em.c
if_em.c: In function `em_detach':
if_em.c:615: warning: implicit declaration of function `if_free'
if_em.c:615: warning: nested extern declaration of `if_free'
if_em.c: In function `em_resume':
if_em.c:674: error: structure has no member named `if_drv_flags'
if_em.c:674: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c:674: error: (Each undeclared identifier is reported only once
if_em.c:674: error: for each function it appears in.)
if_em.c: In function `em_start_locked':
if_em.c:700: error: structure has no member named `if_drv_flags'
if_em.c:700: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c:700: error: `IFF_DRV_OACTIVE' undeclared (first use in this function)
if_em.c:718: error: structure has no member named `if_drv_flags'
if_em.c: In function `em_start':
if_em.c:737: error: structure has no member named `if_drv_flags'
if_em.c:737: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c: In function `em_ioctl':
if_em.c:774: error: structure has no member named `if_drv_flags'
if_em.c:774: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c:835: error: structure has no member named `if_drv_flags'
if_em.c:844: error: structure has no member named `if_drv_flags'
if_em.c:854: error: structure has no member named `if_drv_flags'
if_em.c:916: error: structure has no member named `if_drv_flags'
if_em.c: In function `em_watchdog':
if_em.c:953: error: structure has no member named `if_drv_flags'
if_em.c:953: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c: In function `em_init_locked':
if_em.c:1077: error: structure has no member named `if_drv_flags'
if_em.c:1077: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c:1078: error: structure has no member named `if_drv_flags'
if_em.c:1078: error: `IFF_DRV_OACTIVE' undeclared (first use in this function)
if_em.c: In function `em_intr':
if_em.c:1182: error: structure has no member named `if_drv_flags'
if_em.c:1182: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c:1201: error: structure has no member named `if_drv_flags'
if_em.c: In function `em_local_timer':
if_em.c:1863: error: structure has no member named `if_drv_flags'
if_em.c:1863: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c: In function `em_update_link_status':
if_em.c:1902: warning: implicit declaration of function `if_link_state_change'
if_em.c:1902: warning: nested extern declaration of `if_link_state_change'
if_em.c:1911: warning: nested extern declaration of `if_link_state_change'
if_em.c:1902: warning: redundant redeclaration of 'if_link_state_change'
if_em.c:1902: warning: previous implicit declaration of 'if_link_state_change' 
was here
if_em.c: In function `em_stop':
if_em.c:1941: error: structure has no member named `if_drv_flags'
if_em.c:1941: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
if_em.c:1941: error: `IFF_DRV_OACTIVE' undeclared (first use in this function)
if_em.c: In function `em_setup_interface':
if_em.c:2188: warning: implicit declaration of function `if_alloc'
if_em.c:2188: warning: nested extern declaration of `if_alloc'
if_em.c:2188: warning: assignment makes pointer from integer without a cast
if_em.c: In function `em_txeof':
if_em.c:2879: error: structure has no member named `if_drv_flags'
if_em.c:2879: error: `IFF_DRV_OACTIVE' undeclared (first use in this function)
if_em.c: In function `em_rxeof':
if_em.c:3202: error: structure has no member named `if_drv_flags'
if_em.c:3202: error: `IFF_DRV_RUNNING' undeclared (first use in this function)
*** Error code 1

Stop in /root/em-6.2.9/src.
*** Error code 1

which is quite understandable since it says that it is only for 6.x version of
FreeBSD. Any ideas how to make my card work under 5.5 too?

Thanks,
Nejc

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to