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: Compilation problems on Solaris 10 u8  (Read 19967 times)

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Compilation problems on Solaris 10 u8
« Reply #15 on: November 21, 2009, 06:46:08 PM »

Hi!

I just made some type of progress: I tried compiling with cryptopp 5.5.2 instead of 5.6.0. Now, amuled will start:

Code: [Select]
-bash-3.00$ ./Desktop/aMule-2.2.6/src/amuled
amuled: OnInit - starting timer
Initialising aMuled 2.2.6 using wxGTK2 v2.8.10
Checking if there is an instance already running...
No other instances are running.
ERROR: Info  --- This is the first time you run aMule 2.2.6 ---


More information, support and new releases can found at our homepage,
at www.aMule.org, or in our IRC channel #aMule at irc.freenode.net.

Feel free to report any bugs to http://forum.amule.org
ListenSocket: Ok.
Loading temp files from /home/gpulido/.aMule/Temp.

All PartFiles Loaded.
No shareable files found in directory: /home/gpulido/.aMule/Incoming

ERROR: aMule daemon cannot be used when external connections are disabled. To enable External Connections, use either a normal aMule, start amuled with the option --ec-config or set the key"AcceptExternalConnections" to 1 in the file ~/.aMule/amule.conf

HTTP download thread started
Now, exiting main app...
aMule OnExit: Terminating core.
aMule shutdown completed.
-bash-3.00$ uname -a
SunOS vmsolaris10 5.10 Generic_141445-09 i86pc i386 i86pc
-bash-3.00$

but amule monolithic stil crashes on start, with the core file reporting something about X libraries. I'll keep digging to see what I can find.

Regarding your wx issue, I suggest you to try compiling wxGTK disabling all CSW libraries. That is done by removing /opt/csw from any LD* environment variable, so it will not know that libraries exist. WXGtk is very solaris friendly, it will compile on a standard solaris 10 install just setting the correct path so it can find gcc and gmake. Also, try using the configure line I used on the wiki, and always run "gmake" instead of "make".

Regards.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Compilation problems on Solaris 10 u8
« Reply #16 on: November 21, 2009, 07:38:03 PM »

I just figured out my total stupid mistake regarding the linking: I have been re-compiling wxWidgets with different compiler environment settings than I was compiling aMule: 2 Different logins, 2 different shells.

So, now that I have in fact re-compiled wxWidgets in the same environment that I compile aMule in, the linking continues without a hitch. How silly can one be.

