Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Aggiornamento wxGTK e amuled non parte più!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Mon Dec 04, 2006 9:57 am    Post subject: [RISOLTO] Aggiornamento wxGTK e amuled non parte più! Reply with quote

L'ultmo update (emerge -uD world) mi ha aggiornato anche le librerie gtk+. Da allora non riesco più a lanciare amuled. Se lancio il servizio da root ottengo questo:

Code:
# /etc/init.d/amuled start
 * Starting aMule Daemon ...
 * aMule daemon can't be started! Check logfile: /var/log/amuled.log      [ ok ]


ma il file di log è sempre vuoto!
Se mi loggo con l'utenza con la quale gira l demone e lo lancio semplicemente con il comando ho qualche dettaglio in più:
Code:

$ amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
        aMule Version: aMuled 2.1.3 using wxGTK2 v2.6.2

Terminated after throwing an instance of 'CInvalidStateEx'
        what(): CRunTimeException::CInvalidStateException: CFile: Cannot get length of closed file.
        backtrace:
[2] ?? in amuled [0x8059e18]
[3] wxEntry(int&, char**) in /usr/lib/libwx_base-2.6.so.0[0xb7d95c50]
[4] ?? in amuled [0x8053824]
[5] __libc_start_main in /lib/libc.so.6[0xb7b1d864]
[6] wxEvtHandler::ProcessEvent(wxEvent&) in amuled[0x8053301]

Aborted


Qualche suggerimento?
Grazie per l'attenzione, ciao!
GePs

UPDATE: Il problema era sulla ownership dei file nella directory .aMule :oops:


Last edited by geps2 on Fri Dec 08, 2006 2:35 pm; edited 2 times in total
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Mon Dec 04, 2006 10:10 am    Post subject: Reply with quote

prova a riemerge amule.
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Mon Dec 04, 2006 10:11 am    Post subject: Reply with quote

Alla fine del processo di installazione delle nuove gtk+ compare un messaggio molto importante.
Lo puoi rileggere soto
Code:
/var/log/portage/elog/
se in
Code:
/etc/make.conf
hai settato
Code:
PORTAGE_ELOG_CLASSES="info warn error log"
PORTAGE_ELOG_SYSTEM="save"


Altrimenti apri l'ebuild delle gtk+ : il messaggio è in fondo.

Se hai problemi fai un fischio
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Mon Dec 04, 2006 8:03 pm    Post subject: Reply with quote

crisandbea wrote:
prova a riemerge amule.


ti pare? Dopo ho anche dato emerge -e world && emerge -e system, ma senza risultati...
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Mon Dec 04, 2006 8:06 pm    Post subject: Reply with quote

.:deadhead:. wrote:
Alla fine del processo di installazione delle nuove gtk+ compare un messaggio molto importante.
Lo puoi rileggere soto
Code:
/var/log/portage/elog/
se in
Code:
/etc/make.conf
hai settato
Code:
PORTAGE_ELOG_CLASSES="info warn error log"
PORTAGE_ELOG_SYSTEM="save"


Altrimenti apri l'ebuild delle gtk+ : il messaggio è in fondo.


Eh?
update: naturlamente non avevo settato un bel niente...
Quote:

Se hai problemi fai un fischio


Ok, provo a capirci qualcosa, semmai domani avrai il fischio :)
updtate: mi sa che il fischio te lo faccio prima:

Code:
# equery list | grep gtk
x11-libs/gtk+-2.10.6

quindi l'ebuild è /usr/portage/x11-libs/gtk+/gtk+-2.10.6.ebuild. Devo modificare qualcosa lì dentro?


Last edited by geps2 on Mon Dec 04, 2006 8:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Mon Dec 04, 2006 8:12 pm    Post subject: Reply with quote

geps2 wrote:
Dopo ho anche dato emerge -e world && emerge -e system, ma senza risultati...

ce n'è di gente che si diverte a farsi inutilmente del male....

dunque, tu hai parlato di gtk+, e non wxGTK. hai ricompilato anche wxGTK (interessava solo quello, non world)? hai osservato se in compilazione di wxGTK (sempre che sia stati ricompilato) e di amule (idem) vengono prodotte eccezioni?

hai provato ad eseguire amule dal prompt per vedere di intercettare eventuali log?
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Mon Dec 04, 2006 8:23 pm    Post subject: Reply with quote

