[FUG-BR] Erro de Compilação do Kernel no FreeB SD 6.2 Release.

2008-04-13 Por tôpico Paulo Henrique
Olá Lista, Pouco escrevo para a lista mais acompanho diariamente os assuntos
nela discutido.
Bom vim a escrever dessa vez pois não consigo resolver um problema com a
compilação do kernel.

Versão do Sistema: FreeBSD 6.2 Release, e depois com cvsup para p9

Segue o Erro, para melhor comprenssão e junto o arquivo de configuração do
kernel.

Retorno do erro de compilação.


MAKE=make sh /usr/src/sys/conf/newvers.sh ALICEBSD
cc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I.
-I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath
-I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -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-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Werror  vers.c
linking kernel
ieee80211_crypto_ccmp.o(.text+0x8b): In function `ccmp_setkey':
: undefined reference to `ieee80211_note'
ieee80211_crypto_ccmp.o(.text+0x8de): In function `ccmp_decap':
: undefined reference to `ieee80211_notify_replay_failure'
ieee80211_crypto_ccmp.o(.text+0xbd7): In function `ccmp_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_ccmp.o(.text+0xcae): In function `ccmp_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_ccmp.o(.text+0xcf3): In function `ccmp_modevent':
: undefined reference to `ieee80211_crypto_unregister'
ieee80211_crypto_ccmp.o(.text+0xd06): In function `ccmp_modevent':
: undefined reference to `ieee80211_crypto_register'
ieee80211_crypto_tkip.o(.text+0x87): In function `tkip_setkey':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0x7d5): In function `tkip_encap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0xc95): In function `tkip_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0xcd9): In function `tkip_decap':
: undefined reference to `ieee80211_notify_replay_failure'
ieee80211_crypto_tkip.o(.text+0xd08): In function `tkip_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0xe8b): In function `tkip_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0x1499): In function `tkip_demic':
: undefined reference to `ieee80211_notify_michael_failure'
ieee80211_crypto_tkip.o(.text+0x15e3): In function `tkip_modevent':
: undefined reference to `ieee80211_crypto_unregister'
ieee80211_crypto_tkip.o(.text+0x15f6): In function `tkip_modevent':
: undefined reference to `ieee80211_crypto_register'
ieee80211_crypto_wep.o(.text+0x2b): In function `wep_attach':
: undefined reference to `get_random_bytes'
ieee80211_crypto_wep.o(.text+0x3b3): In function `wep_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_wep.o(.text+0x3ef): In function `wep_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_wep.o(.text+0x779): In function `wep_encap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_wep.o(.text+0x887): In function `wep_modevent':
: undefined reference to `ieee80211_crypto_unregister'
ieee80211_crypto_wep.o(.text+0x89a): In function `wep_modevent':
: undefined reference to `ieee80211_crypto_register'
*** Error code 1

Stop in /usr/obj/usr/src/sys/ALICEBSD.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Fim do erro de compilação.

Arquivo de configuração do kernel.

ALICEBSD# cd /usr/src/sys/i386/conf/
ALICEBSD# ls
.cvsignoreDEFAULTSGENERIC.hintsNOTESSMP
ALICEBSDGENERICMakefilePAEXBOX
ALICEBSD# cat ALICEBSD
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.13 2006/10/09 18:41:36 simon
Exp $

machinei386
cpuI686_CPU
identALICEBSD

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

options SCHED_4BSD# 4BSD scheduler
options PREEMPTION# Enable kernel thread preemption
options INET  

Re: [FUG-BR] Erro de Compilação do Kernel no FreeB SD 6.2 Release.

2008-04-13 Por tôpico Ederson de Moura
Olá Paulo Henrique,

Você alterou o arquivo?

/usr/src/sys/conf/newvers.sh

Se sim, aconselho a não alterar esse arquivo manualmente, passe o nome
no kernel sempre no arquivo de configuração do mesmo, outra coisa, retire do
seu /etc/make.conf qualquer parâmetro de optimização de compilação.

Depois no arquivo de configuração do kernel retire as opções:

device crypto
device cryptodev

Me parece que o problema é nelas. E tente compilar novamente com
essas alterações que eu mencionei, e veja se roda.

Abraços, edm.


On Mon, Mar 31, 2008 at 12:56 PM, Paulo Henrique
[EMAIL PROTECTED] wrote:
 Olá Lista, Pouco escrevo para a lista mais acompanho diariamente os assuntos
  nela discutido.
  Bom vim a escrever dessa vez pois não consigo resolver um problema com a
  compilação do kernel.

  Versão do Sistema: FreeBSD 6.2 Release, e depois com cvsup para p9

  Segue o Erro, para melhor comprenssão e junto o arquivo de configuração do
  kernel.

  Retorno do erro de compilação.


  MAKE=make sh /usr/src/sys/conf/newvers.sh ALICEBSD
  cc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls
  -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
  -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I.
  -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
  -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath
  -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -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-mmx -mno-3dnow -mno-sse -mno-sse2
  -ffreestanding -Werror  vers.c
  linking kernel
  ieee80211_crypto_ccmp.o(.text+0x8b): In function `ccmp_setkey':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_ccmp.o(.text+0x8de): In function `ccmp_decap':
  : undefined reference to `ieee80211_notify_replay_failure'
  ieee80211_crypto_ccmp.o(.text+0xbd7): In function `ccmp_decap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_ccmp.o(.text+0xcae): In function `ccmp_decap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_ccmp.o(.text+0xcf3): In function `ccmp_modevent':
  : undefined reference to `ieee80211_crypto_unregister'
  ieee80211_crypto_ccmp.o(.text+0xd06): In function `ccmp_modevent':
  : undefined reference to `ieee80211_crypto_register'
  ieee80211_crypto_tkip.o(.text+0x87): In function `tkip_setkey':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_tkip.o(.text+0x7d5): In function `tkip_encap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_tkip.o(.text+0xc95): In function `tkip_decap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_tkip.o(.text+0xcd9): In function `tkip_decap':
  : undefined reference to `ieee80211_notify_replay_failure'
  ieee80211_crypto_tkip.o(.text+0xd08): In function `tkip_decap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_tkip.o(.text+0xe8b): In function `tkip_decap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_tkip.o(.text+0x1499): In function `tkip_demic':
  : undefined reference to `ieee80211_notify_michael_failure'
  ieee80211_crypto_tkip.o(.text+0x15e3): In function `tkip_modevent':
  : undefined reference to `ieee80211_crypto_unregister'
  ieee80211_crypto_tkip.o(.text+0x15f6): In function `tkip_modevent':
  : undefined reference to `ieee80211_crypto_register'
  ieee80211_crypto_wep.o(.text+0x2b): In function `wep_attach':
  : undefined reference to `get_random_bytes'
  ieee80211_crypto_wep.o(.text+0x3b3): In function `wep_decap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_wep.o(.text+0x3ef): In function `wep_decap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_wep.o(.text+0x779): In function `wep_encap':
  : undefined reference to `ieee80211_note'
  ieee80211_crypto_wep.o(.text+0x887): In function `wep_modevent':
  : undefined reference to `ieee80211_crypto_unregister'
  ieee80211_crypto_wep.o(.text+0x89a): In function `wep_modevent':
  : undefined reference to `ieee80211_crypto_register'
  *** Error code 1

  Stop in /usr/obj/usr/src/sys/ALICEBSD.
  *** Error code 1

  Stop in /usr/src.
  *** Error code 1

  Stop in /usr/src.

  Fim do erro de compilação.

  Arquivo de configuração do kernel.

  ALICEBSD# cd /usr/src/sys/i386/conf/
  ALICEBSD# ls
  .cvsignoreDEFAULTSGENERIC.hintsNOTESSMP
  ALICEBSDGENERICMakefilePAEXBOX
  ALICEBSD# cat ALICEBSD
  #
  # GENERIC -- Generic kernel configuration file for FreeBSD/i386
  #
  # For more information on this file, please read the handbook section on
  # Kernel Configuration Files:
  #
  #
  
 http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
  #
  # The handbook is also available locally in /usr/share/doc/handbook
  # if you've installed the doc distribution, 

Re: [FUG-BR] Erro de Compilação do Kernel no FreeB SD 6.2 Release.

2008-04-13 Por tôpico Paulo Henrique
Jà solucionei, e como não tinha ainda obtido a autorização do mantenedor da
lista para ser postado nem coloquei o motivo do problema.

Agora respondendo ao Srº Ederson:

Quanto a editar o as arquivos do sistema eu tenho outra instalação para isso
e já fico atento a possiveis erros, o arquivo no qual foi referido não foi
modificado.

Quanto as opições do kernel:
device crypto
device cryptodev
Embora já tive problemas com eles, mais é pelo fato de falta de mais uma
entrada no arquivo de configuração do kernel.
quando se faz teste com VPN esses dois devices são necessarios.

e passo o nome do arquivo do kernel atravez do make alem de especifica-lo no
arquivo de configuração.

Solução para o problema.

Removi todas as definiçõa para a compilação de drivers wireless e tinha
deixado apenas as referencias para protocolos wireless, observe:

# Wireless NIC cards
#devicewlan# 802.11 support
devicewlan_wep# 802.11 WEP support
devicewlan_ccmp# 802.11 CCMP support
devicewlan_tkip# 802.11 TKIP support

Havia comentado o device wlan que é uma referencia.
no caso e testado, eu descomentei e funcionou normalmente, e comentei todas
as referencias para wireless e compilou e funcionou normalmente tambem.

bom isso ai que aconteceu.

Até mais.


Atenciosamente Paulo Henrique. To Powered By  BSD Unix.
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd