LinuxQuestions.org
Visit Jeremy's Blog.
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 05-04-2017, 11:44 PM   #556
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,300

Rep: Reputation: 2275Reputation: 2275Reputation: 2275Reputation: 2275Reputation: 2275Reputation: 2275Reputation: 2275Reputation: 2275Reputation: 2275Reputation: 2275Reputation: 2275

I've sent a note to ppr:kut about this, but with the new kernel in -current, virtualbox-kernel fails to compile. A simple sed can fix it. I don't intend for ponce to add this to his repo (unless ppr:kut doesn't plan to update his SlackBuild, in which case, if he notifies me, I'll add an update to this thread).

For those of you who might need to build this before an update is put out, you can use this sed line right before make is called.

Code:
# Fix Linux 4.9 compiling
sed -ie '92,94d' vboxdrv/SUPDrvInternal.h
 
1 members found this post helpful.
Old 05-05-2017, 05:34 PM   #557
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 362

Rep: Reputation: 67
Rstudio 0.98.501 (of SBo; but 1.0.143 on https://www.rstudio.com/products/rstudio/download/) won't compile:
Code:
[  0%] Building CXX object src/cpp/core/CMakeFiles/rstudio-core.dir/BoostErrors.cpp.o
/home/sbo_64/tmp/sbopkg.x7A2I0/rstudio-rstudio-c097d85/src/cpp/core/BoostErrors.cpp:38:16: error: looser throw specifier for ‘virtual const char* boost::interprocess::interprocess_error_category::name() const’
    const char* name() const ;
                ^~~~
In file included from /home/sbo_64/tmp/sbopkg.x7A2I0/rstudio-rstudio-c097d85/src/cpp/core/include/core/BoostErrors.hpp:19:0,
                 from /home/sbo_64/tmp/sbopkg.x7A2I0/rstudio-rstudio-c097d85/src/cpp/core/BoostErrors.cpp:16:
/usr/include/boost/system/error_code.hpp:190:32: error:   overriding ‘virtual const char* boost::system::error_category::name() const noexcept’
       virtual const char *     name() const BOOST_SYSTEM_NOEXCEPT = 0;
                                ^~~~
/home/sbo_64/tmp/sbopkg.x7A2I0/rstudio-rstudio-c097d85/src/cpp/core/BoostErrors.cpp:172:16: error: looser throw specifier for ‘virtual const char* boost::thread_error::thread_error_category::name() const’
    const char* name() const ;
                ^~~~
In file included from /home/sbo_64/tmp/sbopkg.x7A2I0/rstudio-rstudio-c097d85/src/cpp/core/include/core/BoostErrors.hpp:19:0,
                 from /home/sbo_64/tmp/sbopkg.x7A2I0/rstudio-rstudio-c097d85/src/cpp/core/BoostErrors.cpp:16:
/usr/include/boost/system/error_code.hpp:190:32: error:   overriding ‘virtual const char* boost::system::error_category::name() const noexcept’
       virtual const char *     name() const BOOST_SYSTEM_NOEXCEPT = 0;
                                ^~~~
make[2]: *** [src/cpp/core/CMakeFiles/rstudio-core.dir/build.make:111: src/cpp/core/CMakeFiles/rstudio-core.dir/BoostErrors.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:200: src/cpp/core/CMakeFiles/rstudio-core.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
Cleaning up...

Last edited by brobr; 05-05-2017 at 05:36 PM.
 
Old 05-06-2017, 04:19 AM   #558
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,834

Original Poster
Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
the rstudio-desktop script will need a little refactoring to work with the new 1.0.143 version (there will also be additional dependencies, like qt5-webkit): please get in touch with the maintainer and ask if he can have a look at it.
 
Old 05-06-2017, 06:37 AM   #559
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 362

Rep: Reputation: 67
Yes, I just emailed the maintainer; note that due to the upgrade of boost Rstudio 0.98 won't run either
Code:
bash-4.4$ rstudio
rstudio: error while loading shared libraries: libboost_date_time.so.1.61.0: cannot open shared object file: No such file or directory
 
Old 05-16-2017, 09:04 AM   #560
orbea
Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 728

Rep: Reputation: Disabled
openmw no longer compiles with current, I tried both the version as SBo and the current git master. The problem however is the error message is bogus, likely neither the line number or affected file are correct.

Code:
Scanning dependencies of target esmtool
Scanning dependencies of target bsatool
[ 25%] Generating ui_settingspage.h
Scanning dependencies of target openmw-essimporter
Scanning dependencies of target openmw-iniimporter
Scanning dependencies of target openmw
[ 25%] Generating qrc_launcher.cxx
[ 25%] Building CXX object apps/bsatool/CMakeFiles/bsatool.dir/bsatool.cpp.o
[ 25%] Building CXX object apps/esmtool/CMakeFiles/esmtool.dir/esmtool.cpp.o
[ 25%] Building CXX object apps/mwiniimporter/CMakeFiles/openmw-iniimporter.dir/main.cpp.o
[ 25%] Building CXX object apps/essimporter/CMakeFiles/openmw-essimporter.dir/main.cpp.o
[ 25%] Generating moc_datafilespage.cxx
[ 25%] Generating moc_graphicspage.cxx
[ 25%] Generating moc_maindialog.cxx
/usr/include/boost/predef/os/windows.h:52: Parse error at "defined"
make[2]: *** [apps/launcher/CMakeFiles/openmw-launcher.dir/build.make:94: apps/launcher/moc_maindialog.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:633: apps/launcher/CMakeFiles/openmw-launcher.dir/all] Error 2
Seems fedora may have had a similar issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1396755

Any ideas what to do about this?
 
Old 05-16-2017, 03:39 PM   #561
orbea
Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 728

Rep: Reputation: Disabled
Fedora carries these two patches for qt4 to resolve this issue.

Code:
diff -up qt-everywhere-opensource-src-4.8.7/src/corelib/global/qglobal.h.majmin qt-everywhere-opensource-src-4.8.7/src/corelib/global/qglobal.h
--- qt-everywhere-opensource-src-4.8.7/src/corelib/global/qglobal.h.majmin	2015-05-07 09:14:48.000000000 -0500
+++ qt-everywhere-opensource-src-4.8.7/src/corelib/global/qglobal.h	2016-12-08 12:10:29.677359701 -0600
@@ -52,7 +52,7 @@
 /*
    can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))
 */
-#define QT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
+#define QT_VERSION_CHECK(qt_version_check_major, qt_version_check_minor, qt_version_check_patch) ((qt_version_check_major<<16)|(qt_version_check_minor<<8)|(qt_version_check_patch))
 
 #define QT_PACKAGEDATE_STR "2015-05-07"
http://pkgs.fedoraproject.org/cgit/r...ON_CHECK.patch

Code:
diff -up qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp.QTBUG-22829 qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp
--- qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp.QTBUG-22829	2015-05-07 09:14:44.000000000 -0500
+++ qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp	2016-12-08 12:32:46.638962448 -0600
@@ -188,8 +188,12 @@ int runMoc(int _argc, char **_argv)
     pp.macros["Q_MOC_RUN"];
     pp.macros["__cplusplus"];
 
-    // Workaround a bug while parsing the boost/type_traits/has_operator.hpp header. See QTBUG-22829
+    // Workaround a bugs while parsing some boost headers. See QTBUG-22829 
     pp.macros["BOOST_TT_HAS_OPERATOR_HPP_INCLUDED"];
+    pp.macros["BOOST_LEXICAL_CAST_INCLUDED"];
+    pp.macros["BOOST_NEXT_PRIOR_HPP_INCLUDED"];
+    pp.macros["BOOST_TYPE_TRAITS_HPP"];
+    pp.macros["_SYS_SYSMACROS_H_OUTER"];
 
     QByteArray filename;
     QByteArray output;
http://pkgs.fedoraproject.org/cgit/r...UG-22829.patch

I had to compile qt4 with the following line changed and an additional patch for gcc7, otherwise it would error in numerous places. Note that fedora also did this.

Code:
export CXXFLAGS="$SLKCFLAGS -std=gnu++98"
Code:
diff -up qt-everywhere-opensource-src-4.8.7/configure.gcc6 qt-everywhere-opensource-src-4.8.7/configure
--- qt-everywhere-opensource-src-4.8.7/configure.gcc6	2016-04-15 07:04:19.430268222 -0500
+++ qt-everywhere-opensource-src-4.8.7/configure	2016-04-15 07:05:22.157568689 -0500
@@ -7744,7 +7744,7 @@ case "$XPLATFORM" in
     *-g++*)
 	# Check gcc's version
 	case "$(${QMAKE_CONF_COMPILER} -dumpversion)" in
-	    5*|4*|3.4*)
+	    8*|7*|6*|5*|4*|3.4*)
 		;;
             3.3*)
                 canBuildWebKit="no"