.:chrome:. wrote:
geps2 wrote:
Dopo ho anche dato emerge -e world && emerge -e system, ma senza risultati...

ce n'è di gente che si diverte a farsi inutilmente del male....


:D beh, sono ancora vivo. E anche il server.
Quote:

dunque, tu hai parlato di gtk+, e non wxGTK. hai ricompilato anche wxGTK (interessava solo quello, non world)? hai osservato se in compilazione di wxGTK (sempre che sia stati ricompilato) e di amule (idem) vengono prodotte eccezioni?

Naturalmente. Per le eccezioni non saprei dirti, ma adesso ho abilitato il log come da suggerimenti precedenti, e se lo ricompilo dovrei averli sotto /var

Quote:
hai provato ad eseguire amule dal prompt per vedere di intercettare eventuali log?

Certo, così come dico nel primo messaggio del thread, nel quale posto anche l'output...
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Mon Dec 04, 2006 8:42 pm    Post subject: Reply with quote

geps2 wrote:
Certo, così come dico nel primo messaggio del thread, nel quale posto anche l'output...

ok, è ufficiale: ho gli occhi nel c**o! perdonami

io controllerei se /usr/lib/libwx_base-2.6.so.0 appartiene effettivamente a wxGTK o è in file fantasma.
poi proverei eventualmente un'altra versione di wxGTK (occhio che devi ricompilare anche amule!) e poi di amule

purtroppo quello che ti è successo non ha molto senso, quindi non so nemmeno cosa dirti
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Mon Dec 04, 2006 8:48 pm    Post subject: Reply with quote

.:chrome:. wrote:
geps2 wrote:
Certo, così come dico nel primo messaggio del thread, nel quale posto anche l'output...

ok, è ufficiale: ho gli occhi nel c**o! perdonami

io controllerei se /usr/lib/libwx_base-2.6.so.0 appartiene effettivamente a wxGTK o è in file fantasma.
poi proverei eventualmente un'altra versione di wxGTK (occhio che devi ricompilare anche amule!) e poi di amule

purtroppo quello che ti è successo non ha molto senso, quindi non so nemmeno cosa dirti


quella libreria dovrebbe essere:
Code:

ls -l /usr/lib/libwx_base-2.6.so.0
lrwxrwxrwx 1 root root 23 Nov 14 23:27 /usr/lib/libwx_base-2.6.so.0 -> libwx_base-2.6.so.0.2.0


a titolo di cronaca, a me con le tue stesse versioni di librerie gtk+, ed amule, funziona senza problemi. ho solo dovuto emergere prima le gtk+ le wxGTK, e dopo amule.

prova a fare cosi.

nb:amule l'ho compilato con le seguenti flag in package.use :
Code:
net-p2p/amule amuled debug gtk remote stats


spero possa aiutarti.
ciauz
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Mon Dec 04, 2006 9:05 pm    Post subject: Reply with quote

.:chrome:. wrote:
geps2 wrote:
Certo, così come dico nel primo messaggio del thread, nel quale posto anche l'output...

ok, è ufficiale: ho gli occhi nel c**o! perdonami

Quando si dice la diplomazia...
Quote:
io controllerei se /usr/lib/libwx_base-2.6.so.0 appartiene effettivamente a wxGTK o è in file fantasma.

Esiste: lrwxrwxrwx 1 root root 23 Dec 4 22:50 /usr/lib/libwx_base-2.6.so.0 -> libwx_base-2.6.so.0.2.0

Quote:
poi proverei eventualmente un'altra versione di wxGTK (occhio che devi ricompilare anche amule!) e poi di amule

oddio... e quale versione? Qual era quella che avevo prima? e comunque non c'è un'altra versione di amule (a meno di non installare quella cvs)

Quote:
purtroppo quello che ti è successo non ha molto senso, quindi non so nemmeno cosa dirti

Cosa non ha molto senso? il fatto che l'upgrade di na libreria prgiudichi il funzionamento di un programma?


Last edited by geps2 on Mon Dec 04, 2006 9:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Mon Dec 04, 2006 9:09 pm    Post subject: Reply with quote

crisandbea wrote:

a titolo di cronaca, a me con le tue stesse versioni di librerie gtk+, ed amule, funziona senza problemi. ho solo dovuto emergere prima le gtk+ le wxGTK, e dopo amule.

