Jump to content

Recommended Posts

Posted

при добавлении вот этих строчек в файлик ядра

options IPFILTER

options IPFILTER_LOG

 

выполнение make depend прошло успешно , а вот на make all выдало следуеще

==============================================

# make all

cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstric t-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fforma t-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpi ca -I../../../contrib/ipfilter -I../../../contrib/dev/ath -I../../../contrib/dev /ath/freebsd -I../../../contrib/ngatm -D_KERNEL -include opt_global.h -fno-commo n -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred -stack-boundary=2 -ffreestanding -Werror ../../../contrib/ipfilter/netinet/ip_f il.c

../../../contrib/ipfilter/netinet/ip_fil.c: In function `fr_check_wrapper':

../../../contrib/ipfilter/netinet/ip_fil.c:319: error: `PFIL_OUT' undeclared (fi rst use in this function)

../../../contrib/ipfilter/netinet/ip_fil.c:319: error: (Each undeclared identifi er is reported only once

../../../contrib/ipfilter/netinet/ip_fil.c:319: error: for each function it appe ars in.)

../../../contrib/ipfilter/netinet/ip_fil.c: In function `fr_check_wrapper6':

../../../contrib/ipfilter/netinet/ip_fil.c:329: error: `PFIL_OUT' undeclared (fi rst use in this function)

../../../contrib/ipfilter/netinet/ip_fil.c: In function `iplattach':

../../../contrib/ipfilter/netinet/ip_fil.c:376: warning: unused variable `ph_ine t'

../../../contrib/ipfilter/netinet/ip_fil.c:378: warning: unused variable `ph_ine t6'

../../../contrib/ipfilter/netinet/ip_fil.c: At top level:

../../../contrib/ipfilter/netinet/ip_fil.c:317: warning: `fr_check_wrapper' defi ned but not used

../../../contrib/ipfilter/netinet/ip_fil.c:327: warning: `fr_check_wrapper6' def ined but not used

*** Error code 1

 

Stop in /usr/src/sys/i386/compile/SERVER_KERNEL.

=============================================

что это может быть? как мне включить ipnat

Posted

Попробуйте собирать ядро официальным способом:

 

cd /usr/src

make KERNCONF=SERVER_KERNEL buildkernel

make KERNCONF=SERVER_KERNEL installkernel

 

Естественно, конфиг ядра надо скопировать в /usr/src/sys/i386/conf

Posted
Попробуйте собирать ядро официальным способом:

 

cd /usr/src

make KERNCONF=SERVER_KERNEL buildkernel

make KERNCONF=SERVER_KERNEL installkernel

 

Естественно, конфиг ядра надо скопировать в /usr/src/sys/i386/conf

 

мда.... неприятно конечно. Но таже самая ошибка :-((

ша покажу конфиг ядра

==============================================

machine i386

cpu I686_CPU

ident GENERIC

options IPFIREWALL

options IPFIREWALL_VERBOSE

options IPFIREWALL_VERBOSE_LIMIT=10

options DUMMYNET

options HZ=1000

options IPDIVERT

options SCHED_4BSD #4BSD scheduler

options INET #InterNETworking

options INET6 #IPv6 communications prot

options FFS #Berkeley Fast Filesystem

options SOFTUPDATES #Enable FFS soft update

options UFS_ACL #Support for access control l

options UFS_DIRHASH #Improve performance on

options MD_ROOT #MD is a potential root device

options NFSCLIENT #Network Filesystem Client

options NFSSERVER #Network Filesystem Server

options NFS_ROOT #NFS usable as /, requires NFSCLIENT

options MSDOSFS #MSDOS Filesystem

options CD9660 #ISO 9660 Filesystem

options PROCFS #Process filesystem

options PSEUDOFS #Pseudo-filesystem framework

options COMPAT_43 #Compatible with BSD 4.3

options COMPAT_FREEBSD4 #Compatible with FreeBSD4

options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI

options KTRACE #ktrace(1) support

options SYSVSHM #SYSV-style shared memory

options SYSVMSG #SYSV-style message queues

options SYSVSEM #SYSV-style semaphores

options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-

options KBD_INSTALL_CDEV # install a CDEV entry in /dev

options AHC_REG_PRETTY_PRINT # Print register bitfie

options AHD_REG_PRETTY_PRINT

options IPFILTER

options IPFILTER_LOG

 

options INVARIANT_SUPPORT

 

# To make an SMP kernel, the next two are needed

options SMP # Symmetric MultiProcessor Kernel

device apic # I/O APIC

 

device isa

device eisa

device pci

 

# ATA and ATAPI devices

device ata

device atadisk # ATA disk drives

device atapicd # ATAPI CDROM drives

device atapist # ATAPI tape drives

options ATA_STATIC_ID #Static device numbering

 

 

# atkbdc0 controls both the keyboard and the PS/2 mouse

device atkbdc # AT keyboard controller

device atkbd # AT keyboard

device vga # VGA video card driver

device splash # Splash screen and screen saver support

 

# syscons is the default console driver, resembling an SCO console

device sc

 

device agp # support several AGP chipsets

device npx

device pmtimer

 

# Parallel port

device ppc

device ppbus # Parallel port bus (required)

device lpt # Printer

device plip # TCP/IP over parallel

device ppi # Parallel port interface device

 

# PCI Ethernet NICs.

device de # DEC/Intel DC21x4x (``Tulip'')

device em # Intel PRO/1000 adapter Gigabit Ethernet Card

device txp # 3Com 3cR990 (``Typhoon'')

device vx # 3Com 3c590, 3c595 (``Vortex'')

 

# PCI Ethernet NICs that use the common MII bus controller code.

device miibus # MII bus support

device bfe # Broadcom BCM440x 10/100 ethernet

device bge # Broadcom BCM570xx Gigabit Ethernet

device dc # DEC/Intel 21143 and various workalikes

device fxp # Intel EtherExpress PRO

device pcn # AMD Am79C97x PCI 10/1

device re # RealTek 8139C+

device rl # RealTek 8129/8139

device sf # Adaptec AIC-6915 (``St

device sis # Silicon Integrated Systems

device sk # SysKonnect SK-984x and

device ste # Sundance ST201 (D-Link

device ti # Alteon Networks Tigon I/II

device tl # Texas Instruments Th

device tx # SMC EtherPower II

device vr # VIA Rhine, Rhine II

device wb # Winbond W89C840F

device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')

 

# 'device ed' requires 'device miibus'

device ed # NE[12]000, SMC Ultra, 3

device ex # Intel EtherExpress Pro/10

device ep # Etherlink III based cards

device fe # Fujitsu MB8696x based c

device ie # EtherExpress 8/16, 3C507,

device lnc # NE2100, NE32-VL Lance s

device sn # SMC's 9000 series of ips

device xe # Xircom pccard ethernet

# Pseudo devices - the number indicates how many units to allocate.

device random # Entropy device

device loop # Network loopback

device ether # Ethernet support

device sl # Kernel SLIP

device ppp # Kernel PPP

device tun # Packet tunnel.

device pty # Pseudo-ttys (telnet etc)

device md # Memory "disks"

device gif # IPv6 and IPv4 tunneling

device faith # IPv6-to-IPv4 relaying ion)

device bpf # Berkeley packet filter

Posted
какая версия FreeBSD? В старых версиях 5.x может потребоваться еще options PFIL_HOOKS.

5.2

 

ой спасибочки! прокатило!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.