aMule Forum

English => Compilation problems => Topic started by: skolnick on March 06, 2005, 09:02:58 PM

Title: Guide to compile amule/amuleweb on Solaris 10 and 11
Post by: skolnick on March 06, 2005, 09:02:58 PM
Hi!

I just wrote this little guide to help you all solaris fans. Hope this helps!

   COMPILING AMULE/AMULEWEB ON SOLARIS 10 x86

[list=1]


   autoconf
   automake
   gd
   gettext
   gtk/gtk2
   libpng
   binutils

These packages will install to /opt/csw tree


   PATH=/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin


gtar=tar, gsed=sed, gautopoint=autopoint, gbc=bc, etc...) somewhere in your path. I simlinked them to their same directory.


   CPPFLAGS='-I /opt/csw/include'
   LDFLAGS='-L/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/openwin/lib:/usr/dt/lib:/usr/lib:/lib -R/usr/local/lib:/opt/csw/lib:/usr/lib:/usr/sfw/lib:/lib:/usr/dt/lib:/usr/openwin/lib'


   ./configure --enable-webserver


   ./src/amule

COMPILING AMULE/AMULEWEB ON SOLARIS 11 x86

[list=2]


      autoconf
      automake
      gd
      gettext
      gtk/gtk2
      libpng
      binutils
      gmake
      gcc3

      These packages will install to /opt/csw tree


      PATH=/usr/local/bin:/opt/csw/gcc3/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin


      gtar=tar, gsed=sed, gautopoint=autopoint, gbc=bc, etc...) somewhere in your path. I simlinked them to their same directory.


      CPPFLAGS='-I /opt/csw/include -I/temp/crypto521'
      LDFLAGS='-L/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/openwin/lib:/usr/dt/lib:/usr/lib:/lib -R/usr/local/lib:/opt/csw/lib:/usr/lib:/usr/sfw/lib:/lib:/usr/dt/lib:/usr/openwin/lib'

The CPPFLAGS are parameters send to the compiler, -I tells where to find the include files (the first -I is for gd,png and other includes you installed on the second step, the second -I is the folder where you created the cryptopp folder and installed cryptopp)

The LDFLAGS are parameters to the linker: -L tell where to find libraries in non-standard places during linking, -R tells where to find libraries in non-standard places at runtime.


      ./configure --enable-webserver --enable-amule-daemon --enable-amulecmd --enable-amule-gui --enable-cas --enable-wxcas --enable-alc --enable-alcc --enable-optimize --disable-debug --disable-embedded-crypto --with-crypto-prefix=/temp/cryptopp521/



      ./src/amule

Title: Re: Guide to compile amule/amuleweb on Solaris 10 and 11
Post by: xushi on May 15, 2005, 07:11:08 PM
Thanks for the guide. I've followed it step by step, but I'm still having some trouble with the make procedure.. trying to figure out where the problem is. Here's a screen dump.

Code: [Select]
./extern/listctrl.242.h:197: error: candidate is: virtual bool MuleExtern::wxGenericListCtrl::DoPopupMenu(wxMenu*, int, int)
extern/listctrl.242.cpp: In member function `bool MuleExtern::wxGenericListCtrl::DoPopupMenu(MuleExtern::wxMenu*, int, int)':
extern/listctrl.242.cpp:5429: error: no matching function for call to `MuleExtern::wxListMainWindow::PopupMenu(MuleExtern::wxMenu*&, int&, int&)'
/opt/csw/include/wx/window.h:694: note: candidates are: bool wxWindowBase::PopupMenu(wxMenu*, const wxPoint&)
/opt/csw/include/wx/window.h:696: note:                 bool wxWindowBase::PopupMenu(wxMenu*, int, int)
extern/listctrl.242.cpp: At global scope:
extern/listctrl.242.cpp:5465: warning: unused parameter 'item'
*** Error code 1
make: Fatal error: Command failed for target `amule-listctrl.o'
Current working directory /export/home/download/aMule-2.0.0/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='utils pixmaps kademlia '; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/download/aMule-2.0.0/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='m4 intl po docs src'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/download/aMule-2.0.0
*** Error code 1
make: Fatal error: Command failed for target `all'
root@yooniks:/download/aMule-2.0.0#    

I'm running Solaris 10 on a Sun Ultra 60 (Sparc)
Title: Re: Guide to compile amule/amuleweb on Solaris 10 and 11
Post by: xushi on May 17, 2005, 08:57:00 PM
Upgrading to wxWindows 2.6.0 seems to have gotten rid of that error. Now to fix the next error in line =)
Title: RE: Guide to compile amule/amuleweb on Solaris 10
Post by: jth on June 17, 2005, 08:48:05 PM
Quote
  • Now, get the latest wxGTK package from http://www.wxwidgets.org and compile it. Install it to /usr/local. I have not
       tried compiling it with unicode support, nor against GTK2, so basically this is untested. But should work.
