aMule Forum

English => Multiplatform => Mac OSX => Topic started by: Sarge on March 23, 2004, 10:04:01 PM

Title: cvs from 23.03.04
Post by: Sarge on March 23, 2004, 10:04:01 PM
Hi!

Ok I used the dc.cpp from cvs as suggested. Looked well at the beginning, ended with:

The error starts with

Quote
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -I/sw/lib/wx/include/mac-2.4 -I/sw/include -D__WXMAC__ -DWXMAKINGDLL -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES    -I/usr/include  -g   -MT amule-BaseClient.o -MD -MP -MF ".deps/amule-BaseClient.Tpo" \
  -c -o amule-BaseClient.o `test -f 'BaseClient.cpp' || echo './'`BaseClient.cpp; \
then mv -f ".deps/amule-BaseClient.Tpo" ".deps/amule-BaseClient.Po"; \
else rm -f ".deps/amule-BaseClient.Tpo"; exit 1; \
fi
In file included from otherfunctions.h:26,
                 from BaseClient.cpp:32:
endianfix.h:35:10: warning: #warning BIG ENDIAN BOX
In file included from /usr/include/gcc/darwin/3.3/c++/string:47,
                 from /usr/include/cryptopp/cryptlib.h:61,
                 from /usr/include/cryptopp/pkcspad.h:4,
                 from /usr/include/cryptopp/rsa.h:9,
                 from ClientCredits.h:28,
                 from BaseClient.cpp:43:
/usr/include/gcc/darwin/3.3/c++/bits/char_traits.h:252: error: template with C
   linkage
In file included from /usr/include/gcc/darwin/3.3/c++/memory:59,
                 from /usr/include/gcc/darwin/3.3/c++/string:48,
                 from /usr/include/cryptopp/cryptlib.h:61,
                 from /usr/include/cryptopp/pkcspad.h:4,
                 from /usr/include/cryptopp/rsa.h:9,
                 from ClientCredits.h:28,
                 from BaseClient.cpp:43:


and ends with (after hundrets of lines)

Quote
/usr/include/cryptopp/asn.h: In function `CryptoPP::OID
   CryptoPP::operator+(const CryptoPP::OID&, long unsigned int)':
/usr/include/cryptopp/asn.h:342: error: declaration of C function `
   CryptoPP::OID CryptoPP::operator+(const CryptoPP::OID&, long unsigned int)'
   conflicts with