@@ -8060,7 +8060,7 @@ g++*)
     3.*)
         COMPILER_VERSION="3.*"
         ;;
-    5*|4.*)
+    8*|7*|6*|5*|4.*)
         COMPILER_VERSION="4"
         ;;
     *)
diff -up qt-everywhere-opensource-src-4.8.7/src/xmlpatterns/api/qcoloroutput_p.h.gcc6 qt-everywhere-opensource-src-4.8.7/src/xmlpatterns/api/qcoloroutput_p.h
--- qt-everywhere-opensource-src-4.8.7/src/xmlpatterns/api/qcoloroutput_p.h.gcc6	2015-05-07 09:14:48.000000000 -0500
+++ qt-everywhere-opensource-src-4.8.7/src/xmlpatterns/api/qcoloroutput_p.h	2016-04-15 07:04:19.431268227 -0500
@@ -70,8 +70,8 @@ namespace QPatternist
             ForegroundShift = 10,
             BackgroundShift = 20,
             SpecialShift    = 20,
-            ForegroundMask  = ((1 << ForegroundShift) - 1) << ForegroundShift,
-            BackgroundMask  = ((1 << BackgroundShift) - 1) << BackgroundShift
+            ForegroundMask  = 0x1f << ForegroundShift,
+            BackgroundMask  = 0x7 << BackgroundShift
         };
 
     public:
