aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compile errors on mac os x (@Kry)  (Read 5087 times)

Sarge

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Compile errors on mac os x (@Kry)
« on: February 29, 2004, 09:28:40 AM »

Hi!

Sorry for my late bug report!

My system consists of mac os x 10.3.2, cryptopp 5.1 compiled and copied to folders according to the .spec file of the amule cvs page (http://amule.hirnriss.net/). Ranlib used. wxwindows 2.4.2 installed via fink (linked against gtk/glib 1.2.10).

I used the cvs from the cvs page (from above), it's dating from 2902.

./configure
make gives:

Quote
g++  -I/usr/include  -g     -o amulecmd  amulecmd-TextClient.o amulecmd-MD5Sum.o -L/sw/lib -L/sw/lib -lwx_gtkd-2.4 -L/usr/lib -lcurl  -arch ppc -lz -lssl -lcrypto -lz -lcryptopp
ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
symbol _locale_charset used from dynamic library /sw/lib/libiconv.2.dylib(localcharset.o) not from earlier dynamic library /sw/lib/libintl.1.dylib(localcharset.lo)
ld: Undefined symbols:
wxAddProcessCallbackForPid(wxEndProcessData*, int)
make[2]: *** [amulecmd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Seems wxwindows has a problem, but fink fetched the source and compiled it, so it cannot be a problem due to some package troubles.

When disabled, I get the following:

./configure --disable-amulecmd
make gives:

Quote
g++  -I/usr/include  -g     -o ed2k  ED2KLinkParser.o  -L/usr/lib -lcurl  -arch ppc -lz -lssl -lcrypto -lz -lcryptopp
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -I/sw/lib/wx/include/gtkd-2.4 -I/sw/include -D__WXDEBUG__ -D__WXGTK__ -DWXMAKINGDLL -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include   -I/usr/include  -g   -MT amule-ListenSocket.o -MD -MP -MF ".deps/amule-ListenSocket.Tpo" \
  -c -o amule-ListenSocket.o `test -f 'ListenSocket.cpp' || echo './'`ListenSocket.cpp; \
then mv -f ".deps/amule-ListenSocket.Tpo" ".deps/amule-ListenSocket.Po"; \
else rm -f ".deps/amule-ListenSocket.Tpo"; exit 1; \
fi
In file included from ListenSocket.cpp:24:
otherfunctions.h:32:28: endian.h: No such file or directory
ListenSocket.cpp:556:34: warning: #warning TODO: CHECK MESSAGE FILTERING!
make[2]: *** [amule-ListenSocket.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Would be great if the endian.h would be included in the cvs.

Thanks for doing a great job! I used mldonkey for a very short time, because it was instantly clear that it is crap. Sorry to the mldonkey fans out there, but I've my reasons...

So I'm looking foward to the next release!

If you need a beta tester, I would be glad to help.

Thanks a lot (especially @Kry), Sarge
Logged

hoschy07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Compile errors on mac os x (@Kry)
« Reply #1 on: March 01, 2004, 10:39:35 AM »

Hi Sarge.

Try this and make will be successfully:

./configure --disable-gsocket --disable-systray --disable-gtk

I compiled on last friday aMule on mac 10.3.2 successfully and it runs. I canŽt believe it  :D
Very good work Kry. I love it.

@Sarge: Im also not be glad with mldonkey. But now aMule is coming on mac.

hoschy07
Logged

Sarge

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: Compile errors on mac os x (@Kry)
« Reply #2 on: March 01, 2004, 05:19:59 PM »

Hi!

Thanks for your post. Unfortunatly I still cannot compile the amule, I get the same errors.

How do you know about --disable-gsocket? It isn't explained in the readme, nor --help offers that option. However, it seems it doesn't affect the configuration at all since the summary shows that it will be build against the patched gsocket?

endian.h still missing - where did you get it from?

Big thanks, Sarge
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compile errors on mac os x (@Kry)
« Reply #3 on: March 01, 2004, 06:39:11 PM »

endian.h will be removed from includes in next cvs snapshot.
Logged

hoschy07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 13
Re: Compile errors on mac os x (@Kry)
« Reply #4 on: March 01, 2004, 06:54:58 PM »

Hi,

I compiled the nightly build from 26.02 and it works without a patch.
Ok, I needed many tries, but it runs.
I got the tip --disable-gsocket for configure from Kry.

I had some problems with wxWindows, because I installed an old version with fink. Then I installed wxMac, but the libs was installed in my User-Lib and configure found only the old version. I linked to the wx-Libs manually:  --with-wx-prefix=/usr/local --with-wx-config=/usr/local/bin/wx-config

That not enough: I installed libcrytopp and everything seems ok. But make exit with errors. Kry gaves me the tip to compile libcrytopp without "make install" in my User-Dir and link for configure into:
 --with-crypto-prefix=/Users/matthias
(if you have crypto on /home/matthias/cryptopp i.e., it would be /home/matthias)

I think this solution is especially for me.
Eventually you must try configure with  --disable-amulecmd and the parameters I wrote the post before.

Now I go home and then I try to compile the last nightly build. I hope it will be good.
Later IŽm into IRC and perhaps we can chat.

Bye, hoschy07.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compile errors on mac os x (@Kry)
« Reply #5 on: March 01, 2004, 10:14:47 PM »

No modifications to CVS right now. :) We're on vacations pre-release:)
Logged

Sav

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Compile errors on mac os x (@Kry)
« Reply #6 on: June 24, 2007, 06:50:45 PM »

Hi, any time I try to compile the process ends with this trace:

Quote
amule-amule.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-BaseClient.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ClientList.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ClientList.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ClientCreditsList.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ClientCreditsList.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ClientTCPSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ClientTCPSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ClientUDPSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ClientUDPSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-DownloadClient.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-DownloadClient.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-EMSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-EMSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-EncryptedStreamSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-EncryptedStreamSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ListenSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ListenSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-SearchList.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-SearchList.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ServerConnect.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ServerConnect.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ServerSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-ServerSocket.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-UploadClient.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-UploadClient.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-UploadQueue.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-UploadQueue.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-Kademlia.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-Kademlia.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-KademliaUDPListener.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-KademliaUDPListener.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-KnownFile.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-KnownFile.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-Preferences.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
amule-Preferences.o definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
./libmuleappcommon.a(libmuleappcommon_a-CryptoPP.o) definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
./libmuleappcommon.a(libmuleappcommon_a-CryptoPP.o) definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
./libmuleappcommon.a(libmuleappcommon_a-UInt128.o) definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
./libmuleappcommon.a(libmuleappcommon_a-UInt128.o) definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
./libmuleappcommon.a(libmuleappcommon_a-RandomFunctions.o) definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
./libmuleappcommon.a(libmuleappcommon_a-RandomFunctions.o) definition of CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::AutoSeededX917RNG(bool)in section (__TEXT,__text)
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I tried with the embedded crypto and with the criptolib compiled by myself
Logged

Sav

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Compile errors on mac os x (@Kry)
« Reply #7 on: June 24, 2007, 06:51:57 PM »

I missed one thing: the make process always uses the embedded crypto, even with the --with-crypto-prefix= option
Logged

liuk79

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: Compile errors on mac os x (@Kry)
« Reply #8 on: July 03, 2007, 05:44:22 PM »


I compiled adding --disable-embedded-crypto as configure flag in addition to --with-crypto-prefix=<path>  to use external CryptoPP

Bye
Logged