aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: How to compile on RHEL3es  (Read 2465 times)

EvolutionCrazy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
How to compile on RHEL3es
« on: February 26, 2006, 06:27:21 PM »

Red Hat Enterprise 3 ES comes with
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)

with that version of gcc it's impossibile to compile amule 2.1.0 (2.0.3 instead compiles ok)
because of this error:

Quote
amule.cpp: In member function `virtual bool CamuleApp::OnInit()':
amule.cpp:347: Internal compiler error in c_expand_expr, at c-common.c:3830
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla/> for instructions.
make[3]: *** [amuled-amule.o] Error 1
make[3]: Leaving directory `/home/admin/aMule/aMule-2.1.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/admin/aMule/aMule-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/admin/aMule/aMule-2.1.0'
make: *** [all] Error 2

it appear the same compiler error reported here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=156185

so we need a new compiler...

i've installed another compiler (3.3.6) so to have multiple compilers on the same machine following this how-to:
http://www.tellurian.com.au/whitepapers/multiplegcc.php

after that when we want to use the new compiler (don't follow the instructions at the end of the howto linked above :P) instead of the redhat default one just type these commands:

Code: [Select]
PATH=/usr/local/gcc/3.3.6/bin:$PATH
export PATH

and compile wxBase + aMule without any problem with the new compiler :)
(after you logout and relogin you will restart using the original compiler)

i'm currently running 2.1.0 (daemon + webinterface) with kad support and for now everything works like a charm ;)
Logged