I had installed fresh FreeBSD 9.0 Release, but I need PF with ALTQ support in kernel, so in /usr/src/sys/i386/conf/ROUTER I put
My /etc/make.conf
gw# pwd
/usr/src
gw# make buildkernel KERNCONF=ROUTER
I don't know how pass it.
Code:
include GENERIC
ident ROUTER
## Pf firewall
device pf
device pflog
device pfsync
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_PRIQ
options ALTQ_NOPCC
My /etc/make.conf
Code:
WITHOUT_X11=yes
WITH_UTF8=yes
WITHOUT_HAL=yes
WITHOUT_DBUS=yes
# optimizations
WITH_SSE=yes
WITH_3DNOW=yes
WITH_MMX=yes
WITH_THREADS=yes
CPUTYPE=i686
CFLAGS= -Os -fno-strict-aliasing -pipe -s
CXXFLAGS= -Os -fno-strict-aliasing -pipe -s
COPTFLAGS= -Os -fno-strict-aliasing -pipe -s
INSTALL_NODEBUG=yes
# /usr/ports/databases/mysql55-server
.if ${.CURDIR:M*/ports/databases/mysql55-server}
WITH_CHARSET=utf8
WITH_COLLATION=utf8_general_ci
.endif
BATCH=yes
/usr/src
gw# make buildkernel KERNCONF=ROUTER
Code:
...
cc -c -Os -fno-strict-aliasing -pipe -s -march=pentiumpro -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100
--param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-sse -mno-mmx -msoft-float -ffreestanding -fstack-protector
-Werror /usr/src/sys/cam/scsi/scsi_pass.c
cc -c -Os -fno-strict-aliasing -pipe -s -march=pentiumpro -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100
--param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-sse -mno-mmx -msoft-float -ffreestanding -fstack-protector
-Werror /usr/src/sys/cam/scsi/scsi_sa.c
cc1: warnings being treated as errors
/usr/src/sys/cam/scsi/scsi_sa.c: In function 'samount':
/usr/src/sys/cam/scsi/scsi_sa.c:1886: warning: 'comp_supported' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:1887: warning: 'write_protect' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:1886: warning: 'comp_enabled' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2734: warning: 'current_speed' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2734: note: 'current_speed' was declared here
/usr/src/sys/cam/scsi/scsi_sa.c:2733: warning: 'current_density' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2733: note: 'current_density' was declared here
/usr/src/sys/cam/scsi/scsi_sa.c:2731: warning: 'current_blocksize' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2731: note: 'current_blocksize' was declared here
/usr/src/sys/cam/scsi/scsi_sa.c:2734: warning: 'current_speed' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2734: note: 'current_speed' was declared here
/usr/src/sys/cam/scsi/scsi_sa.c:2731: warning: 'current_blocksize' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2731: note: 'current_blocksize' was declared here
/usr/src/sys/cam/scsi/scsi_sa.c:2734: warning: 'current_speed' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2734: note: 'current_speed' was declared here
/usr/src/sys/cam/scsi/scsi_sa.c:2731: warning: 'current_blocksize' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2731: note: 'current_blocksize' was declared here
/usr/src/sys/cam/scsi/scsi_sa.c:2734: warning: 'current_speed' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2734: note: 'current_speed' was declared here
/usr/src/sys/cam/scsi/scsi_sa.c:2731: warning: 'current_blocksize' may be used uninitialized in this function
/usr/src/sys/cam/scsi/scsi_sa.c:2731: note: 'current_blocksize' was declared here
*** Error code 1
Stop in /usr/obj/usr/src/sys/ROUTER.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
Code:
gw# gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]
gw# cc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]