prova a fare cosi.

nb:amule l'ho compilato con le seguenti flag in package.use :
Code:
net-p2p/amule amuled debug gtk remote stats



Oh bene, quindi c'è una via d'uscita! :)

io ho questi qui nel package.use, che prima funzionavano...

Code:
media-libs/gd jpeg png
x11-libs/cairo X pdf
x11-libs/gtk+ X
x11-libs/wxGTK X
net-p2p/amule amuled gtk nls remote stats -unicode


Adesso provo:
Code:
#emerge gtk+ && emerge wxGTK && emerge amule

E se funziona cosa si deve dedurre? che l'ordine di compilazione è significativo?
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Mon Dec 04, 2006 9:11 pm    Post subject: Reply with quote

probabilmente si.
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Mon Dec 04, 2006 10:09 pm    Post subject: Reply with quote

geps2 wrote:
quindi l'ebuild è /usr/portage/x11-libs/gtk+/gtk+-2.10.6.ebuild. Devo modificare qualcosa lì dentro?

Esatto, lì infondo c'è un mex dei gentoo-devel che ti è apparso anche a fine installazione che ti avvisa circa come comportarti, nulla da editare nell'ebuild, solo una buona lettura ;)

Quanto scritto là, oltre a riemergere wxGTK & amule dovrebbe risolvere ;)
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Tue Dec 05, 2006 9:18 am    Post subject: Reply with quote

.:deadhead:. wrote:

Quanto scritto là, oltre a riemergere wxGTK & amule dovrebbe risolvere ;)


Ti riferisci a questo?