In the meantime I did also recompile aMule for my ancient Mandriva (2006, don't laugh...) and that went in one run in about 35 mins, including re-compiling wxWidgets and Crypto 5.6, since I had those lying around anyway. Why can't life be so simple for Solaris  *snif*

I'll try to compile with Crypto 5.5 as well, see what the results are at my end.
« Last Edit: November 21, 2009, 07:41:36 PM by vdb »
Logged
A waste is a terrible thing to mind.

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Compilation problems on Solaris 10 u8
« Reply #17 on: November 21, 2009, 07:45:22 PM »

Could it be something with the ZFS that I'm using? I think I remember something about that either on this forum or somewhere on the internet about applications having issues with that file system type.
Logged
A waste is a terrible thing to mind.

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Compilation problems on Solaris 10 u8
« Reply #18 on: November 21, 2009, 07:59:12 PM »

How silly can one be.
That's just the way many complicated problems look after you finally found the solution. But simple and simple to find are two entirely different issues. So don't mind, we all have felt that way often enough.  :D
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Compilation problems on Solaris 10 u8
« Reply #19 on: November 21, 2009, 09:20:22 PM »

Well, Cryptopp 5.5.2 is a bust. At least the package from Blastwave won't work, new and major linking problems with another undefined symbol.

Something weird when I compiled Cryptopp 5.5.2: It tried to use a command "ranlib", which is not found. Doesn't seem to influence the result though?

And we're breathing:
-bash-3.00$ ./amule
Initialising aMule 2.2.6 using wxGTK2 v2.8.10
Checking if there is an instance already running...
No other instances are running.
ListenSocket: Ok.
HTTP download thread started
Loading temp files from /export/home/emule/.aMule/Temp.

All PartFiles Loaded.
No shareable files found in directory: /export/home/emule/.aMule/Incoming
Assertion failed: XCB_SEQUENCE_COMPARE(xcb_req, >=, dpy->request), file xcb_lock.c, line 77
Abort (core dumped)

Logged
A waste is a terrible thing to mind.

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Compilation problems on Solaris 10 u8
« Reply #20 on: November 21, 2009, 09:25:03 PM »

Succes! Well, partial: amuled is running, so it seems.

Yep, after some configuring, amuled is running, amuleweb is started automagically and it is hashing some files. This is basically what I need to have, so for now I'll leave it at this.

So our solution is, at least for now: Use cryptopp 5.5.2, not 5.6.0.

PS: A quad core intel i920 is awfully fast at hashing, over 5 GB per minute!
PS2: And now another strange succes since I can connect to this amuled with my Vista amuleGUI!
« Last Edit: November 21, 2009, 10:10:55 PM by vdb »
Logged
A waste is a terrible thing to mind.

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Compilation problems on Solaris 10 u8
« Reply #21 on: November 22, 2009, 03:27:46 AM »

-bash-3.00$ ./amule
Initialising aMule 2.2.6 using wxGTK2 v2.8.10
Checking if there is an instance already running...
No other instances are running.
ListenSocket: Ok.
HTTP download thread started
Loading temp files from /export/home/emule/.aMule/Temp.

All PartFiles Loaded.
No shareable files found in directory: /export/home/emule/.aMule/Incoming
Assertion failed: XCB_SEQUENCE_COMPARE(xcb_req, >=, dpy->request), file xcb_lock.c, line 77
Abort (core dumped)



ranlib in solaris is /usr/sfw/bin/granlib. It's one of the symbolic links you should create when I suggest to create the links to the GNU utils. Regarding the assertion, it's exactly the same error I'm getting. I could get over it by compiling aMule with no libiconv/libintl support, therefore there's no i18 support. But at least that wat, amule starts and works with no problems. I'll see what can I do to get a full aMule again, and update the wiki.

Regards.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Compilation problems on Solaris 10 u8
« Reply #22 on: November 22, 2009, 11:03:36 AM »

Well, unfortunately all is not well in Solaris land yet: amuled crashes when a file completes download.

I get something like this in the logfile, "Suspending upload of file: E519157AC843A5DF9EE92FC6" and then it ends. Core dumps all over the place. This is too bad, if I can't use it yet  :(
Logged
A waste is a terrible thing to mind.

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Compilation problems on Solaris 10 u8
« Reply #23 on: November 22, 2009, 11:42:12 AM »

Backtrace?
Make sure you do not enable mmap (you probably don't).  And compile with debug infos please.
And I don't think --disable-embedded-crypto is a valid switch anymore. Embedded crypto was kicked out some time ago. Bad idea seeing the cryptopp problems we are having ever since.  :(
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Compilation problems on Solaris 10 u8
« Reply #24 on: November 22, 2009, 12:11:54 PM »

yeah, backtrace. First I'll have to compile the GNU debug utils  :)

Skolnick probably already has this installed, I hope.....

PS. I just found that the gdb package is in fact available on Blastwave, so I hope to be able to post in the backtrace forum soon...
« Last Edit: November 22, 2009, 01:05:50 PM by vdb »
Logged
A waste is a terrible thing to mind.

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Compilation problems on Solaris 10 u8
« Reply #25 on: November 29, 2009, 02:59:48 AM »

OK, I just traced the problem of amule segfaulting on start. It all seems to happen because of a bug in aMule (which strangely it doesn't happen on another platforms). It's (from what I read) some kind of race condition, no idea where. Compiling with debug enabled fails on my solaris, amule won't link, therefore I can't produce backtraces. The important thing is that I just discovered that removing blastwave's libxcb (CSWlibxcb package) aMule compiles and works fine. Now, the problem with that is that removing that library breaks blastwave's gd library, which is needed by amuleweb (there's no complete happiness, uh?) so the solution would be compiling gd from source. But that's also troublesome. I'm still working on this, and as soon as I get aMule compiling and working completely, I'll post it here and update the wiki.

On unrelated news, upnp is broken on solaris, since it will return UPNP_E_INIT_FAILED on aMule startup, and ports are not open on the router. I'm no developer, therefore I think I cannot solve this, but any clue about it will be welcome.

Regards.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Compilation problems on Solaris 10 u8
« Reply #26 on: November 29, 2009, 03:41:02 AM »

OK, I just got aMule to compile complete with all its tools on Solaris again!! woohoo!!. The wiki entry has also been updated. It worked for me, but I would like a lot if anybody else can test it. Be warned that even when libUPnP compiles, it will not work (see previous post). I'll see what I can do, but this might be well beyond my current knowledge.

Regards.

P.S: Really nice new avatar, Stu...
« Last Edit: November 29, 2009, 03:43:56 AM by skolnick »
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Compilation problems on Solaris 10 u8
« Reply #27 on: November 29, 2009, 11:12:53 AM »

Good news.

Maybe unrelated, but I have been running aMuled on Solaris in debug mode, without optimizations, without upnp and without GeoIP for a week now. Without any hitches, I can even use gdb for backtraces   :)

The one thing that won't start for me is amulegui from Solaris. Somehow that just won't go beyond the "connecting" message. But since the Windows GUI connects that's not really a problem for me.

I'll check your updated wiki and see if it compiles again for me with those instructions. And I'll go make a nice SMF start for amuled.
« Last Edit: November 29, 2009, 11:46:07 AM by vdb »
Logged
A waste is a terrible thing to mind.

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Compilation problems on Solaris 10 u8
« Reply #28 on: November 29, 2009, 11:59:40 AM »

P.S: Really nice new avatar, Stu...
Thank you!  :D
Just had to put it up after that awesome concert of her I visited on Wednesday.  :-*
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Compilation problems on Solaris 10 u8
« Reply #29 on: November 29, 2009, 09:03:11 PM »

Now, the problem with that is that removing that library breaks blastwave's gd library, which is needed by amuleweb

amuleweb requires libpng not gd. gd is an optional requirement for cas (required to produce stats image).
Logged
concordia cum veritate
Pages: 1 [2] 3