/usr/include/cryptopp/integer.h:416: error: previous declaration `
   CryptoPP::Integer CryptoPP::operator+(const CryptoPP::Integer&, const
   CryptoPP::Integer&)' here
In file included from ClientCredits.h:28,
                 from BaseClient.cpp:43:
/usr/include/cryptopp/rsa.h: At global scope:
/usr/include/cryptopp/rsa.h:113: error: template with C linkage
/usr/include/cryptopp/rsa.h:120: error: template with C linkage
BaseClient.cpp:1556:10: warning: #warning ADDME - Import needed
make[2]: *** [amule-BaseClient.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Something wrong on my side?

Thanks Sarge
Title: Re: cvs from 23.03.04
Post by: Kry on March 24, 2004, 12:07:46 AM
bug on libcryptopp headers, really. I ahd it. Try using the --with-crypto-prefix=
Title: Re: cvs from 23.03.04
Post by: Sarge on March 24, 2004, 11:02:02 AM
Sorry, but I don't get it. I can _only_ configure amule with the crypto-prefix (doesn't change anything, I get the same error since I use the standard path for libcrypto), because the libcrypto doesn't have a configure script (so installed it according to the rpm-spec for linux [in the standard path]).

Thanks, Sarge
Title: Re: cvs from 23.03.04
Post by: Sarge on March 27, 2004, 12:03:42 AM
Any updates on this topic?

Sarge
Title: Re: cvs from 23.03.04
Post by: Kry on March 27, 2004, 12:40:45 AM
you'll have to wait till tomorrow, we're busy with release ;)
Title: Re: cvs from 23.03.04
Post by: Jacobo221 on April 01, 2004, 01:38:39 AM
Updates on this issue. Try 2.0.0rc1 ;-)
Should compile now. If you still have problems compiling with crypto, compile crypto++ again from this sources: http://download.berlios.de/amule/crypto-5.1.tar.bz2

Greetings!
Title: Re: cvs from 23.03.04
Post by: RPants on April 01, 2004, 12:56:16 PM
thanks.
using /configure --with-crypto-prefix=/Users/me/cryptopp --disable-amulecmd --disable-gsocket --disable-systray --disable-gtk
i still get this..
Quote
g++  -I/usr/include -I/Users/me/cryptopp -D__CRYPTO_MDK_SUSE_FC__  -g    -bind_at_load  -o ed2k  ED2KLinkParser.o  -L/usr/lib -lcurl  -arch ppc -lz -lssl -lcrypto -lz -lcryptopp
ld: table of contents for archive: /usr/lib/libcryptopp.a is out of date; rerun ranlib(1) (can't load from it)
make[2]: *** [ed2k] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

 :(
Title: Re: cvs from 23.03.04
Post by: Jacobo221 on April 01, 2004, 05:06:56 PM
Is that message showing after compiling crypto++ 5.1 sources from the link I gave you above? did you "make libcryptopp.a && make install"? maybe you forgot to "make install" and it's still using old crypto++ libraries.
Title: Re: cvs from 23.03.04
Post by: Sarge on April 02, 2004, 10:43:01 AM
Quote
ld: table of contents for archive: /usr/lib/libcryptopp.a is out of date; rerun ranlib(1) (can't load from it)

Naa, read that line again! You got to run ranlib. Happens quite frequently. Just execute ranlib with the path to the library:

ranlib /usr/lib/libcryptopp.a

@Kry: sorry, didn't have the time to join irc. Sorry! If I get any more troubles, I will try to catch you in irc!

Thanks, Sarge
Title: Re: cvs from 23.03.04
Post by: kraken on April 05, 2004, 02:03:20 PM
Hi,

i got a very very stange problem with amule on MacOS X (1.3.3).
i used both amule-cvs and amule-2.0RC1 (i've well installed libcrypto as you said and ranlib to solve the issue).

first i tried with wxWindows 2.4.2 from fink, installed in /sw/ and compiled against GTK1.
it compiled fine but hang somewhere in displaying the amule main screen (some wx method call
hang, so it's due to fink wxWindows, not amule i think ;)

I had to modify the source of amule (very few) that where dependant on linux/GTK, since
__WXGTK__ was set, not __WXMAC__ :
-> I removed the getmntent stuff which read the mount points to see if FAT is used, as getmntent does not exist on BSD (use getfsent).
->I added sys/types.h before other includes in some .h files which linux does'nt need to compil

I'm sure that the crash of so compiled amule does'nt deal with this modifications.


So i decided to download wxwindows 2.4.2 for mac (and wxBase, which was installed before wxMac) from the main site (wxwidgets.org), and i compiled/installed the mac version in /usr/local. I then recompiled amule (after reextracting the archives), specifying :

./configure --with-wx-config=/usr/local/bin/wx-config --disable-amulecmd --disable-gsocket --disable-systray --disable-gtk

this time, it compiled whithout error (as it used specific code for os x in amule with __WXMAC__).
When i launched it, i had an error as it could not create a certain "" directory. It was just the incoming directory that was not set by default, so i forced it in the source code, recompiled and tried again. This times i see the main window, but WHAT FRUSTRATING to see that i CAN'T focus on it!!! the windows does'nt appear in the tasks (dock, ALT-TAB), and when i click on it, the focus stay on last mac application. I can't click on buttons, and can't enter text in textareas...
I first thought it was wxWindows fault, but i recompiled demos from mac version source, and all ran well, with the specific mac top menubar.. i don't understand where does it comes from !!

i tried for hours to solve this problem by compiling cvs version of wxwindows, but it does'nt work as to much modifications are necessary in amule source code to support last versio of wxwindows.. and gtk version is not designed for fink port of wxwindows...

bouhou :''''( i want amule to work !!!!! i'm sure it's a very small line of code to add somewhere, please help !!
Title: Re: cvs from 23.03.04
Post by: lami123 on April 06, 2004, 10:08:00 PM
Try these posts,

they may help you.

http://sharedaemon.sourceforge.net/forums/index.php?showtopic=115
http://sharedaemon.sourceforge.net/forums/index.php?showtopic=74

lami123
Title: Re: cvs from 23.03.04
Post by: kraken on April 08, 2004, 01:07:19 PM
thanx a lot it works !!
i've done a amule.app directory with info.plist, package info and icon, it work well..

BUT amule itselfs seems to be buggy in 2.0.0RC1 and current cvs version, it won't connect any server (tell disconnected without trying anything), and it hangs at second launch if you don't delete your .aMule directory content (except server.met and preferences.dat).

i'll try 1.x version, but i don't think it works, so i'll wait for 2.0 stable version ;)
Title: Re: cvs from 23.03.04
Post by: Kry on April 08, 2004, 07:32:20 PM
From 2.0.0-rc1 changelog


"Win32 and Mac ports are WORK IN PROGRESS"


Yep, it does not connenct yet.
Title: Re: cvs from 23.03.04
Post by: Kry on April 08, 2004, 07:33:01 PM
From Known Bugs (on Bugs forums)


'known.met files does not save corerectly'


that's the one hanging it.