LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't build libofx on Slackware 14.2 (https://www.linuxquestions.org/questions/slackware-14/cant-build-libofx-on-slackware-14-2-a-4175585856/)

kikinovak 07-30-2016 03:01 AM

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

ponce 07-30-2016 03:23 AM

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



All times are GMT -5. The time now is 01:39 PM.