I found that while the core of amule works with wxwidgets/gtk2, the gui is very unstable. I would recommend using wxwidgets/gtk1 for now.
Title: Re: Guide to compile amule/amuleweb on Solaris 10 and 11
Post by: skolnick on December 17, 2005, 03:11:24 AM
OK guys and gals..I updated my guide to cover installation under solaris 11 also. As you will see, there are some additional steps required under 11 that were not necessary under 10. No idea if it is that way, or my 11 install is simply f**ed up. But anyway, following this guide worked for me, so I hope it will work for other people out there. Enjoy! and as always, any comments/questions/corrections are welcome.

Regards.
Title: Compile Amule on Sun Blade 150
Post by: oracle on June 09, 2006, 12:10:33 AM
Thanks for the guide. I've followed it step by step, but I'm still having some trouble with the gmake procedure.. trying to figure out where the problem is. Here's a screen dump.
 
# gmake
gmake  all-recursive
gmake[1]: Entering directory `/opt/aMule-2.1.2'
Making all in m4
gmake[2]: Entering directory `/opt/aMule-2.1.2/m4'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/opt/aMule-2.1.2/m4'
Making all in docs
gmake[2]: Entering directory `/opt/aMule-2.1.2/docs'
Making all in man
gmake[3]: Entering directory `/opt/aMule-2.1.2/docs/man'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/opt/aMule-2.1.2/docs/man'
gmake[3]: Entering directory `/opt/aMule-2.1.2/docs'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/opt/aMule-2.1.2/docs'
gmake[2]: Leaving directory `/opt/aMule-2.1.2/docs'
Making all in src
gmake[2]: Entering directory `/opt/aMule-2.1.2/src'
Making all in libs
gmake[3]: Entering directory `/opt/aMule-2.1.2/src/libs'
Making all in ec
gmake[4]: Entering directory `/opt/aMule-2.1.2/src/libs/ec'
gmake  all-am
gmake[5]: Entering directory `/opt/aMule-2.1.2/src/libs/ec'
source='ECPacket.cpp' object='libec_noevt_a-ECPacket.o' libtool=no \
        DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
        g++ -DHAVE_CONFIG_H -I. -I. -I../../..   -I/usr/local/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I../../../src -I../../../src/libs -DECSOCKET_USE_EVENTS=0 -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC   -c -o libec_noevt_a-ECPacket.o `test -f 'ECPacket.cpp' || echo './'`ECPacket.cpp
In file included from /usr/include/sys/wait.h:24,
                 from /usr/include/stdlib.h:22,
                 from /usr/include/wx-2.6/wx/string.h:43,
                 from ECPacket.h:28,
                 from ECPacket.cpp:25:
/usr/include/sys/siginfo.h:259: error: 'ctid_t' is used as a type, but is not defined as a type.
/usr/include/sys/siginfo.h:390: error: 'ctid_t' is used as a type, but is not defined as a type.
gmake[5]: *** [libec_noevt_a-ECPacket.o] Error 1
gmake[5]: Leaving directory `/opt/aMule-2.1.2/src/libs/ec'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/opt/aMule-2.1.2/src/libs/ec'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/opt/aMule-2.1.2/src/libs'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/opt/aMule-2.1.2/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/aMule-2.1.2'
gmake: *** [all] Error 2
Title: Re: Guide to compile amule/amuleweb on Solaris 10 and 11
Post by: skolnick on June 11, 2006, 08:57:48 PM
Hello Oracle

I am currently building binaries for Solaris x86, and will release them shortly. Sorry about the delay, but my solaris test machine just died, and spent a long ime building it up again. I will publish the binaries shortly, in the section for unofficial builds.

Regards.
Title: Re: Guide to compile amule/amuleweb on Solaris 10 and 11
Post by: skolnick on June 11, 2006, 09:01:20 PM
Hello Oracle

Sorry, I just noticed you use SPARC, not x86. This guide was made using x86 versions of Solaris, since I have not enough money to buy a decent SPAC machine :( but IIRC, this guide worked mostly for xushi, who uses SPARC also. Maybe you want to contact him, and see if he has some advices for you. For now, all I can tell you is to please provide the compiler version you use, the version of make, ld, etc, and making sure you use the GNU stuff, not the SUN one (not that it will not work, but this guide is made for GNU things).

Regards.
Title: Re: Guide to compile amule/amuleweb on Solaris 10 and 11
Post by: vdb on November 12, 2009, 03:15:15 PM
To open up this rather old threat., I'm currently trying to compile aMule 2.2.6 on a Solaris 10 u8 x86 machine and it is not very succesful.

The compilation of a minimal "amule" (no upnp, no 118n, no unicode, only the monolith) completes succesfully, but the moment I run it, it crashes and produces a nice core dump.

Anybody have a good idea about what can be wrong here? Or how I can improve on the compilation, or perhaps just acqure the binaries and save me another weekend?  :)

Cheers.
Title: Re: Guide to compile amule/amuleweb on Solaris 10 and 11
Post by: Stu Redman on November 15, 2009, 12:49:03 PM
Anybody have a good idea about what can be wrong here?
Not without a proper backtrace.
Also, this is the wrong board. If it compiles it's not a compilation problem. Please create a proper backtrace and start a new thread in the Backtraces board.