LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2018, 05:29 AM   #1
PreguntoYo
Member
 
Registered: Jan 2012
Distribution: openSUSE, Gentoo, Slackware
Posts: 73

Rep: Reputation: 15
aMule doesn't compile in Slackware 64 stable


I've tried to compile it this morning, using the SlackBuild results in:

Code:
.
.
.
aMule-2.3.1/aMule.app/Contents/Frameworks/libthreadutil.2.dylib
aMule-2.3.1/aMule.app/Contents/Frameworks/libixml.2.dylib
aMule-2.3.1/aMule.app/Contents/SharedSupport/
aMule-2.3.1/aMule.app/Contents/SharedSupport/locale/
patching file src/UPnPBase.cpp
Hunk #1 FAILED at 29.
Hunk #2 succeeded at 1161 (offset 34 lines).
Hunk #3 FAILED at 1149.
Hunk #4 succeeded at 1233 with fuzz 1 (offset 38 lines).
Hunk #5 FAILED at 1216.
Hunk #6 FAILED at 1252.
Hunk #7 FAILED at 1280.
Hunk #8 FAILED at 1321.
Hunk #9 FAILED at 1342.
7 out of 9 hunks FAILED -- saving rejects to file src/UPnPBase.cpp.rej
patching file src/UPnPBase.h
Hunk #1 FAILED at 490.
1 out of 1 hunk FAILED -- saving rejects to file src/UPnPBase.h.rej

aMule:
Would you like to continue processing the rest of the
queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:
Which is strange, because I had previously built and installed required dependencies in my system:

cryptopp-5.6.5-x86_64-1_SBo
wxPython-2.8.12.1-x86_64-2_SBo

Am I doing something wrong?
 
Old 07-30-2018, 05:42 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,102

Rep: Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177
have you tried removing libupnp and trying to build it again?
 
Old 07-30-2018, 06:05 AM   #3
PreguntoYo
Member
 
Registered: Jan 2012
Distribution: openSUSE, Gentoo, Slackware
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ponce View Post
have you tried removing libupnp and trying to build it again?
I haven't libupnp installed; the SlackBuild doesn't requires it.
 
Old 07-30-2018, 07:08 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,102

Rep: Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177
try removing this line from the SlackBuild
Code:
patch -p1 < $CWD/libupnp-1.8.patch
 
2 members found this post helpful.
Old 07-30-2018, 07:17 AM   #5
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,221

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
Quote:
Originally Posted by PreguntoYo View Post
Code:
7 out of 9 hunks FAILED -- saving rejects to file src/UPnPBase.cpp.rej
patching file src/UPnPBase.h
Hunk #1 FAILED at 490.
1 out of 1 hunk FAILED -- saving rejects to file src/UPnPBase.h.rej
Same build failure for me on Slack 14.2_x86 (with or without libupnp installed).
 
Old 07-30-2018, 07:19 AM   #6
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,221

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
Quote:
Originally Posted by ponce View Post
try removing this line from the SlackBuild
Code:
patch -p1 < $CWD/libupnp-1.8.patch
But it builds with this patch line commented out
 
Old 07-30-2018, 02:42 PM   #7
PreguntoYo
Member
 
Registered: Jan 2012
Distribution: openSUSE, Gentoo, Slackware
Posts: 73

Original Poster
Rep: Reputation: 15
Thumbs up Thanks!

Quote:
Originally Posted by ponce View Post
try removing this line from the SlackBuild
Code:
patch -p1 < $CWD/libupnp-1.8.patch
Confirmed. It compiles (and runs) in Slackware 64 14.2 stable after editing the SlackBuild and commenting out the patch line.

About why the code first needed to be patched to work and not now is beyond my knowledge...
 
Old 07-30-2018, 02:59 PM   #8
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
My guess is the patch was added and was somehow never tested or only tested against a different version of aMule. The md5sum still matches what is recorded in the .info file so I doubt the release was changed after the fact.
 
Old 07-31-2018, 02:12 AM   #9
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,102

Rep: Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177
Quote:
Originally Posted by PreguntoYo View Post
About why the code first needed to be patched to work and not now is beyond my knowledge...
it actually needs to be patched against libupnp-1.8.x (that is an optional dependency) but to be honest I forgot what I had done/why I had done it when I committed that (senility is hitting me prematurely!).
I'll just revert the commit.
 
  


Reply

Tags
amule



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is more stable: Slackware or Debian Stable ? Xeratul Slackware 100 11-14-2015 10:07 PM
[SOLVED] Amule doesn't work with kad enrico_dvchp Ubuntu 9 08-08-2010 02:15 PM
Installing amule 2.2.0 on slackware 11 jena Linux - Software 3 09-07-2008 08:51 AM
Amule Compile Problems? keysorsoze Fedora 4 09-09-2005 10:10 AM
aMule Won't Compile AFI_Flame Linux - Software 3 10-10-2004 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration