LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-2016, 03:01 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Can't build libofx on Slackware 14.2


Hi,

When trying to build libofx (with optional dependency libxml++ installed), I get the following error during compilation:

Code:
/usr/include/libxml++-2.6/libxml++/validators/xsdvalidator.h:144:25:
warning: override controls (override/final) only available with
-std=c++11 or -std=gnu++11
   void initialize_valid() override;
                         ^
/usr/include/libxml++-2.6/libxml++/validators/xsdvalidator.h:145:27:
warning: override controls (override/final) only available with
-std=c++11 or -std=gnu++11
   void release_underlying() override;
                           ^
Makefile:390: recipe for target 'nodeparser.o' failed
make[2]: *** [nodeparser.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:390: recipe for target 'ofxconnect.o' failed
make[2]: *** [ofxconnect.o] Error 1
Makefile:390: recipe for target 'ofxpartner.o' failed
make[2]: *** [ofxpartner.o] Error 1
make[2]: Leaving directory '/tmp/microlinux/libofx-0.9.9/ofxconnect'
Makefile:423: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/microlinux/libofx-0.9.9'
Makefile:306: recipe for target 'all' failed
make: *** [all] Error 2
I started from the vanilla SBo build script, then made a few tests on my own. A version bump to 0.9.10 got the same result.

Apparently this has already been reported here:

https://sourceforge.net/p/libofx/bugs/47/

Any suggestions?

Niki
 
Old 07-30-2016, 03:23 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182
as you posted on SBo's mailing list first I answered also there

Code:
From ad93ab91eb1c52f95e6fe76333a171b980e3974f Mon Sep 17 00:00:00 2001
From: Matteo Bernardini <ponce@slackbuilds.org>
Date: Sat, 30 Jul 2016 10:25:22 +0200
Subject: libraries/libofx: Fix build with c++11.

Thanks to ArchLinux for the tip

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
---
 libraries/libofx/libofx.SlackBuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/libofx/libofx.SlackBuild b/libraries/libofx/libofx.SlackBuild
index 13ec564..39bb97a 100644
--- a/libraries/libofx/libofx.SlackBuild
+++ b/libraries/libofx/libofx.SlackBuild
@@ -84,7 +84,7 @@ CXXFLAGS="$SLKCFLAGS" \
   --mandir=/usr/man \
   --build=$ARCH-slackware-linux
 
-make
+make CXXFLAGS+=-std=c++11
 make install-strip DESTDIR=$PKG
 
 gzip -9 $PKG/usr/man/man?/*.?
-- 
cgit v0.11.2

Last edited by ponce; 07-30-2016 at 03:26 AM.
 
  


Reply



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
SBOPKG(8) not list/show/build dependencies of SlackBuild scripts to build Slackware p xavi_slacky Slackware 3 06-13-2013 07:53 PM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM

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

All times are GMT -5. The time now is 10:51 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