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 13051 times)

ilbuio

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 97
Debian compilation......
« Reply #15 on: March 29, 2004, 10:36:00 AM »

Under SID, I've found the same compilation problem......

The strange thing is that compilation terminates with such an error, only when using libcrypto++ and libcrypto++-dev packages shipped in debian repositories.

No problem, instead, when compling libcrypto from tar.* sources....
Logged
ilbuio
-------------------
W debian
W GNU/Linux
W Opensource
-------------------
If debian sid is unstable, win* are at pre-alfa stage... :P

thepolish

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

special debian.rules in source package ?
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)

cagnulein

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: aMule 2.0.0rc1 Installation Problem
« Reply #17 on: March 29, 2004, 09:09:08 PM »

i tried with cryptest.exe and this is the result:
Code: [Select]
BlumBlumShub validation suite running...  passed    49ea2cfdb01064a0bbb92af101dac18a94f7b7ce FAILED
561dbce8465caa24a9a6 cryptest.exe: integer.cpp:2012: void CryptoPP::RecursiveMultiplyTop(word*, word*, const word*, const word*, const word*, unsigned int, const P*) [with P = CryptoPP::LowLevel]: Assertion `carry >= 0 && carry <= 2' failed.
Aborted

:(
« Last Edit: March 29, 2004, 09:09:37 PM by cagnulein »
Logged

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
Re: aMule 2.0.0rc1 Installation Problem
« Reply #18 on: March 29, 2004, 09:10:35 PM »

there's a new official ebuild in portage, did you try it?
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 #19 on: March 29, 2004, 09:24:53 PM »

:O

/me emerge sync

:P

thx for the news :)
Logged

Langoliere

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule 2.0.0rc1 Installation Problem
« Reply #20 on: March 30, 2004, 10:46:17 AM »

same problem here, debian sid
"make" failed beacuse ld could'nt find -lcryptopp
i installed libcrypto++-5.1 and libcrypto++-dev only after the first run of configure and make, so i did "make distclean" and "./configure --prefix=/usr/local"
then it fails because ld can't find -lcrypto++
 ?(
i did "cryptest v" and everything is ok
I also tried installing libcrypto++ 5.1 from .tar source, and then passing the path with "./configure --with-crypto-etc...=/usr/local/crypto++/" , configure works and says I'm using "mdk" crypto++ style, but it continues saying that ld can't find -lcryptopp
I read something about symlinks... can anyone tell me something more about that? I also read that it's not necessary, because configure checks for the filenames.. but I don't know what else can I do.
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: aMule 2.0.0rc1 Installation Problem
« Reply #21 on: March 30, 2004, 11:38:45 AM »

hi, if u compiled crypto from source (make & make install) rerun configure without --with-crypto-prefix

greets

ilbuio

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 97
Re: aMule 2.0.0rc1 Installation Problem
« Reply #22 on: March 30, 2004, 12:15:07 PM »

.........if i compile libcrypto from source.......amule compilation terminates successfully, if i use libcripto++ debian sid packages ........amule compilation terminates with errors reporting that -lcryptopp cannot be found....
Logged
ilbuio
-------------------
W debian
W GNU/Linux
W Opensource
-------------------
If debian sid is unstable, win* are at pre-alfa stage... :P

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule 2.0.0rc1 Installation Problem
« Reply #23 on: March 30, 2004, 01:06:52 PM »

because it's called libcrypto++5.1 in debian


debian's fault :P
Logged

Langoliere

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule 2.0.0rc1 Installation Problem
« Reply #24 on: March 30, 2004, 01:43:32 PM »

Quote
Originally posted by Kry
because it's called libcrypto++5.1 in debian

did'nt someone say that configure checks for filenames?
because when I run configure with libcrypto debian packages (5.1 and -dev) , it finds libcrypto and it says:
./configure --prefix=/usr/local
[...]
checking for crypto++ version >= 5.1... yes
[...]
  Crypto++ library/headers style?                          gentoo_debian

but compilation fails:
/usr/bin/ld: cannot find -lcrypto++

now I'm going to reinstall libcrypto from scratch, and see what happen
Logged

Langoliere

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule 2.0.0rc1 Installation Problem
« Reply #25 on: March 30, 2004, 02:15:38 PM »

i recompiled libcrypto5.1.tar.bz2
copied  libcryptopp.a to /usr/local/lib
moved compilation directory to /usr/local/share/cryptopp
(it seems there is no "make install" feature)
as root, I gave the ldconfig command
then re-configured amule:
./configure --prefix=/usr/local/ --with-crypto-prefix=/usr/local/share/cryptopp/
it finds librcypto, compilation starts and the usual problem (which is at the very beginning) seems solved. but...

g++  -I/usr/local/share/cryptopp/ -D__CRYPTO_MDK_SUSE_FC__  -g     -o amulecmdDLG  amulecmdDLG-TextClient.o amulecmdDLG-MD5Sum.o amulecmdDLG-ECSocket.o -pthread -lwx_gtk-2.4 -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lcryptopp
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib/wx/include/base-2.4 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXBASE -I/usr/local/share/cryptopp/ -D__CRYPTO_MDK_SUSE_FC__  -g   -MT amuleweb-WebServer.o -MD -MP -MF ".deps/amuleweb-WebServer.Tpo" \
  -c -o amuleweb-WebServer.o `test -f 'WebServer.cpp' || echo './'`WebServer.cpp; \
then mv -f ".deps/amuleweb-WebServer.Tpo" ".deps/amuleweb-WebServer.Po"; \
else rm -f ".deps/amuleweb-WebServer.Tpo"; exit 1; \
fi
In file included from WebServer.cpp:29:
WebServer.h:287: error: `Bytef' was not declared in this scope
WebServer.h:287: error: `dest' was not declared in this scope
WebServer.h:287: error: `uLongf' was not declared in this scope
WebServer.h:287: error: `destLen' was not declared in this scope
WebServer.h:287: error: parse error before `*' token
WebServer.cpp: In static member function `static void
   CWebServer:: ProcessURL(ThreadData)':
WebServer.cpp:554: error: `uLongf' undeclared (first use this function)
WebServer.cpp:554: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
WebServer.cpp:554: error: parse error before `=' token
WebServer.cpp:555: error: `destLen' undeclared (first use this function)
WebServer.cpp:556: error: `Bytef' undeclared (first use this function)
WebServer.cpp:556: error: parse error before `)' token
WebServer.cpp:560: error: must have at least one catch per try block
WebServer.cpp:560: error: parse error before `catch'
WebServer.cpp:563: error: `bOk' undeclared (first use this function)
WebServer.cpp: At global scope:
WebServer.cpp:571: error: parse error before `}' token
WebServer.cpp:574: error: `Data' was not declared in this scope
WebServer.cpp:578: error: parse error before `for'
WebServer.cpp:578: error: `pThis' was not declared in this scope
WebServer.cpp:578: error: parse error before `;' token
WebServer.cpp:578: error: syntax error before `++' token
WebServer.cpp:586: error: parse error before `for'
WebServer.cpp:586: error: syntax error before `<=' token
WebServer.cpp:586: error: syntax error before `++' token
WebServer.cpp:1687:2: warning: #warning fix GetLastLogEntry()
WebServer.cpp:1985:2: warning: #warning fix GetLastLogEntry
WebServer.cpp:1994:2: warning: #warning fix GetLastLogEntry
WebServer.cpp:2370: error: `dest' was not declared in this scope
WebServer.cpp:2370: error: parse error before `*' token
WebServer.cpp: In static member function `static int
   CWebServer::_GzipCompress(...)':
