歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> FreeBSD 6.2通過源碼升級到7.0,遇到幾個問題

FreeBSD 6.2通過源碼升級到7.0,遇到幾個問題

日期:2017/2/28 11:11:45   编辑:關於Unix


情況描述:
先同步scr和ports,然後直接make buildworld,make buildkernel,make installkernel,reboot,make installworld方式安裝,由於服務器上只有一個ftp和nat,所以沒有用mergemaster,想看一下效果。
防火牆用ipfw,想用內核的natd,所以加上ipfw等選項。
1、內核配置文件中,sctp和ipfirewall_nat選項通不過,後來注釋掉,先編一個內核測試。看了一下說明,sctp要同時啟用ipv4和ipv6才能工作,因為我不需要ipv6,所以sctp也只好不用了。
2、內核配置文件中,沒有TCP_DROP_SYNFIN選項,默認已經啟用。但是要通過sysctl調整。
3、安裝內核後,重啟,正常。installworld後,重啟,遠程無連接。然後睡覺。
4、到辦公室,接上顯示器,發現主要有兩個錯誤,一個是sshd錯誤,記錄在/var/log/messages裡面。
5、對於第一個錯誤,處理是ee /etc/pam.d/sshd,把第一行的auth改為accout。
7、重新寫內核配置文件,發現內核natd還是不行,出現錯誤:
QUOTE: ip_fw2.o(.text+0x2a4): In function `del_redir_spool_cfg':
/usr/src/sys/netinet/ip_fw2.c:2154: undefined reference to `LibAliasRedirectDelete'
ip_fw2.o(.text+0x17c6): In function `ipfw_destroy':
/usr/src/sys/netinet/ip_fw2.c:5037: undefined reference to `LibAliasUninit'
ip_fw2.o(.text+0x3143): In function `ipfw_ctl':
/usr/src/sys/netinet/ip_fw2.c:4684: undefined reference to `LibAliasInit'
ip_fw2.o(.text+0x3279):/usr/src/sys/netinet/ip_fw2.c:4711: undefined reference to `LibAliasSetMode'
ip_fw2.o(.text+0x3291):/usr/src/sys/netinet/ip_fw2.c:4712: undefined reference to `LibAliasSetAddress'
ip_fw2.o(.text+0x33ae):/usr/src/sys/netinet/ip_fw2.c:2190: undefined reference to `LibAliasRedirectAddr'
ip_fw2.o(.text+0x3450):/usr/src/sys/netinet/ip_fw2.c:2199: undefined reference to `LibAliasRedirectPort'
ip_fw2.o(.text+0x34b2):/usr/src/sys/netinet/ip_fw2.c:2210: undefined reference to `LibAliasRedirectProto'
ip_fw2.o(.text+0x356e):/usr/src/sys/netinet/ip_fw2.c:2226: undefined reference to `LibAliasAddServer'
ip_fw2.o(.text+0x37d9):/usr/src/sys/netinet/ip_fw2.c:4746: undefined reference to `LibAliasUninit'
ip_fw2.o(.text+0x3d5d): In function `ifaddr_change':
/usr/src/sys/netinet/ip_fw2.c:2085: undefined reference to `LibAliasSetAddress'
ip_fw2.o(.text+0x7213): In function `ipfw_chk':
/usr/src/sys/netinet/ip_fw2.c:3502: undefined reference to `m_megapullup'
ip_fw2.o(.text+0x7280):/usr/src/sys/netinet/ip_fw2.c:3566: undefined reference to `LibAliasIn'
ip_fw2.o(.text+0x7299):/usr/src/sys/netinet/ip_fw2.c:3569: undefined reference to `LibAliasOut'

按照/usr/src/sys/conf/NOTES裡的提示,加上編譯參數,還是不行。
最後,仔細看NOTES,發現必須加上options LIBALIAS
終於編譯通過。
Copyright © Linux教程網 All Rights Reserved