aMule Forum

English => en_Bugs => Topic started by: nachbarnebenan on November 07, 2004, 01:24:27 AM

Title: SuSE 9.2
Post by: nachbarnebenan on November 07, 2004, 01:24:27 AM
Well, it seems SuSE 9.2 and aMule don't go together very well.
I haven't tried the onboard wxWidgets but compiled 2.5.3 myself as usual. It works at first, server connection, upload, download everything ok, but once you start the second search or cancel the first one (which doesn't ever end by itself) aMule freezes. There's no error or even backtrace, both amule and gdb go into "D" state, the only way is to kill -9 them both. Most nasty is, it takes about half an hour until the amule port is freed again, so I have to change it every time in .eMule to be able to get a high ID.
I will try several combinations wx 2.5.2/2.5.3 and gtk1/gtk2 and see if I can produce something more useful. Until that, has anyone a clue what the reason could be?
Title: Re: SuSE 9.2
Post by: deltaHF on November 07, 2004, 01:40:09 AM
i didn't tried wx 2.5.x yet, but it works pretty well with wxgtk/wxbase 2.4.2

 http://download.berlios.de/amule/aMule-2.0.0rc7-2.i586-SuSE_9.2.rpm
Title: Re: SuSE 9.2
Post by: nachbarnebenan on November 07, 2004, 11:41:22 AM
Ok, I tried 2.4.2 and get all the same, when I start a second search or stop (or close) the first one amule and gdb freeze.
I start to suspect it's not amule nor wx fault, but suse screwed up something again. Well, since I didn't update all my hosts I will run amule on a 9.1 system for the moment and try to sort this out tomorrow.
Title: Re: SuSE 9.2
Post by: GuerreroPeludo_ on November 07, 2004, 09:41:03 PM
Hi,
this is not the first time i am problem with amule and Suse, but i compile a lot of program and only amule get faults.... suse do soething wrong but get a litle of work and do your soft work ok in all host is a good idea, SuSe is very important ditro to be skiped.

GuerreroPeludo

PS thx for you work in aMule

some error as gift :
...
*** TCP socket at 4662
ListenSocket: Ok.
AICH Thread: Syncronization thread started.
AICH Thread: Masterhashes of known files have been loaded.
AICH Thread: No new files found.
AICH Thread: Thread terminated.
Saving userhash: DF0AD99A1E0EE5658C3E2272E9D06FFF

OOPS! - Seems l
--== BACKTRACE FOLLOWS: ==--

[0x405dd756]
[2] [0xffffe420]
[3] /opt/gnome/lib/libgtk-1.2.so.0(gtk_marshal_BOOL__POINTER+0x24) [0x406b23a4]
[4] /opt/gnome/lib/libgtk-1.2.so.0 [0x406e7cc7]
[5] /opt/gnome/lib/libgtk-1.2.so.0 [0x406e8be4]
[6] /opt/gnome/lib/libgtk-1.2.so.0(gtk_signal_emit+0x156) [0x406e8ea6]
[7] /opt/gnome/lib/libgtk-1.2.so.0(gtk_widget_event+0x1b5) [0x40725b05]
[8] /opt/gnome/lib/libgtk-1.2.so.0(gtk_main_do_event+0x2b1) [0x406b1581]
[9] /opt/gnome/lib/libgdk-1.2.so.0 [0x407760e0]
[10] /opt/gnome/lib/libglib-1.2.so.0 [0x407aae28]
[11] /opt/gnome/lib/libglib-1.2.so.0 [0x407ab744]
[12] /opt/gnome/lib/libglib-1.2.so.0(g_main_run+0x3f) [0x407ab85f]
[13] /opt/gnome/lib/libgtk-1.2.so.0(gtk_main+0xbf) [0x406b1abf]
[14] /usr/lib/libwx_gtk_core-2.5.so.3(_ZN11wxEventLoop3RunEv+0x56) [0x402e3196]
[15] /usr/lib/libwx_gtk_core-2.5.so.3(_ZN9wxAppBase8MainLoopEv+0x49) [0x403606c9]
[16] /usr/lib/libwx_gtk_core-2.5.so.3(_ZN9wxAppBase5OnRunEv+0x33) [0x403604d3]
[17] /usr/lib/libwx_base-2.5.so.3(_Z7wxEntryRiPPc+0x4f) [0x405882ff]
[18] amule(main+0x1f) [0x829b531]
[19] /lib/tls/libc.so.6(__libc_start_main+0xe0) [0x40b2fb10]
[20] amule(_ZNK15wxCmdLineParser5FoundERK8wxStringPS0_+0x35) [0x8121c01]
Abandon
Title: Re: SuSE 9.2
Post by: deltaHF on November 07, 2004, 10:17:34 PM
well, i use gtk-1.2.10 from suse 9.1 cos i couldn't find gtk-config on my suse 9.2 cd's .. what version of gtk are you using guys?
Title: Re: SuSE 9.2
Post by: GuerreroPeludo_ on November 07, 2004, 10:37:03 PM
rpm -qa | grep gtk
gtk-engines-0.12-960
gtkmm-1.2.10-301
gtkdoc-1.2-62
gtk-1.2.10-882
gtkspell-2.0.5-58
gtklp-0.9u-2
gtk2-engines-2.2.0-400
gtk2-themes-0.1-636
gtkhtml2-3.2.2-3
gtkam-0.1.12-2
gtk2-doc-2.4.9-10
libgtkhtml-devel-2.6.1-3
gtk-qt-engine-0.5-9
libgtkhtml-2.6.1-3
python-gtk-2.2.0-3
gtkglarea-1.2.2-893
gtk2-devel-2.4.9-10
gtk2-2.4.9-10
gtksourceview-1.0.1-3
libexif-gtk-0.3.3-308

 rpm -qa | grep wx
wxGTK-compat-2.5.2.8-3
wxGTK-2.5.3-1
Title: Re: SuSE 9.2
Post by: deltaHF on November 07, 2004, 11:14:45 PM
thx GuerreroPeludo_

looks like you lack gtk-devel-1.2.10 too .. and your crash might be related to wxgtk .. uninstall wxGTK-compat-2.5.2.8-3 and wxGTK-2.5.3-1, get wxgtk, wxgtk-devel and wxbase from our dl page and install amule from the link i posted above.

the last thing, that might help you guys, would be to downgrade gtk-1.2.10 + gtk-devel-1.2.10 (from suse 9.1)..

amule is running fine here under 9.2
Title: Re: SuSE 9.2
Post by: nachbarnebenan on November 08, 2004, 12:37:52 AM
Quote
the last thing, that might help you guys, would be to downgrade gtk-1.2.10 + gtk-devel-1.2.10 (from suse 9.1)..

amule is running fine here under 9.2

Downgrade of gtk/gtk2 or wx is not possible, there are too many dependencies, at least here. Would it be sufficiant, if I compile a separate version of gtk in /home/amule and adjust the paths for wx and amule accordingly?
2nd question, did You use the onboard wx from 9.2 to build amule? If Yes, I must have screwed up my system myself and it's not suse to blame on. Shame on me.
Title: Re: SuSE 9.2
Post by: deltaHF on November 08, 2004, 12:43:37 AM
come to irc plz
Title: Re: SuSE 9.2
Post by: nachbarnebenan on November 08, 2004, 02:45:12 AM
I gave the self compiled wx 2.5.3 and amule a last chance before trying the rpms and got this right at the start:

Adding file /share/temp/182.part.met to shares
Adding file /share/temp/185.part.met to shares
Adding file /share/temp/198.part.met to shares
Adding file /share/temp/201.part.met to shares
Empty dir /share/in/ shared
*** TCP socket at 2140
ListenSocket: Ok.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1087887840 (LWP 7844)]
0x40439796 in wxWindowBase::GetId (this=0x0) at window.h:202
202         wxWindowID GetId() const { return m_windowId; }
(gdb) bt
#0  0x40439796 in wxWindowBase::GetId (this=0x0) at window.h:202
#1  0x403218c7 in gtk_frame_focus_out_callback (widget=0x8a8a168, win=0x8a88b90) at toplevel.cpp:139
#2  0x4073b3a4 in gtk_marshal_BOOL__POINTER () from /opt/gnome/lib/libgtk-1.2.so.0
#3  0x40770cc7 in gtk_handlers_run () from /opt/gnome/lib/libgtk-1.2.so.0
#4  0x40771be4 in gtk_signal_real_emit () from /opt/gnome/lib/libgtk-1.2.so.0
#5  0x40771ea6 in gtk_signal_emit () from /opt/gnome/lib/libgtk-1.2.so.0
#6  0x407aeb05 in gtk_widget_event () from /opt/gnome/lib/libgtk-1.2.so.0
#7  0x4073a581 in gtk_main_do_event () from /opt/gnome/lib/libgtk-1.2.so.0
#8  0x407ff0e0 in gdk_event_dispatch () from /opt/gnome/lib/libgdk-1.2.so.0
#9  0x40833e28 in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
#10 0x40834744 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
#11 0x4083485f in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
#12 0x4073aabf in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
#13 0x40314fa2 in wxEventLoop::Run (this=0x8bb9908) at evtloop.cpp:83
#14 0x403a502a in wxAppBase::MainLoop (this=0x8599410) at appcmn.cpp:272
#15 0x403a5188 in wxAppBase::OnRun (this=0x8599410) at appcmn.cpp:340
#16 0x405f8b10 in wxEntry (argc=@0xbfffedb0, argv=0xbfffee34) at init.cpp:410
#17 0x082a7394 in main (argc=1, argv=0xbfffee34) at amule.cpp:180
(gdb) bt full
#0  0x40439796 in wxWindowBase::GetId (this=0x0) at window.h:202
No locals.
#1  0x403218c7 in gtk_frame_focus_out_callback (widget=0x8a8a168, win=0x8a88b90) at toplevel.cpp:139
        event = { = { = {_vptr.wxObject = 0xb9c5d36, static ms_classInfo = {m_className = 0x4066048d "wxObject", m_objectSize = 8,
        m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0x839d250, m_next = 0x40695f90,
        static sm_classTable = 0x8589008}, m_refData = 0x0}, m_eventObject = 0x0, m_eventType = 0, m_timeStamp = 0, m_id = 377,
    m_callbackUserData = 0x1eb, m_propagationLevel = 0, m_skipped = false, m_isCommandEvent = false, static ms_classInfo = {
      m_className = 0x4066492f "wxEvent", m_objectSize = 36, m_objectConstructor = 0, m_baseInfo1 = 0x40695f54, m_baseInfo2 = 0x0,
      static sm_first = 0x839d250, m_next = 0x406961e4, static sm_classTable = 0x8589008}}, m_active = true, static ms_classInfo = {
    m_className = 0x4047b2b5 "wxActivateEvent", m_objectSize = 36, m_objectConstructor = 0x402e18c8 ,
    m_baseInfo1 = 0x406961fc, m_baseInfo2 = 0x0, static sm_first = 0x839d250, m_next = 0x4050faa4, static sm_classTable = 0x8589008}}
#2  0x4073b3a4 in gtk_marshal_BOOL__POINTER () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#3  0x40770cc7 in gtk_handlers_run () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#4  0x40771be4 in gtk_signal_real_emit () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#5  0x40771ea6 in gtk_signal_emit () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#6  0x407aeb05 in gtk_widget_event () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#7  0x4073a581 in gtk_main_do_event () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#8  0x407ff0e0 in gdk_event_dispatch () from /opt/gnome/lib/libgdk-1.2.so.0
No symbol table info available.
#9  0x40833e28 in g_main_dispatch () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#10 0x40834744 in g_main_iterate () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#11 0x4083485f in g_main_run () from /opt/gnome/lib/libglib-1.2.so.0
No symbol table info available.
#12 0x4073aabf in gtk_main () from /opt/gnome/lib/libgtk-1.2.so.0
No symbol table info available.
#13 0x40314fa2 in wxEventLoop::Run (this=0x8bb9908) at evtloop.cpp:83
        oldLoop = (wxEventLoop *) 0x0
        exitcode = 1078915088
#14 0x403a502a in wxAppBase::MainLoop (this=0x8599410) at appcmn.cpp:272
        mainLoop = { = {m_ptr = 0x8bb9908}, m_pp = 0x8599450, m_pOld = 0x0}
#15 0x403a5188 in wxAppBase::OnRun (this=0x8599410) at appcmn.cpp:340
No locals.
#16 0x405f8b10 in wxEntry (argc=@0xbfffedb0, argv=0xbfffee34) at init.cpp:410
        callOnExit = {}
        cleanupOnExit = {}