Code:
pkg_postinst() {
    set_gtk2_confdir

    if [ -d "${ROOT}${GTK2_CONFDIR}" ]; then
        gtk-query-immodules-2.0  > ${ROOT}${GTK2_CONFDIR}/gtk.immodules
        gdk-pixbuf-query-loaders > ${ROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders
    else
        ewarn "The destination path ${ROOT}${GTK2_CONFDIR} doesn't exist;"
        ewarn "to complete the installation of GTK+, please create the"
        ewarn "directory and then manually run:"
        ewarn "  cd ${ROOT}${GTK2_CONFDIR}"
        ewarn "  gtk-query-immodules-2.0  > gtk.immodules"
        ewarn "  gdk-pixbuf-query-loaders > gdk-pixbuf.loaders"
    fi

    if [ -e /usr/lib/gtk-2.0/2.[^1]* ]; then
        elog "You need to rebuild ebuilds that installed into" /usr/lib/gtk-2.0/2.[^1]*
        elog "to do that you can use qfile from portage-utils:"
        elog "emerge -va1 \$(qfile -qC" /usr/lib/gtk-2.0/2.[^1]* ")"
    fi
}


Perdonatemi, ma non ci ho capito granché... :(
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Tue Dec 05, 2006 9:31 am    Post subject: Reply with quote

geps2 wrote:
.:deadhead:. wrote:

Quanto scritto là, oltre a riemergere wxGTK & amule dovrebbe risolvere ;)


Ti riferisci a questo?

Code:
pkg_postinst() {
    set_gtk2_confdir

    if [ -d "${ROOT}${GTK2_CONFDIR}" ]; then
        gtk-query-immodules-2.0  > ${ROOT}${GTK2_CONFDIR}/gtk.immodules
        gdk-pixbuf-query-loaders > ${ROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders
    else
        ewarn "The destination path ${ROOT}${GTK2_CONFDIR} doesn't exist;"
        ewarn "to complete the installation of GTK+, please create the"
        ewarn "directory and then manually run:"
        ewarn "  cd ${ROOT}${GTK2_CONFDIR}"
        ewarn "  gtk-query-immodules-2.0  > gtk.immodules"
        ewarn "  gdk-pixbuf-query-loaders > gdk-pixbuf.loaders"
    fi

    if [ -e /usr/lib/gtk-2.0/2.[^1]* ]; then
        elog "You need to rebuild ebuilds that installed into" /usr/lib/gtk-2.0/2.[^1]*
        elog "to do that you can use qfile from portage-utils:"
        elog "emerge -va1 \$(qfile -qC" /usr/lib/gtk-2.0/2.[^1]* ")"
    fi
}


Perdonatemi, ma non ci ho capito granché... :(


credo si riferisca a queste righe, ed in particolare all'ultimo if.

hai provato a fare come ti avevo suggerito??? ti funziona??? ti dà errori???

ciauz
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Tue Dec 05, 2006 2:32 pm    Post subject: Reply with quote

crisandbea wrote:

hai provato a fare come ti avevo suggerito??? ti funziona??? ti dà errori???


Sì, nulla di fatto...
update - risposta a crisandbea: Sì, sempre lo stesso

riporto qui il log della compilazione di wxgtk:

Code:
INFO: setup
To install only wxbase (non-gui libs) use USE=-X

WARN: setup
This profile has not been tested thoroughly and is not considered to be
a supported server profile at this time.  For a supported server
profile, please check the Hardened project (http://hardened.gentoo.org).
This profile is merely a convenience for people who require a more
minimal profile, yet are unable to use hardened due to restrictions in
the software being used on the server. This profile should also be used
if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
applies to you, then it doesn't and you should probably be using
Hardened, instead.

INFO: unpack
Applying wxWidgets-2.6.2-gcc41.patch ...
Applying intl.cpp.diff ...

INFO: compile
Using GNU config files from /usr/share/libtool
  Updating config.sub
  Updating src/expat/conftools/config.sub
  Updating config.guess
  Updating src/expat/conftools/config.guess

INFO: postinst
dev-libs/wxbase has been removed from portage and can be
installed with wxGTK by specifying the USE flags
-X


Last edited by geps2 on Tue Dec 05, 2006 2:54 pm; edited 3 times in total
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Tue Dec 05, 2006 2:34 pm    Post subject: Reply with quote

geps2 wrote:
crisandbea wrote:

hai provato a fare come ti avevo suggerito??? ti funziona??? ti dà errori???


Sì, nulla di fatto...


che errori ti dà??? sempre lo stesso ???

ciauz
Back to top
View user's profile Send private message
geps2
Apprentice
Apprentice


Joined: 12 Jul 2006
Posts: 267

PostPosted: Wed Dec 06, 2006 9:55 pm    Post subject: Reply with quote

qui sotto incollo gli USE che ho configurato, e i log che ho quando provo a ricompilare tutto...
:(

Code:

# cat /etc/portage/package.use
net-fs/samba oav readline cups pam swat libclamav -mysql
media-libs/gd jpeg png
x11-libs/cairo X pdf
x11-libs/gtk+ X
x11-libs/wxGTK X gtk2
net-p2p/amule amuled gtk nls remote stats -unicode
app-crypt/gnupg crypt
mail-mta/postfix -mysql -ldap

# emerge gtk+ && emerge wxGTK && emerge amule

# cat x11-libs:gtk+-2.10.6:20061205-225716.log
WARN: setup
This profile has ...

INFO: unpack
Applying gtk+-2.8.10-xinerama.patch ...
Running eautoreconf in '/var/tmp/portage/gtk+-2.10.6/work/gtk+-2.10.6' ...
Requested automake 1.7
Using automake (GNU automake) 1.7.9
Using aclocal (GNU automake) 1.7.9
Running aclocal -I . ...
Running libtoolize --copy --force --automake ...
Running aclocal -I . ...
Running autoconf ...
Running autoheader ...
Running automake --add-missing --copy ...
Running elibtoolize in: gtk+-2.10.6
  Applying max_cmd_len-1.5.0.patch ...
  Applying sed-1.5.6.patch ...
Removing useless C++ checks ...

# cat x11-libs:wxGTK-2.6.2-r1:20061205-231929.log
INFO: setup
To install only wxbase (non-gui libs) use USE=-X

WARN: setup
This profile has ...

INFO: unpack
Applying wxWidgets-2.6.2-gcc41.patch ...
Applying intl.cpp.diff ...

INFO: compile
Using GNU config files from /usr/share/libtool
  Updating config.sub
  Updating src/expat/conftools/config.sub
  Updating config.guess
  Updating src/expat/conftools/config.guess

INFO: postinst
dev-libs/wxbase has been removed from portage and can be
installed with wxGTK by specifying the USE flags
-X

# cat net-p2p:amule-2.1.3:20061205-233019.log
INFO: setup
wxGTK with gtk2 support will be used

WARN: setup
This profile has...

WARN: compile
has_hardened: deprecated, please use gcc-specs-{relro,now}()!

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum