Ask Your Question

amule compilation on fedora 23

asked 2016-05-05 11:21:59 -0500

thibaut75011 gravatar image


I'm trying to compile amule on fedora 23 but I have a error.

I installed dependencies

sudo dnf install git redhat-rpm-config gcc gcc-c++ make bison flex binutils-devel gettext-devel GeoIP-devel wxGTK-devel zlib-devel libpng-devel gd-devel libupnp-devel cryptopp-devel

I downloaded the source code

git clone

then I compiled:

./ && ./configure --enable-ccache --enable-amule-daemon && make

More about my problem here:

Any idea?

edit retag flag offensive close merge delete


Why don't you install it from RPMFusion?

skytux gravatar imageskytux ( 2016-05-05 12:26:53 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-05-05 19:20:54 -0500

sergiomb gravatar image

updated 2016-05-08 00:03:41 -0500

it is available on rpmfusion

but if you want compile it , you may use mock :

git clone
cd amule
spectool -g amule.spec
rpmbuild -bs amule.spec --define "_sourcedir ." --define '_srcrpmdir .' && mock -r fedora-23-x86_64 --no-clean --rebuild ./amule-2.3.1-8.fc23.src.rpm

in reply I update the spec :;O=D

spectool -g amule.spec #will download the source
rpmbuild -bs amule.spec  --define "_sourcedir ." --define '_srcrpmdir .'  && mock -r fedora-24-x86_64 --no-clean --rebuild ./amule-2.3.2-0.1.20160506git88aa023.fc23.src.rpm

on begin of new amule.spec you got

#globals for
%global commit1 88aa0231f0c06023b32cba0d5a3871d418bb0f1f
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})

just change to commit that you want. don't understand what you want and in RPMFusion is not possible do f24 branch for amule , if was possible we had done for all packages .

for spec you may deduce how compile in shell and it is easy :

BuildRequires:  wxGTK-devel >= 0:2.8.7, desktop-file-utils, expat-devel
BuildRequires:  gd-devel >= 2.0.0, libpng-devel
BuildRequires:  gettext-devel, flex, bison
BuildRequires:  readline-devel, cryptopp-devel, libupnp-devel
BuildRequires:  GeoIP-devel
BuildRequires:  libtool


dnf install  wxGTK-devel  gettext-devel desktop-file-utils expat-devel flex bison readline-devel cryptopp-devel libupnp-devel libtool etc etc

from section %build

 CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic}" ; export CFLAGS ; 
  CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic}" ; export CXXFLAGS ; 
  FFLAGS="${FFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules}" ; export FFLAGS ; 
  FCFLAGS="${FCFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules}" ; export FCFLAGS ; 
  LDFLAGS="${LDFLAGS:--Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld}"; export LDFLAGS; 
  [ "1" = 1 ] && for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ; do 
      [ -f /usr/lib/rpm/redhat/$(basename $i) ] && /usr/bin/rm -f $i && /usr/bin/cp -fv /usr/lib/rpm/redhat/$(basename $i) $i ; 
  done ; 
  [ "1" = 1 ] && [ x != "x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld" ] && 
      for i in $(find . -name ; do 
        /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' $i 
      done ; 
  ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu \
        --program-prefix= \
        --disable-dependency-tracking \
        --prefix=/usr \
        --exec-prefix=/usr \
        --bindir=/usr/bin \
        --sbindir=/usr/sbin \
        --sysconfdir=/etc \
        --datadir=/usr/share \
        --includedir=/usr/include \
        --libdir=/usr/lib64 \
        --libexecdir=/usr/libexec \
        --localstatedir=/var \
        --sharedstatedir=/var/lib \
        --mandir=/usr/share/man \
    --disable-rpath \
    --disable-debug \
    --enable-wxcas \
    --enable-cas \
    --enable-alc \
    --enable-alcc \
    --enable-xas \
    --enable-amule-daemon \
    --enable-amulecmd \
    --enable-webserver \
    --enable-amule-daemon \
    --enable-geoip \
    --enable-ccache \
    --enable-amule-gui \
    --enable-optimize \

make -j3

to know ... (more)

edit flag offensive delete link more


The commit you basing your build is a 2.4.0 and not a 2.3.2. I think the goal is to have it to work with wxWidgets-3.0.

thibaut75011 gravatar imagethibaut75011 ( 2016-05-07 17:34:25 -0500 )edit

just for me to understand how it works in rpm fusion: why don't you create a branch on github for the next f24 amule.spec file?

thibaut75011 gravatar imagethibaut75011 ( 2016-05-07 17:51:08 -0500 )edit

just need switch the commit , what commit do you want ?

sergiomb gravatar imagesergiomb ( 2016-05-07 19:53:58 -0500 )edit

Thanks, it's what I was looking for. By the way the next release is going to be 2.3.2

thibaut75011 gravatar imagethibaut75011 ( 2016-05-08 07:22:35 -0500 )edit

answered 2016-05-06 14:15:49 -0500

thibaut75011 gravatar image

Thank you. It works with the rpmfusion amule compilation script.

But I would like to work with the last version of the source as we are close to a release. It use to work 6 month ago. That's why I'm surprise.

I'm trying to write a javascript client for amule that's why i need to be able to compile, I need to write debug info in the code to understand what's going on exactly.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-05-05 11:21:59 -0500

Seen: 573 times

Last updated: May 08 '16