http://pkgs.fedoraproject.org/cgit/r...8.7-gcc6.patch

However qtwebkit still fails to compile with this, but this not really needed for openmw.
Code:
make[3]: Leaving directory '/tmp/qtwebkit-2.3.4/WebKitBuild/Release/Source/WebCore'
QMAKEPATH=/tmp/qtwebkit-2.3.4/Tools/qmake /usr/bin/qmake /tmp/qtwebkit-2.3.4/Source/WebCore/Target.pri CONFIG+=production_build QMAKE_CFLAGS=-O2\ -fPIC QMAKE_CXXFLAGS=-O2\ -fPIC CONFIG+=no_webkit2 CONFIG+=release CONFIG-=debug CONFIG+=production_build -o Makefile.WebCore.Target
WARNING: /tmp/qtwebkit-2.3.4/Source/WTF/WTF.pri:26: Unable to find file for inclusion .qmake.cache
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
WARNING: /tmp/qtwebkit-2.3.4/Tools/qmake/mkspecs/features/use_all_in_one_files.prf:15: Unmatched parentheses are deprecated.
make[2]: Leaving directory '/tmp/qtwebkit-2.3.4/WebKitBuild/Release/Source/WebCore'
make[1]: Leaving directory '/tmp/qtwebkit-2.3.4/WebKitBuild/Release'
make: *** [Makefile:408: incremental] Error 2
 
1 members found this post helpful.
Old 05-16-2017, 04:03 PM   #562
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,834

Original Poster
Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
I was having a look at that too but here I needed just the second patch you linked (noted in the bugreport) and this for gcc >= 6.x
Code:
diff -Naur qt-everywhere-opensource-src-4.8.7.orig/src/plugins/accessible/widgets/widgets.pro qt-everywhere-opensource-src-4.8.7/src/plugins/accessible/widgets/widgets.pro
--- qt-everywhere-opensource-src-4.8.7.orig/src/plugins/accessible/widgets/widgets.pro  2015-05-07 16:14:48.000000000 +0200
+++ qt-everywhere-opensource-src-4.8.7/src/plugins/accessible/widgets/widgets.pro       2017-05-16 22:03:46.894785323 +0200
@@ -21,4 +21,4 @@
             qaccessiblemenu.h \
             itemviews.h
 
-
+QMAKE_CXXFLAGS += -std=gnu++98
diff -Naur qt-everywhere-opensource-src-4.8.7.orig/src/script/script.pro qt-everywhere-opensource-src-4.8.7/src/script/script.pro
--- qt-everywhere-opensource-src-4.8.7.orig/src/script/script.pro       2015-05-07 16:14:43.000000000 +0200
+++ qt-everywhere-opensource-src-4.8.7/src/script/script.pro    2017-05-16 22:03:21.354786845 +0200
@@ -107,3 +107,5 @@
 
 # WebKit doesn't compile in C++0x mode
 *-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x
+
+QMAKE_CXXFLAGS += -std=gnu++98
both for qt-nowebkit.SlackBuild.

qtwebkit.SlackBuild is still running...
 
1 members found this post helpful.
Old 05-16-2017, 05:05 PM   #563
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,442

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Conky compiling is broken on -current due to gcc-7 changes. I am not going to submit a fix to SBo until we get closer to the next release, but for now if anyone needs this info you can fix the build by adding this sed line to the 14.2 build script.

Code:
# fix compile error with gcc-7.*
sed -i "29i #include <functional>" src/luamm.hh
 
1 members found this post helpful.
Old 05-17-2017, 02:59 AM   #564
orbea
Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 728

Rep: Reputation: Disabled
My PyQt5-5.7 install started to segfault python when called with 'python setup.py build' so I tried to rebuild it and found it no longer builds on current due to the new sip-4.19.2. Fortunately PyQt5-5.8.2 is out and all of my issues are resolved with it.

https://sourceforge.net/projects/pyq...l-5.8.2.tar.gz
https://www.riverbankcomputing.com/s...pyqt/download5
https://www.riverbankcomputing.com/news/pyqt-582
 
Old 05-17-2017, 03:06 AM   #565
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,834

Original Poster
Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
to stay aligned with the qt5 release on SBo I version-bumped it to 5.7.1, that builds fine too

http://cgit.ponce.cc/slackbuilds/commit/?h=PyQt5

http://cgit.ponce.cc/slackbuilds/refs/heads
 
1 members found this post helpful.
Old 05-17-2017, 01:08 PM   #566
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 194

Rep: Reputation: Disabled
Hello Everyone,

Can't compile roxterm in Slackware64-Current-May112017. I get this error

