aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2 3

Author Topic: aMule 2.0.0rc1 Installation Problem  (Read 13067 times)

cagnulein

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
aMule 2.0.0rc1 Installation Problem
« on: March 27, 2004, 07:02:04 PM »

during the make:
g++  -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__  -g     -o amulecmd  amulecmd-TextClient.o amulecmd-MD5Sum.o amulecmd-ECSocket.o -L/usr/local/lib -pthread -lwx_base-2.4 -L/usr/lib -lcurl -lz -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lcryptopp
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lcryptopp
collect2: ld returned 1 exit status
make[2]: *** [amulecmd] Error 1
make[2]: Leaving directory `/home/cagnulein/aMule-2.0.0rc1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cagnulein/aMule-2.0.0rc1'
make: *** [all] Error 2


get-info.sh output
I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs Configured with: /var/tmp/portage/gcc-3.3.3/work/gcc-3.3.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x --disable-multilib Thread model: posix gcc version 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7)

     B. wxWindows Info
        Version: 2.4.2
        -pthread -lwx_gtk-2.4

     C. GTK Info
        GTK 1: 1.2.10
        GTK 2: 2.4.0

II.  System Environment

     A. CPU Info
        Type:  AuthenticAMD
        Model: AMD Duron(TM)Processor
        Speed: 1211.388
        BMips: 2392.06
        Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow

     B. Memory Info
        Total:   256124 kB
        Unused:  6788 kB

     C. Kernel Info
        Version: 2.6.4-gentoo

     D. Library Info
        wxWindows library: libwx_gtk_xrc-2.4.so (libc6) => /usr/lib/libwx_gtk_xrc-2.4.so libwx_gtk_stc-2.4.so (libc6) => /usr/lib/libwx_gtk_stc-2.4.so libwx_gtk_plot-2.4.so (libc6) => /usr/lib/libwx_gtk_plot-2.4.so libwx_gtk_ogl-2.4.so (libc6) => /usr/lib/libwx_gtk_ogl-2.4.so libwx_gtk_net-2.4.so (libc6) => /usr/lib/libwx_gtk_net-2.4.so libwx_gtk_gl-2.4.so (libc6) => /usr/lib/libwx_gtk_gl-2.4.so libwx_gtk_gizmos-2.4.so (libc6) => /usr/lib/libwx_gtk_gizmos-2.4.so libwx_gtk_fl-2.4.so (libc6) => /usr/lib/libwx_gtk_fl-2.4.so libwx_gtk_dcsvg-2.4.so (libc6) => /usr/lib/libwx_gtk_dcsvg-2.4.so libwx_gtk_canvas-2.4.so (libc6) => /usr/lib/libwx_gtk_canvas-2.4.so libwx_gtk-2.4.so (libc6) => /usr/lib/libwx_gtk-2.4.so libwx_base-2.4.so (libc6) => /usr/local/lib/libwx_base-2.4.so
Logged

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
Re: aMule 2.0.0rc1 Installation Problem
« Reply #1 on: March 27, 2004, 07:07:39 PM »

how did you install? did you use my ebuild?

did you emerge dev-libs/crypto++?
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun

cagnulein

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: aMule 2.0.0rc1 Installation Problem
« Reply #2 on: March 27, 2004, 07:13:14 PM »

ops, i haven't see it

Thx a lot :)
Logged

Master

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 93
RE: aMule 2.0.0rc1 Installation Problem
« Reply #3 on: March 27, 2004, 08:40:44 PM »

I did not use the ebuild.

It compiled without a single problem

cagnulein,

You need to make a simlink of the cryptopp files. These files are saved with the name crypto++ and amule searches for cryptopp.
They are exactly the same files, but the ebuild for libcrypto (crypto++) renames them from crytpopp to crypto++, which I find it very weird.
Logged

cagnulein

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: aMule 2.0.0rc1 Installation Problem
« Reply #4 on: March 28, 2004, 11:03:48 AM »

on my first run:

[cagnulein@~/psybnc] amule
Initialising aMule
Loading preferences from /home/cagnulein/.aMule/preferences.ini
Config:
x1: 0 y1: 0 x2: 1016 y2: 710
split read, found : 405
srv_split read, found : 463
*** UDP socket at 4665  (chat)
*** TCP socket at 4662
*** UDP socket at 4672
No cryptkey.dat found, creating
amule: integer.cpp:2012: void CryptoPP::RecursiveMultiplyTop(word*, word*, const word*, const word*, const word*, unsigned int, const P*) [with P = CryptoPP::LowLevel]:  l'assertion « carry >= 0 && carry <= 2 » a échoué.
Aborted
Logged

cagnulein

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: aMule 2.0.0rc1 Installation Problem
« Reply #5 on: March 28, 2004, 11:17:43 AM »

i created a cryptkey.dat and now it works but too slowly :(
Logged

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 896
Re: aMule 2.0.0rc1 Installation Problem
« Reply #6 on: March 28, 2004, 11:30:50 AM »

Hi,

May be a crypto++ problem. can u run "cryptest v" program to test it ? is the result of test good ?
(NOTE: cd in the data dir before running cryptest)
Code: [Select]
cryptest v
... ...
All tests passed!

Test ended at Sun Mar 28 11:28:33 2004

the polish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
Re: aMule 2.0.0rc1 Installation Problem
« Reply #7 on: March 28, 2004, 12:57:13 PM »

cagnulein, which flags are you using?

i read on gentoo bugzilla that libcrypto++ have problems with -O3, try eventually with -O2
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun

cagnulein

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: aMule 2.0.0rc1 Installation Problem
« Reply #8 on: March 28, 2004, 03:45:40 PM »

-03 now i'm tring with -02

thx for this tip :)
Logged

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 896
Re: aMule 2.0.0rc1 Installation Problem
« Reply #9 on: March 28, 2004, 08:04:34 PM »

u can have prob with -O2 too, depend on distro and gcc ...

For example, -O2 on mandrake 9.2 make the tests not all pass ...

to be sure ALWAYS run cryptest v

the polish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
RE: aMule 2.0.0rc1 Installation Problem
« Reply #10 on: March 28, 2004, 08:14:13 PM »

Quote
Originally posted by Master
I did not use the ebuild.

It compiled without a single problem

cagnulein,

You need to make a simlink of the cryptopp files. These files are saved with the name crypto++ and amule searches for cryptopp.
They are exactly the same files, but the ebuild for libcrypto (crypto++) renames them from crytpopp to crypto++, which I find it very weird.


this is not necessary, ./configure check for library name now
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
Re: aMule 2.0.0rc1 Installation Problem
« Reply #11 on: March 28, 2004, 08:15:15 PM »

Quote
Originally posted by thepolish
u can have prob with -O2 too, depend on distro and gcc ...

For example, -O2 on mandrake 9.2 make the tests not all pass ...

to be sure ALWAYS run cryptest v

the polish


tested by me and others, on gentoo (stable gcc) crypto++ libraries work without problems with -O2
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun

cagnulein

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: aMule 2.0.0rc1 Installation Problem
« Reply #12 on: March 28, 2004, 10:20:44 PM »

i can't find cryptest

is it with crypto++?

where i can find it?

thx in advance
Logged

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 896
Re: aMule 2.0.0rc1 Installation Problem
« Reply #13 on: March 28, 2004, 11:42:54 PM »

yes, it is in crypto++ sources and built when compiling, but dont know if it is installed with the ebuild ...

u can try to build crypto++ from sources with the same compilation options u have in gentoo make.conf, run cryptest in sources, then, when they are validated, install it with the ebuild

the polish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
Re: aMule 2.0.0rc1 Installation Problem
« Reply #14 on: March 28, 2004, 11:45:05 PM »

default gentoo ebuild deletes this file, but you can test crypto++ without recompiling the whole package manually

1) unzip file crypto51.zip in a directory (it doesn't matter which)

2) open file GNUmakefile

3) find lines:
Code: [Select]
cryptest.exe: libcryptopp.a $(TESTOBJS)
        $(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. -lcryptopp $(LDFLAGS) $(LDLIBS)
and modify them:
Code: [Select]
cryptest.exe: $(TESTOBJS)
        $(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. -lcrypto++ $(LDFLAGS) $(LDLIBS)

4) make cryptest.exe

5) ./cryptest.exe v

if everything works, you'll see

Code: [Select]
[...]

All tests passed!
« Last Edit: March 28, 2004, 11:46:48 PM by GhePeU »
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun
Pages: [1] 2 3