WebServer.cpp:2373: error: `uLong' undeclared (first use this function)
WebServer.cpp:2373: error: parse error before `;' token
WebServer.cpp:2374: error: `z_stream' undeclared (first use this function)
WebServer.cpp: At global scope:
WebServer.cpp:2375: error: syntax error before `.' token
WebServer.cpp:2376: error: syntax error before `.' token
WebServer.cpp:2377: error: syntax error before `.' token
WebServer.cpp:2378: error: ISO C++ forbids declaration of `crc' with no type
WebServer.cpp:2378: error: `Z_NULL' was not declared in this scope
WebServer.cpp:2378: error: `crc32' was not declared in this scope
WebServer.cpp:2381: error: ISO C++ forbids declaration of `err' with no type
WebServer.cpp:2381: error: `stream' was not declared in this scope
WebServer.cpp:2381: error: `level' was not declared in this scope
WebServer.cpp:2381: error: `Z_DEFLATED' was not declared in this scope
WebServer.cpp:2381: error: `MAX_WBITS' was not declared in this scope
WebServer.cpp:2381: error: `MAX_MEM_LEVEL' was not declared in this scope
WebServer.cpp:2381: error: `Z_DEFAULT_STRATEGY' was not declared in this scope
WebServer.cpp:2381: error: `deflateInit2' was not declared in this scope
WebServer.cpp:2382: error: parse error before `if'
WebServer.cpp:2385: error: `dest' was not declared in this scope
WebServer.cpp:2385: error: `gz_magic' was not declared in this scope
WebServer.cpp:2385: error: `gz_magic' was not declared in this scope
WebServer.cpp:2386: error: `Z_DEFLATED' was not declared in this scope
WebServer.cpp:2386: error: ISO C++ forbids declaration of `sprintf' with no
   type
WebServer.cpp:2386: error: `int sprintf' redeclared as different kind of symbol
/usr/include/stdio.h:330: error: previous declaration of `int sprintf(char*,
   const char*, ...)'
WebServer.cpp:2386: error: initializer list being treated as compound
   expression
WebServer.cpp:2388: error: syntax error before `.' token
WebServer.cpp:2389: error: syntax error before `.' token
WebServer.cpp:2390: error: syntax error before `.' token
WebServer.cpp:2391: error: syntax error before `.' token
WebServer.cpp:2393: error: ISO C++ forbids declaration of `err' with no type
WebServer.cpp:2393: error: redefinition of `int err'
WebServer.cpp:2381: error: `int err' previously defined here
WebServer.cpp:2393: error: `stream' was not declared in this scope
WebServer.cpp:2393: error: `Z_FINISH' was not declared in this scope
WebServer.cpp:2393: error: `deflate' was not declared in this scope
WebServer.cpp:2394: error: parse error before `if'
WebServer.cpp:2398: error: ISO C++ forbids declaration of `err' with no type
WebServer.cpp:2398: error: redefinition of `int err'
WebServer.cpp:2393: error: `int err' previously defined here
WebServer.cpp:2398: error: `stream' was not declared in this scope
WebServer.cpp:2398: error: `deflateEnd' was not declared in this scope
WebServer.cpp:2399: error: ISO C++ forbids declaration of `crc' with no type
WebServer.cpp:2399: error: redefinition of `int crc'
WebServer.cpp:2378: error: `int crc' previously defined here
WebServer.cpp:2399: error: parse error before `*' token
WebServer.cpp:2401: error: parse error before `*' token
WebServer.cpp:2402: error: parse error before `*' token
WebServer.cpp:2403: error: parse error before `*' token
WebServer.cpp:2404: error: parse error before `*' token
WebServer.cpp:2406: error: parse error before `*' token
WebServer.cpp:2407: error: parse error before `*' token
WebServer.cpp:2408: error: parse error before `*' token
WebServer.cpp:2409: error: parse error before `*' token
WebServer.cpp:2411: error: ISO C++ forbids declaration of `destLen' with no
   type