Checking pkg-config gtk+-3.0...ok
Checking pkg-config vte-2.90...error
Checking pkg-config gtk+-2.0...ok (2.24.31)
Checking pkg-config vte...error
Traceback (most recent call last):
File "./mscript.py", line 213, in <module>
ctx.pkg_config('vte', 'VTE', '0.20')
File "/tmp/SBo/roxterm-2.9.7/maitch.py", line 912, in pkg_config
[pkg_config, '--modversion', pkgs])[0].strip()
File "/tmp/SBo/roxterm-2.9.7/maitch.py", line 887, in prog_output
(' '.join(prog), proc.returncode, result[1].strip()))
maitch.MaitchChildError: /usr/bin/pkg-config --modversion vte failed:
1:
Package vte was not found in the pkg-config search path.
Perhaps you should add the directory containing `vte.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vte' found

I looked in pkgtool and i see vte-0.44.3-x86_64-1 is installed.
 
Old 05-17-2017, 01:20 PM   #567
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,834

Original Poster
Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
https://www.linuxquestions.org/quest...2/#post5705272

https://www.linuxquestions.org/quest...3/#post5710800
 
Old 05-17-2017, 08:04 PM   #568
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 282

Rep: Reputation: 75
mp3blaster 3.2.5 fails to build. I know this has to be current-specific since I was able to build it before the new massive set of updates.

Relevant compilation output is below:

Code:
g++ -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -fPIC -MT bitwindow.o -MD -MP -MF .deps/bitwindow.Tpo -c -o bitwindow.o bitwindow.cc
mv -f .deps/bitwindow.Tpo .deps/bitwindow.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -fPIC -MT huffmantable.o -MD -MP -MF .deps/huffmantable.Tpo -c -o huffmantable.o huffmantable.cc
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
 };
 ^
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
make[2]: *** [Makefile:274: huffmantable.o] Error 1
make[2]: Leaving directory '/tmp/SBo/mp3blaster-3.2.5/mpegsound'
make[1]: *** [Makefile:297: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/mp3blaster-3.2.5'
make: *** [Makefile:191: all] Error 2
btw there's also a new release, 3.2.6, which suffers from the same build issue.
 
Old 05-17-2017, 08:53 PM   #569
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,663

Rep: Reputation: 964Reputation: 964Reputation: 964Reputation: 964Reputation: 964Reputation: 964Reputation: 964Reputation: 964
Quote:
Originally Posted by sombragris View Post
mp3blaster 3.2.5 fails to build. I know this has to be current-specific since I was able to build it before the new massive set of updates.

Relevant compilation output is below:

Code:
g++ -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -fPIC -MT bitwindow.o -MD -MP -MF .deps/bitwindow.Tpo -c -o bitwindow.o bitwindow.cc
mv -f .deps/bitwindow.Tpo .deps/bitwindow.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -fPIC -MT huffmantable.o -MD -MP -MF .deps/huffmantable.Tpo -c -o huffmantable.o huffmantable.cc
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
 };
 ^
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
huffmantable.cc:587:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
make[2]: *** [Makefile:274: huffmantable.o] Error 1
make[2]: Leaving directory '/tmp/SBo/mp3blaster-3.2.5/mpegsound'
make[1]: *** [Makefile:297: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/mp3blaster-3.2.5'
make: *** [Makefile:191: all] Error 2
btw there's also a new release, 3.2.6, which suffers from the same build issue.
It has been reported upstream: https://github.com/stragulus/mp3blaster/issues/3

Or you can use my patch below
Code:
--- a/audio/mp3blaster/mp3blaster.SlackBuild
+++ b/audio/mp3blaster/mp3blaster.SlackBuild
@@ -72,7 +72,7 @@ find -L . \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
 CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS -std=c++11 -Wno-narrowing" \
 ./configure \
   --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \

Last edited by willysr; 05-17-2017 at 08:56 PM.
 
1 members found this post helpful.
Old 05-17-2017, 09:11 PM   #570
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 282

Rep: Reputation: 75
Quote:
Originally Posted by willysr View Post
It has been reported upstream: https://github.com/stragulus/mp3blaster/issues/3

Or you can use my patch below
Code:
--- a/audio/mp3blaster/mp3blaster.SlackBuild
+++ b/audio/mp3blaster/mp3blaster.SlackBuild
@@ -72,7 +72,7 @@ find -L . \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
 CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS -std=c++11 -Wno-narrowing" \
 ./configure \
   --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \
Thanks Willy! That worked great.
 
  


Reply

Tags
current, sbo, sbopkg, slackrepo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Error building gst1-plugins-good 1.4.1 from SBO l0rddarkf0rce Slackware 4 10-06-2014 05:58 PM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 01:10 AM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 01:52 PM
Pls help me take my 1st step! verysoon Fedora - Installation 2 12-12-2005 07:49 AM

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

All times are GMT -5. The time now is 11:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration