View previous topic :: View next topic |
Author |
Message |
waqtlgycrkhy n00b
Joined: 30 Jan 2008 Posts: 17
|
Posted: Tue Feb 05, 2008 3:12 am Post subject: emergere hamachi...BUG? |
|
|
ciao ragazzi,
se provo ad emergere hamachi, mi dice che gli manca il supporto TUN/TAP al kernel. La cosa strana è che continua a dare il problema anche dopo averlo accontentato:
Code: |
* Checking your kernel configuration for TUN/TAP support.
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
*
* ERROR: net-misc/hamachi-0.9.9.9_p20-r2 failed.
* Call stack:
* ebuild.sh, line 1717: Called dyn_setup
* ebuild.sh, line 768: Called qa_call 'pkg_setup'
* ebuild.sh, line 44: Called pkg_setup
* hamachi-0.9.9.9_p20-r2.ebuild, line 38: Called check_extra_config
* linux-info.eclass, line 425: Called require_configured_kernel
* linux-info.eclass, line 145: Called die
* The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
* The die message:
* Kernel not configured; no .config found in
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/net-misc/hamachi-0.9.9.9_p20-r2/temp/build.log'.
*
|
Ecco il modulo attivato (e caricato)
Code: |
gentoo linux # cat .config | grep -i tun
...
CONFIG_TUN=m
|
Il link simbolico al kernel è corretto:
Code: |
gentoo linux # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 12 1 feb 18:13 /usr/src/linux -> linux-2.6.24
|
Ho provato a compilare hamachi a manina e funziona. A questo punto potrebbe essere un bug dell'ebuild fornito dal Portage? |
|
Back to top |
|
|
Kernel78 Moderator
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Tue Feb 05, 2008 8:18 am Post subject: |
|
|
Io, leggendo solo quello che hai postato tu ho trovato interessante questa parte
Code: | * The specific snippet of code:
* die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
* The die message:
* Kernel not configured; no .config found in
| evidentemente la variabile KV_OUT_DIR non è valorizzata (non chiedermi perchè).
Prova a fare una ricerca a riguardo visto che sembra che dovrebbe contenere il percorso a .config da utilizzare per la compilazione. _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
|
xveilsidex Guru
Joined: 27 Dec 2005 Posts: 370 Location: Bari
|
Posted: Tue Feb 05, 2008 8:49 am Post subject: |
|
|
secondo me hai una compilazione kernel fatta male! prova a ricompilare il kernel |
|
Back to top |
|
|
waqtlgycrkhy n00b
Joined: 30 Jan 2008 Posts: 17
|
Posted: Tue Feb 05, 2008 1:38 pm Post subject: |
|
|
Già provato a ricompilare... |
|
Back to top |
|
|
Kernel78 Moderator
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Tue Feb 05, 2008 4:13 pm Post subject: |
|
|
waqtlgycrkhy wrote: | Già provato a ricompilare... |
Il mio post è invisibile o non hai trovato nulla ? _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
|
Tigerwalk Guru
Joined: 15 May 2007 Posts: 475 Location: Napoli
|
Posted: Tue Feb 05, 2008 4:33 pm Post subject: |
|
|
Kernel78 wrote: | waqtlgycrkhy wrote: | Già provato a ricompilare... |
Il mio post è invisibile o non hai trovato nulla ? |
Ho provato anch'io a compilare il pacchetto in questione e ricevo lo stesso errore. Ho cercato di trovare la variabile ${KV_OUT_DIR} cercando nell'ebuild, ma non vi è riferimento valido. Dove e come posso cercare? _________________ Linux user N°447789
Carpe diem (quam minimum credula postero) -Orazio (I,11) |
|
Back to top |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Tue Feb 05, 2008 7:23 pm Post subject: |
|
|
Per curiosità ho controllato anch'io, ed effettivamente non funziona una mazza. Probabilmente c'è qualcosa che non va nell'ebuild (l'eclass linux-info dovrebbe essere apposto, in quanto altri ebuild la utilizzano).
Inoltre non c'è neanche un bug report a riguardo, strana la cosa
[EDIT]
Sì, per me è un bug dell'ebuild, difatti con la seguente modifica funziona correttamente:
Code: |
--- hamachi-0.9.9.9_p20-r2.ebuild 2007-07-12 05:05:58.000000000 +0200
+++ hamachi-0.9.9.9_p20-r2.ebuild 2008-02-05 20:37:16.000000000 +0100
@@ -33,9 +33,12 @@
}
pkg_setup() {
- einfo "Checking your kernel configuration for TUN/TAP support."
- CONFIG_CHECK="TUN"
- check_extra_config
+ if get_version ; then
+ einfo "Checking your kernel configuration for TUN/TAP support."
+ local CONFIG_TUN="~TUN"
+ local ERROR_TUN="CONFIG_TUN:\tis not set)"
+ check_extra_config
+ fi
}
src_unpack() {
|
A sto punto ho aperto un bug report _________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
|
waqtlgycrkhy n00b
Joined: 30 Jan 2008 Posts: 17
|
Posted: Tue Feb 05, 2008 8:58 pm Post subject: |
|
|
Perfetto. Volevo aprirlo anch'io il bug report, ma ho preferito avere conferme da più esperti. Puoi postare l'ebuild corretto in modo da provarlo?
Grazie |
|
Back to top |
|
|
Kernel78 Moderator
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Tue Feb 05, 2008 9:11 pm Post subject: |
|
|
waqtlgycrkhy wrote: | Perfetto. Volevo aprirlo anch'io il bug report, ma ho preferito avere conferme da più esperti. Puoi postare l'ebuild corretto in modo da provarlo?
Grazie |
dai, ti ha postato la patch applicala (consiglio man patch) _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Tue Feb 05, 2008 9:31 pm Post subject: |
|
|
Damn, il problema sembra non essere l'ebuild, ma l'eclass
https://bugs.gentoo.org/show_bug.cgi?id=209027#c2
(mannaggia a chi ha inserito il bug che ha scritto nel subject linux_info invece di linux-info, potevo cercare quanto volevo ) _________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
|
|