WebServer.cpp:2411: error: `int*destLen' used prior to declaration
WebServer.cpp:2411: error: `stream' was not declared in this scope
WebServer.cpp:2412: error: parse error before `return'
make[2]: *** [amuleweb-WebServer.o] Error 1
make[2]: Leaving directory `/home/angelo/Downloads/xmule/aMule/aMule-2.0.0rc1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/angelo/Downloads/xmule/aMule/aMule-2.0.0rc1'
make: *** [all] Error 2

Am I without any hope?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule 2.0.0rc1 Installation Problem
« Reply #26 on: March 30, 2004, 03:13:43 PM »

--with-crypto-prefix=/usr/local/share/cryptopp/

should be

--with-crypto-prefix=/usr/local/share/


Really.

Anyway,  dunno it if will be relateed. tell me :)

(BTW: what distro & arch?)
Logged

ilbuio

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 97
.....wait wait wait........
« Reply #27 on: March 30, 2004, 03:19:56 PM »

1) if you compile libcrypto from source ........just type make && make install .........and amule will perfectly compile, too.

2) if i use debian precompiled libcrypto packages............,then:

   a) configure reports to find gentoo_deiban style libraries;
   b) but, afterward, doesn't compile.

Now, it seems a bit strange that first it find the libraries and the report the error.....anyway..........what are we supposed to do?

Maybe "ln -s libcrypto++5.1 libcrypto++" or something similar to it?
(since debian packages provides such libraries with different names?)
Logged
ilbuio
-------------------
W debian
W GNU/Linux
W Opensource
-------------------
If debian sid is unstable, win* are at pre-alfa stage... :P

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule 2.0.0rc1 Installation Problem
« Reply #28 on: March 30, 2004, 03:49:16 PM »

Quote
Maybe "ln -s libcrypto++5.1 libcrypto++" or something similar to it?

Yes. ln -s libcrypto++5.1.a libcrypto++.a


I thought I rported it to the debian packager.... as a matter of fact, there is a warning on configure :/

I'll try to make rc2 more specific on crypto detection... but it's a debian packager bug on libcrypto++. Yep.
Logged

Langoliere

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: aMule 2.0.0rc1 Installation Problem
« Reply #29 on: March 30, 2004, 09:59:05 PM »

Quote
Originally posted by Kry
--with-crypto-prefix=/usr/local/share/


Really.

Anyway,  dunno it if will be relateed. tell me :)

(BTW: what distro & arch?)

it works!i just followed your hint. thankyou :baby:
i'm using debian sid on i686 (amd)
Logged
Pages: 1 [2] 3