#17 0x082a7394 in main (argc=1, argv=0xbfffee34) at amule.cpp:180
No locals.
(gdb)
Title: Re: SuSE 9.2
Post by: GuerreroPeludo_ on November 08, 2004, 09:01:15 AM
Donwgrade system!?

plz do resonable fix, as explain who install the needed library in a alternate patch on /home/~, /usr/local or /opt and compile with it, even include this posibility in you Makefile instead to broken all the system.
I understand this is a difficult task to work with all ditros but no soft can ask to user to modify a specific distro! (somes ones haven't root passwd ! )

think linux, think freedom!

GuerreroPeludo
Title: Re: SuSE 9.2
Post by: deltaHF on November 08, 2004, 10:22:57 AM
is it my fault when suse does smth wrong ?
Title: Re: SuSE 9.2
Post by: GuerreroPeludo_ on November 08, 2004, 12:35:46 PM
Non, but you can't ask me to change standar pakages, this broken all dependences in suse/redhat/etc system and this do more difficult to work later with auto update or any other distro tool. best to place the walk arround libraries in a /opt or /home/~/lib directoy if really needed.
suse use compa-lxxx for compatibility libs you can create wallkarround-xxx for fix spetials needs.
a good pakage for suse or any ditro has to think in general stability and worability of the system and not only in itself!!!

any way is too easy to say suse/.. do wrong... there are 2000 pakages in a suse ditro and all compile ok! Evidently some one are not ( mplayer theam ask suse to rm it!), then maybe this is really wrong!! or maybe a little fine tuning on library usage allow amule to run ok! instead to compile libs.

GuerreroPeludo
Title: Re: SuSE 9.2
Post by: snac on November 12, 2004, 09:34:13 PM
Guerrero try it
http://ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.1-i386/RPMS.suser-gbv/amule-2.0.0rc7-0.gbv.1.i586.rpm

It for 9.1 but run fine on 9.2
Title: Re: SuSE 9.2
Post by: deltaHF on November 12, 2004, 09:52:52 PM
GuerreroPeludo_, there are 2 packages that depend on wxgtk under suse.. what i heard, one of them (audacity or smth like that) doesn't run well too .. so you don't lose anything using our wxgtk rpms

and about gtk-1.2.10 .. nachbarnebenan told me after reinstalling it, amule runs ok .. try it

and i'm open for everything about suse since i use it 7 years now

cheers
Title: Re: SuSE 9.2
Post by: Ben on November 17, 2004, 03:08:58 PM
hi! on my SuSE 9.2 amule runs fine, but i noticed that if i give a sertain order to sources, in the transfert window (order by priority, for ex) when i minimize and then restore i loose order. Is it a problem of my SuSE aMule version or it is also the same for all?

bye
Title: Re: SuSE 9.2
Post by: Jacobo221 on November 17, 2004, 07:25:25 PM
it's not happening here to me. or maybe i don't get what yo mean.
Probably it's just refreshed the sources,so that some of the sources you could see before are now lower or upper in the list or don't exist anymore (they have been disconnected). Could htat be it?
Greetings!
Title: Re: SuSE 9.2
Post by: Ben on November 17, 2004, 09:17:52 PM
hi!! sorry i made a mistake: it happens not when i minimizze and then restore... but when i make it show the sources per file, i order them, then i hide the sources and make it show them again... there i loose order... sorry if i'm not very clear...

bye (and thank's)
Title: Re: SuSE 9.2
Post by: deltaHF on November 17, 2004, 09:30:38 PM
hi Ben,

its fixed in cvs ;)

cheers
Title: Re: SuSE 9.2
Post by: gbvalor on December 06, 2004, 12:08:21 PM
Hello,

I'm the guy making SuSE rpm packages at

http://ftp://ftp.gwdg.de/pub/linux/misc/suser-gbv/rpms

site.

I had many problems with SuSE 9.2, so I still have not released an rpm for it. The problem for SuSE 9.2 is that wxbase is embebed in what they call wxGTK-compat.
I've tried a tricky patch to compile amule using only wxGTK shiped by SuSE -to avoid other package dependencies problem-. The next patch works but I have to add --disable-gsocket to configure.

 What are the problems disabling gsocket? If the are no showstoper problem, I will release it. Waiting your sugestions.

The patch only copy WX_* flags to WXBASE_* flags, then it have to run autoconf again.


diff -Naur aMule-2.0.0rc7/configure.in aMule-2.0.0rc7-patched/configure.in
--- aMule-2.0.0rc7/configure.in 2004-10-19 20:56:42.000000000 +0200
+++ aMule-2.0.0rc7-patched/configure.in 2004-12-05 11:40:18.000000000 +0100
@@ -492,6 +492,15 @@
        CXX="$CXX"
 esac

+dnl Patch for SuSE-9.2
+WXBASE_CFLAGS="$WX_CFLAGS"
+WXBASE_CXXFLAGS="$WX_CXXFLAGS"
+WXBASE_LIBS="$WX_LIBS"
+
+echo "WX_CFLAGS : WX_$CFLAGS"
+echo "WX_CXXFLAGS : WX_$CXXFLAGS"
+echo "WX_LIBS: $WX_LIBS"
+
 AC_CONFIG_FILES([src/Makefile src/pixmaps/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/wxCas/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/webserver/Makefile src/kademlia/Makefile src/kademlia/utils/Makefile intl/Makefile po/Makefile.in m4/Makefile docs/Makefile Makefile Compilation.flags])
 AC_OUTPUT

Guillermo
Title: Re: SuSE 9.2
Post by: Kry on December 06, 2004, 07:25:48 PM
Disabling gsocket might cause lowid on restart, if wx version is < 2.5.3

Anyway, why do you have to disable it?
Title: Re: SuSE 9.2
Post by: gbvalor on December 06, 2004, 08:31:16 PM
It is a compilation error. The extrange thing is this only happens in gsocket-2.5.c
Suse 9.2 has wxGTK 2.4.2.8 instaled. It uses the source assembled at wxPython site. This is the begin of a long list of errors when it arrives at gsocket-2.5.c :

if /usr/bin/ccache gcc -DHAVE_CONFIG_H -I. -I. -I..      -I/usr/lib/wx/include/gtk2-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/usr/X11R6/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include   -D__GTK2__  -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0  -O2  -MT amule-gsocket-2.5.o -MD -MP -MF ".deps/amule-gsocket-2.5.Tpo" \
  -c -o amule-gsocket-2.5.o `test -f 'gsocket-2.5.c' || echo './'`gsocket-2.5.c; \
then mv -f ".deps/amule-gsocket-2.5.Tpo" ".deps/amule-gsocket-2.5.Po"; \
else rm -f ".deps/amule-gsocket-2.5.Tpo"; exit 1; \
fi
In file included from /usr/include/wx-2.5/wx/unix/gsockunx.h:19,
                 from gsocket-2.5.c:168:
/usr/include/wx-2.5/wx/gsocket.h:39: error: parse error before "GSocket"
/usr/include/wx-2.5/wx/gsocket.h:39: warning: data definition has no type or storage class
/usr/include/wx-2.5/wx/gsocket.h:92: error: parse error before '*' token
/usr/include/wx-2.5/wx/gsocket.h:100: error: parse error before "GSocketGUIFunctionsTable"
/usr/include/wx-2.5/wx/gsocket.h:101: error: syntax error before '{' token
/usr/include/wx-2.5/wx/gsocket.h:104: error: syntax error before "void"
/usr/include/wx-2.5/wx/gsocket.h:104: error: function `OnExit' is initialized like a variable
/usr/include/wx-2.5/wx/gsocket.h:105: error: parse error before "bool"
/usr/include/wx-2.5/wx/gsocket.h:105: error: function `CanUseEventLoop' is initialized like a variable
/usr/include/wx-2.5/wx/gsocket.h:105: warning: data definition has no type or storage class
/usr/include/wx-2.5/wx/gsocket.h:106: error: parse error before "bool"
/usr/include/wx-2.5/wx/gsocket.h:106: error: parse error before '*' token
/usr/include/wx-2.5/wx/gsocket.h:106: error: function `Init_Socket' is initialized like a variable
/usr/include/wx-2.5/wx/gsocket.h:106: warning: data definition has no type or storage class
....

BTW, I tried a bit the rpm -with gsocket disabled-.  You can get source and binary rpm here:

http://ftp://ftp.oxixares.com/pub/rpms/SuSE_9.2/

but PLEASE, tomorow morning it will be at the mirror

http://ftp://ftp.gwdg.de/pub/linux/misc/suser-gbv/rpms/SuSE_9.2/

it is better to me you use the mirror, my server is a snail server with a narrow ADSL line.

Guillermo