kern/98879: kernel not build with options NETGRAPH_NAT

Igor Russian im at kaba.org.ua
Mon Jun 12 22:30:22 UTC 2006


>Number:         98879
>Category:       kern
>Synopsis:       kernel not build with options NETGRAPH_NAT
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 12 22:30:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Igor Russian
>Release:        6.1-RELEASE
>Organization:
Kaba Ltd
>Environment:
FreeBSD esm.com.ua 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Sun Jun 11 11:12:58 EEST
2006     root at esm.com.ua:/usr/src/sys/i386/compile/ESM  i386
>Description:
My kernel config:

machine         i386
cpu             I686_CPU
ident           ESM
maxusers        512

# To statically compile in device wiring instead of /boot/device.hints
#hints          "GENERIC.hints"         # Default places to look for devices.

makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols

#options        SCHED_ULE               # ULE scheduler
options         SCHED_4BSD              # 4BSD scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_ACL                 # Support for access control lists
options         UFS_DIRHASH             # Improve performance on big directories
options         MD_ROOT                 # MD is a potential root device
options         MSDOSFS                 # MSDOS Filesystem
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_GPT                # GUID Partition Tables.
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THIS!]
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
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-time extension
s
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~128k to driver.
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~215k to driver.
options         ADAPTIVE_GIANT          # Giant mutex is adaptive.

device          apic                    # I/O APIC

# Bus support.
device          eisa
device          pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk         # ATA disk drives
device          ataraid         # ATA RAID drives
device          atapicd         # ATAPI CDROM drives
device          atapifd         # ATAPI floppy 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          psm             # PS/2 mouse

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          pmtimer
# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus          # MII bus support
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)
device          rl              # RealTek 8129/8139

# Pseudo devices.
device          loop            # Network loopback
device          random          # Entropy device
device          ether           # Ethernet support
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          bpf             # Berkeley packet filter
device          vlan

options         HZ=2000
options         DEVICE_POLLING
options         IPFIREWALL
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPFIREWALL_FORWARD
options         IPFIREWALL_FORWARD_EXTENDED
options         IPFILTER
options         DUMMYNET

options         NETGRAPH
options         NETGRAPH_BPF
options         NETGRAPH_BRIDGE
options         NETGRAPH_DEVICE
options         NETGRAPH_ECHO
options         NETGRAPH_EIFACE
options         NETGRAPH_ETHER
options         NETGRAPH_IFACE
options         NETGRAPH_KSOCKET
options         NETGRAPH_L2TP
options         NETGRAPH_MPPC_ENCRYPTION
options         NETGRAPH_NETFLOW
options         NETGRAPH_ONE2MANY
options         NETGRAPH_PPP
options         NETGRAPH_PPPOE
options         NETGRAPH_PPTPGRE
options         NETGRAPH_SOCKET
options         NETGRAPH_TCPMSS
options         NETGRAPH_TEE
options         NETGRAPH_TTY
options         NETGRAPH_VJC
options         NETGRAPH_IPFW
options         NETGRAPH_NAT


root at esm [0:49] /sys/i386/conf #config ESM
Kernel build directory is ../compile/ESM
Don't forget to do ``make cleandepend; make depend''

root at esm [1:20] /sys/i386/compile/ESM# make cleandepend; make depend; make

But kernel don't compile.

..
MAKE=make sh ../../../conf/newvers.sh ESM
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -st
d=c99 -g -nostdinc -I-  -I. -I../../.. -I../../../contrib/altq -I../../../contri
b/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/d
ev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa -D_KERNEL -DHAVE_KERN
EL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strin
gs -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreest
anding -Werror  vers.c
linking kernel.debug
ng_nat.o(.text+0x2a): In function `ng_nat_constructor':
./../../netgraph/ng_nat.c:114: undefined reference to `LibAliasInit'
ng_nat.o(.text+0x54):../../../netgraph/ng_nat.c:121: undefined reference to `Lib
AliasSetMode'
ng_nat.o(.text+0x12e): In function `ng_nat_rcvmsg':
./../../netgraph/ng_nat.c:179: undefined reference to `LibAliasSetAddress'
ng_nat.o(.text+0x263): In function `ng_nat_rcvdata':
./../../netgraph/ng_nat.c:233: undefined reference to `LibAliasIn'
ng_nat.o(.text+0x296):../../../netgraph/ng_nat.c:239: undefined reference to `Li
bAliasOut'
ng_nat.o(.text+0x3d7): In function `ng_nat_shutdown':
./../../netgraph/ng_nat.c:306: undefined reference to `LibAliasUninit'
*** Error code 1

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

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list