OpenWrt Forum Archive

Topic: amule @ kamikaze

The content of this topic has been archived between 30 Mar 2018 and 4 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Yesterday I tryed to compile amule for kamikaze as described here: https://dev.openwrt.org/ticket/1248#preview
After many troubles (I'm not  very experienced in linux compilation) it compiled succesfully for my WRAP 2C (x86). After configuring amule.conf it run without problems:

root@OpenWrt:~/mtdblock1# amuled
09:07:55: Error: Cannot convert from the charset 'ASCII'!  
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
ERROR: Warning Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
Loading temp files from /tmp/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Empty dir /tmp/.aMule/Incoming/ shared

can connect via amulegui as well as webgui. It connects to selected server, searching works well. BUT after running some download I got 'Segmentation fault' I tried diffrent destination folders for config and Incoming/Temp files without success..

Please help!

Anyone got it running on kamikaze?

Marek wrote:

can connect via amulegui as well as webgui. It connects to selected server, searching works well. BUT after running some download I got 'Segmentation fault' I tried diffrent destination folders for config and Incoming/Temp files without success..

Please help!

Hi Marek and everybody there, 1st post here :-)

I had the same identical problem and after many tries I successfully solved today as follows:
after applying the patches at https://dev.openwrt.org/ticket/1248 to the trunk source,
put the following files from the source package by obsy:
http://eko.one.pl/openwrt/amule_src.tgz

configure1.patch
math.patch

in the patches folder of amule  package under trunk and compile. I renamed them 040-configure1.patch and 050-math.patch, just for aesthetic look, but I think it's not necessary.
That's all ;-)
Now amule@kamikaze works "like a charme" also in my Netgear WGT634U.
Here the tarball of all compiled packages needed:

http://marven.altervista.org/amule_kami … ges.tar.gz

Copy and paste the above link into the browser, it works like this only.

(Last edited by marven on 4 Jun 2007, 19:47)

thats good news.
I have some problems with compiling wxWidgets under new trunk. Could you please compile amule for x86-2.6 and post it?
Thanks!

edit: the problem with wxWidgets disapeard after 'make distclean' and amule compiled for target x86 succesfully. I will do some tests now.

(Last edited by Marek on 5 Jun 2007, 11:32)

Marek wrote:

the problem with wxWidgets disapeard after 'make distclean' and amule compiled for target x86 succesfully. I will do some tests now.

That's great! Let me know how your amule behaves ;-)
Mine is up, downloading and uploading like a beast, from 24 hours without any minimum flaw :-)

(Last edited by marven on 5 Jun 2007, 18:09)

It works, but there is some problem with amuleGui program - it searches files correctly but I cannot add any file to download queue - there is no problem using webgui, but I prefer the first one (speed, ergonomy)...

(Last edited by Marek on 6 Jun 2007, 08:02)

I also use aMuleGui v. 2.1.3 and can add files from search list to the download queue. Also tried v. 2.1.2 and it works well the same.
I have to say that I compiled amule for  brcm-2.4
I'll try  with the brcm47xx-2.6 platform also and post the results.

I'm not sure it is related to aMule, but rather to aMuleGui (I'm using 2.1.3 too). I used the aMuleGui before without problems but with aMule not patched (segmentation fault after download started).
I will make some more tests.

If aMuleWeb is working I also think the problem is not amuled but aMuleGui. But I'm not an aMule expert and I could be wrong...

Anyway, I compiled the brcm47xx-2.6 versions of both amule and wxbase packages, substituted the 2.4 versions and... it works flawlessly with aMuleGui as well with aMuleWeb.

I've tracked the problem. The amulegui disconnects form amule daemon when there is a huge amount of search results. If you search some phrase which has moderate amount of results the amulegui works corectly and you can add to download queue. Try to search for some very popular song title and check if your amulegui is still connected.

I tried for example "u2", getting over 2100 files. Nevertheless aMuleGui doesn't stop working and I can add files to the download queue.
Could you please post a sample search which stops your aMuleGui?

I always test it by searching 'toxic' by Britney which I hate but I don't want to type 'xxx' smile

I hope this issue isn't related to hardware platform (mine is WRAP 2C - x86)...

Tried also "toxic", got 319 files and it works ;-)

In the meantime I added the following patch by al37919:
http://wl500g.info/attachment.php?attac … 1176055300
More infos here:
http://wl500g.info/showthread.php?t=7789&page=3

That because during some test I had an amuled drop with a large > 1 GB file download
Now amuled is rock solid even with large files and lots of connections, downloads and uploads :-)
Here a screenshot:
http://img58.imageshack.us/img58/9029/amulegui.th.jpg

The above patch is for MIPS platform. Here other patches for NSLU2-Linux: 
http://trac.nslu2-linux.org/optware/bro … rces/amule

Hi there.

Marven:
From the picture you posted you are using amule gui from windows XP.
I've installed amule from the same place as lumpic did (http://ipkg.nslu2-linux.org/feeds/optwa … ss/stable/), got it working in a asus wl500GP with a half tera usb disk. but the amule gui on XP just vanishes after the first screen ( the one with the password ) with no windows just a process still going (reported by the tas manager).
What am I doing wrong here?

Many thanks.

Regards.

Bilkid - will kill Bill wink

Bilkid,
I suggest you to check the [ExternalConnect] section of amuled.conf file.
Mine looks like this:

[ExternalConnect]
AcceptExternalConnections=1
ECUseTCPPort=1
ECPort=4712
ECPassword=4fc772729bde281ccc7f228e19be6889

I made the password  with the following command:

$ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1

If everything is correct, perhaps your amuled daemon is not compiled for external connections.
You also have to open the 4712 port on your wl500GP (add some rule to /etc/firewall.user file ) and be sure the same port is not blocked by some firewall on Windows XP as well.

Regards.

(Last edited by marven on 10 Aug 2007, 19:37)

With revision [8982] aMule has been added to the official packages in subversion. Please compile and test it.

(Last edited by forum2006 on 23 Sep 2007, 17:42)

Great, I will try it today.
Anyway I wonder why developers ported this old (but stable) version 2.1.3. I think that latest snapshots (http://www.hirnriss.net/?area=cvs) has many bug fixes compared to 2.1.3...

Marek wrote:

Anyway I wonder why developers ported this old (but stable) version 2.1.3. I think that latest snapshots (http://www.hirnriss.net/?area=cvs) has many bug fixes compared to 2.1.3...

You can always edit $(TOPDIR)/feeds/packages/net/amule/Makefile and update your local svn copy to the latest upstream version of aMule and recompile it. If you have compiled, tested it and it works you submit a ticket with a patch (svn diff $(TOPDIR)/feeds/packages/net/amule > ~/update-amule.diff). That is the way Opensource works...

(Last edited by forum2006 on 24 Sep 2007, 12:27)

I tried it already some time ago and I spent a couple of hours to get things right but without success. There was a error(s) during compile and I'm not experienced in linux compile debugging at all. So the only chance for update are developers or other experienced users...

(Last edited by Marek on 24 Sep 2007, 12:58)

I've just compiled pre-7.09 (r9009) x86 with amuled and other required packages and installed on my WRAP 2C. system is booting fine but after executing amuled i got segmentation fault so Nico there is something wrong with your amule port...

Marek, i have the same problem.

I have compiled r9450 x86 with amule and other required packages and installed on my PC.
The system is booting fine but if i try to execute amuled, i receive this error:

segmentation fault

I have applyied the patches at https://dev.openwrt.org/ticket/1248 to the trunk source

I have copied the 2 files (from http://eko.one.pl/openwrt/amule_src.tgz )

configure1.patch
math.patch

In the pacth folder of amule

Then i have recompiled the r9461

i have checked the list of the package in Marven archive

http://marven.altervista.org/amule_kami … ges.tar.gz

I have compiled all the package according this list

amule_2.1.3-1_i386.ipk
base-files-x86-2.6_12-9461_i386.ipk
bridge_1.0.6-1_i386.ipk
curl_7.14.0-1_i386.ipk
jpeg-tools_6b-1_i386.ipk
libcurl_7.14.0-1_i386.ipk
libexpat_1.95.8-1_i386.ipk
libgcc_4.1.2-12_i386.ipk
libgd_2.0.33-2_i386.ipk
libjpeg_6b-1_i386.ipk
libltdl_1.5.22-1_i386.ipk
libncurses_5.6-1_i386.ipk
libopenssl_0.9.8e-3_i386.ipk
libpng_1.2.8-1_i386.ipk
libpthread_0.9.28.2-12_i386.ipk
libreadline_5.1-1_i386.ipk
libstdcxx_0.9.28-12_i386.ipk
openssl-util_0.9.8e-3_i386.ipk
uclibc_0.9.28.2-12_i386.ipk
wxbase_2.8.0-1_i386.ipk
zlib_1.2.3-4_i386.ipk

All the package are correcly compiled, except wxbase_2.8.0-1_i386.ipk

I don know where find it in menuconfig.
In my compiled packages i can found libwxbase_2.6.4-1_i386.ipk.
I don't think this package is  the same as wxbase_2.8.0-1_i386.ipk, but i have tried to install on my openwrt x86 PC with amuled and the others.

But when i try to run "amuled" i receve the error "Segmentation fault"

I think i need the wxbase_2.8.0-1_i386.ipk and not the libwxbase_2.6.4-1_i386.ipk.

Can someone tell me how to compile it?

Thank you wink

forum2006 wrote:

With revision [8982] aMule has been added to the official packages in subversion. Please compile and test it.

I have successfully compiled the amule official package for my WGT634U. It works, however it freezes as soon as a download starts.
I have solved adding to the source (amule/patches directory) those patches I used to solve the same problem with the Ticket #1248 version (https://dev.openwrt.org/ticket/1248)

configure1.patch
math.patch

I added also the patch for the amuled drop problem with large > 1 GB files download.

amule-1gb-uclibc-mipsel.patch

Now again my amuled works flawlessly.

I'm also getting segmetation faults, if I try to start amuled. Which files do I have to copy to "package/amule/patches" ?
There is already one patch inside:
001-no_backtrace.patch

at Ticket 1248 there are 3 patches
add-libstdc++.patch
add-wxbase-2.8.0.patch
add-amule-2.1.3.patch

in the file amule_src.tgz there are 5 patches
aMule-wx.patch
configure1.patch
configure.in.patch
math.patch
MuleDebug-uclibc.patch

So wich of these 9 files have to be in "package/amule/patches" ? Do I have to copy other files?

Where do I get the patch" amule-1gb-uclibc-mipsel.patch"?

(Last edited by Oconnor on 31 Oct 2007, 17:12)