[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problems compiling Ip filter 3.4.16 on 2.8



Change nat_ifdetach(ifp); to frsync(); in /sys/net/if.c and recompile.

Nick

-----Original Message-----
From: Nicholas Basila [mailto:nbasila@epcot.revenio.com]
Sent: Monday, January 22, 2001 3:40 PM
To: misc@openbsd.org
Subject: Problems compiling Ip filter 3.4.16 on 2.8


Hi,

    I am using OpenBSD 2.8(i386) and am having trouble re-compiling the
kernel after I run the install-patch from Ip filter 3.4.16. This error
happens during make:

NEL -Di386  -c /usr/src/sys/net/if.c
cc1: warnings being treated as errors
/usr/src/sys/net/if.c: In function `if_detach':
/usr/src/sys/net/if.c:377: warning: implicit declaration of function
`nat_ifdetach
'
*** Error code 1

Stop in /sys/arch/i386/conf (line 1158 of Makefile).



    I have successfully compiled kernels from the kernel config I am
using now:



#       $OpenBSD: GENERIC,v 1.212 2000/10/26 20:50:44 aaron Exp $
#       $NetBSD: GENERIC,v 1.48 1996/05/20 18:17:23 mrg Exp $
#
#       GENERIC -- everything that's currently supported
#

machine         i386            # architecture, used by config; REQUIRED

include "../../../conf/GENERIC"


option          I686_CPU


option          UVM             # use the UVM virtual memory system
option          XSERVER         # diddle with console driver
option          FFS_SOFTUPDATES # Soft updates
option          COMPAT_SVR4     # binary compatibility with SVR4
option          COMPAT_LINUX    # binary compatibility with Linux
option          COMPAT_FREEBSD  # binary compatibility with FreeBSD

maxusers        40              # estimated number of users
config          bsd     swap generic
mainbus0 at root
bios0   at mainbus0
apm0    at bios0 flags 0x0000   # flags 0x0101 to force protocol version
1.1
pcibios0 at bios0 flags 0x0000

isa0    at mainbus0
isa0    at pcib?
eisa0   at mainbus0
pci*    at mainbus0 bus ?

option          PCIVERBOSE
option          EISAVERBOSE

pchb*   at pci? dev ? function ?        # PCI-Host bridges
ppb*    at pci? dev ? function ?        # PCI-PCI bridges
pci*    at ppb? bus ?
pci*    at pchb? bus ?
pcib*   at pci? dev ? function ?        # PCI-ISA bridges (do nothing)

puc*    at pci?                         # PCI "universal" communication
device

npx0    at isa? port 0xf0 irq 13        # math coprocessor
isadma0 at isa?
isapnp0 at isa?

#pc0    at isa? port 0x60 irq 1         # generic PC console device
vt0     at isa? port 0x60 irq 1

pcppi0  at isa?
sysbeep0        at pcppi?

pccom0  at isa? port 0x3f8 irq 4        # standard PC serial ports
pccom1  at isa? port 0x2f8 irq 3
pccom2  at isa? port 0x3e8 irq 5
#pccom3 at isa? port 0x2e8 irq 9        # (conflicts with some video
cards)
ast0    at isa? port 0x1a0 irq 5        # AST 4-port serial card
#ast1   at isa? port 0x2a0 irq 6        # 2nd AST 4-port serial card
pccom*  at ast? slave ?

lms0    at isa? port 0x23c irq 5        # Logitech bus mouse
lms1    at isa? port 0x238 irq 5
mms0    at isa? port 0x23c irq 5        # Microsoft InPort mouse
mms1    at isa? port 0x238 irq 5
pms0    at pckbd? irq 12                # PS/2 auxiliary port mouse

fdc0    at isa? port 0x3f0 irq 6 drq 2  # standard PC floppy controllers

#fdc1   at isa? port 0x370 irq ? drq ?
fd*     at fdc? drive ?

#mcd0   at isa? port 0x300 irq 10       # Mitsumi CD-ROM drives

# IDE controllers
pciide* at pci ? dev ? function ? flags 0x0000

wdc0    at isa? port 0x1f0 irq 14 flags 0x00
wdc1    at isa? port 0x170 irq 15 flags 0x00
#wdc*   at pcmcia? function ?
wdc*    at isapnp?

# IDE hard drives
wd*     at wdc? channel ? drive ? flags 0x0000
wd*     at pciide? channel ? drive ? flags 0x0000

# ATAPI<->SCSI
atapiscsi* at wdc? channel ?
atapiscsi* at pciide? channel ?
scsibus* at atapiscsi?

#wt0    at isa? port 0x308 irq 5 drq 1  # Archive and Wangtek QIC tape
drives

# Networking devices

el0     at isa? port 0x300 irq 9                # 3C501 ethernet
ep0     at isa? port ? irq ?                    # 3C509 ethernet
ep*     at isapnp?                              # 3C509 PnP ethernet
ep*     at isa? port ? irq ?                    # 3C509 ethernet
ef*     at isapnp?                              # 3C515 PnP ethernet
ie0     at isa? port 0x360 iomem 0xd0000 irq 7  # StarLAN and 3C507
#ie1    at isa? port 0x300 irq 10               # EtherExpress
le0     at isa? port 0x360 irq 15 drq 6         # IsoLan, NE2100, and
DEPCA
ex0     at isa? port 0x320 irq 5                # Intel EtherExpress
PRO/10
fxp*    at pci? dev ? function ?                # EtherExpress 10/100B
ethernet
xl*     at pci? dev ? function ?                # 3C9xx ethernet
wx*     at pci? dev ? function ?                # Intel Pro/1000
ethernet



# Media Independent Interface (mii) drivers
#exphy* at mii? phy ?                           # 3Com internal PHYs
inphy*  at mii? phy ?                           # Intel 82555 PHYs
iophy*  at mii? phy ?                           # Intel 82553 PHYs
#xmphy* at mii? phy ?                           # XaQti XMAC-II PHYs
ukphy*  at mii? phy ?                           # "unknown" PHYs

bktr0   at pci? dev ? function ?

#wdt0   at pci? dev ? function ?        # Ind Computer Source PCI-WDT50x
driver

pseudo-device   pctr            1
pseudo-device   mtrr            1       # Memory range attributes
control
pseudo-device   sequencer       1
pseudo-device   raid            4       # RAIDframe disk driver
# for IPv6
#pseudo-device  gif             4
#pseudo-device  faith           1
pseudo-device  bridge           1

    Has anyone had success building Ip filter 3.4.16 on 2.8? I do not
have any real skill at C, so I apologize if it is something obvious or
even if I've missed something in the mailing list archives. I will post
to the Ip filter mailing list, but I thought I should post here first,
as I'm having trouble compiling the kernel.

Thanks,

Nicholas