LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-17-2019, 01:49 PM   #1801
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 36

Rep: Reputation: 0

Quote:
Originally Posted by ponce View Post
apply this
Code:
From 970721ff87827f8554e6d882a4afdc670c561e0a Mon Sep 17 00:00:00 2001
From: Matteo Bernardini <ponce@slackbuilds.org>
Date: Wed, 17 Apr 2019 11:55:13 +0200
Subject: [PATCH] system/virtualbox: Patch for python >= 3.7.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
---
 system/virtualbox/python_3.7.patch      | 13 +++++++++++++
 system/virtualbox/virtualbox.SlackBuild |  3 +++
 2 files changed, 16 insertions(+)
 create mode 100644 system/virtualbox/python_3.7.patch

diff --git a/system/virtualbox/python_3.7.patch b/system/virtualbox/python_3.7.patch
new file mode 100644
index 0000000000..2bc9d0ee44
--- /dev/null
+++ b/system/virtualbox/python_3.7.patch
@@ -0,0 +1,13 @@
+diff -Naur VirtualBox-5.2.8.orig/src/libs/xpcom18a4/python/src/ErrorUtils.cpp VirtualBox-5.2.8/src/libs/xpcom18a4/python/src/ErrorUtils.cpp
+--- VirtualBox-5.2.8.orig/src/libs/xpcom18a4/python/src/ErrorUtils.cpp	2018-02-26 17:05:25.000000000 +0100
++++ VirtualBox-5.2.8/src/libs/xpcom18a4/python/src/ErrorUtils.cpp	2019-04-17 11:45:42.706698000 +0200
+@@ -440,7 +440,8 @@
+ #if PY_MAJOR_VERSION <= 2
+ 	char *tempResult = PyString_AsString(obResult);
+ #else
+-	char *tempResult = PyUnicode_AsUTF8(obResult);
++        /* PyUnicode_AsUTF8() is const char * as of Python 3.7, char * earlier. */
++	const char *tempResult = (const char *)PyUnicode_AsUTF8(obResult);
+ #endif
+ 	result = (char *)PyMem_Malloc(strlen(tempResult)+1);
+ 	if (result==NULL)
diff --git a/system/virtualbox/virtualbox.SlackBuild b/system/virtualbox/virtualbox.SlackBuild
index 69f6b6a361..f53fde16c6 100644
--- a/system/virtualbox/virtualbox.SlackBuild
+++ b/system/virtualbox/virtualbox.SlackBuild
@@ -135,6 +135,9 @@ patch -d src/VBox/Installer/linux -i $CWD/vboxdrv.sh-setup.diff
 # Fix wrong path to rdesktop-vrdp-keymaps
 patch -p1 -i $CWD/006-rdesktop-vrdp-keymap-path.patch
 
+# Patch for python-3.7
+patch -p1 < $CWD/python_3.7.patch
+
 # Remove gcc version check
 sed -i 's/^check_gcc$/#check_gcc/' ./configure
 
-- 
2.21.0
I applied the patch, but it looks to be failing in the same spot:
Code:
/tmp/SBo/VirtualBox-5.2.8/include/iprt/asm.h:752:98: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
     return ASMAtomicCmpXchgU8((volatile uint8_t RT_FAR *)pf, (const uint8_t)fNew, (const uint8_t)fOld);
                                                                                                  ^~~~
kmk: *** [/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/src/settings/global/UIGlobalSettingsProxy.o] Error 1
The failing command:
@g++ -c -O2 -fPIC -g -pipe -Wall -Wextra -Wno-missing-field-initializers -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wno-variadic-macros -frtti -fno-exceptions -Wno-long-long -fshort-wchar -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden  -std=c++11   -fPIC -Wno-switch -pthread -m64 -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/converter -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/extensions -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/extensions/graphics -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/extradata -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/globals -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/hostnetwork -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/medium -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/objects -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/platform -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/platform/darwin -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/platform/win -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/platform/x11 -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/normal -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/scale -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/seamless -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/information -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/selector -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/selector/graphics/details -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/global -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/machine -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/widgets -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/widgets/graphics -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/newvm -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/newvd -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/clonevm -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/clonevd -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/importappliance -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/firstrun -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/net -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/include -I/tmp/SBo/VirtualBox-5.2.8/include/VBox/Graphics -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/string -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/ipcd -I/usr/include/qt5/QtX11Extras -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5 -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/qtmoc -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/qtuic -I/tmp/SBo/VirtualBox-5.2.8/include -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/share/virtualbox\" -DPIC -DIN_RING3 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DHAVE_CONFIG_H -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DVBOX_WITH_XPCOM -DVBOX_WITH_XPCOM_NAMESPACE_CLEANUP -DPIC -DVBOX_WITH_AUDIO_OSS -DVBOX_WITH_AUDIO_ALSA -DVBOX_WITH_AUDIO_PULSE -DVBOX_WITH_E1000 -DVBOX_WITH_NETFLT -DVBOX_WITH_VDE -DVBOX_WITH_UDPTUNNEL -DVBOX_WITH_EXTPACK -DVBOX_WITH_EHCI -DVBOXR3_HARDENED_DLL -DVBOX_WITH_DRAG_AND_DROP -DVBOX_WITH_DRAG_AND_DROP_GH -DVBOX_WITH_CRHGSMI -DVBOX_WITH_VIRTIO -DVBOX_WITH_WDDM -DVBOX_WITH_CROGL -DVBOX_WITH_DEBUGGER_GUI -DVBOX_WITH_VIDEOHWACCEL -DVBOX_GUI_USE_QGL -DVBOX_GUI_WITH_NETWORK_MANAGER -DQT_X11EXTRAS_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -D_REENTRANT -DVBOX_WITH_MASKED_SEAMLESS -DVBOX_WITH_TRANSLUCENT_SEAMLESS -DVBOX_WS_X11 -Wp,-MD,/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/src/settings/global/UIGlobalSettingsProxy.o.dep -Wp,-MT,/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/src/settings/global/UIGlobalSettingsProxy.o -Wp,-MP -o /tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/src/settings/global/UIGlobalSettingsProxy.o /tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2
 
Old 04-17-2019, 01:55 PM   #1802
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,784

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by av2zeal View Post
I applied the patch, but it looks to be failing in the same spot:
Code:
/tmp/SBo/VirtualBox-5.2.8/include/iprt/asm.h:752:98: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
     return ASMAtomicCmpXchgU8((volatile uint8_t RT_FAR *)pf, (const uint8_t)fNew, (const uint8_t)fOld);
                                                                                                  ^~~~
kmk: *** [/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/src/settings/global/UIGlobalSettingsProxy.o] Error 1
The failing command:
@g++ -c -O2 -fPIC -g -pipe -Wall -Wextra -Wno-missing-field-initializers -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wno-variadic-macros -frtti -fno-exceptions -Wno-long-long -fshort-wchar -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden  -std=c++11   -fPIC -Wno-switch -pthread -m64 -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/converter -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/extensions -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/extensions/graphics -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/extradata -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/globals -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/hostnetwork -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/medium -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/objects -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/platform -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/platform/darwin -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/platform/win -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/platform/x11 -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/normal -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/scale -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/seamless -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/runtime/information -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/selector -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/selector/graphics/details -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/global -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/machine -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/widgets -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/widgets/graphics -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/newvm -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/newvd -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/clonevm -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/clonevd -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/importappliance -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/wizards/firstrun -I/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/net -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/include -I/tmp/SBo/VirtualBox-5.2.8/include/VBox/Graphics -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/string -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/ipcd -I/usr/include/qt5/QtX11Extras -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5 -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/qtmoc -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/qtuic -I/tmp/SBo/VirtualBox-5.2.8/include -I/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/share/virtualbox\" -DPIC -DIN_RING3 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DHAVE_CONFIG_H -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DVBOX_WITH_XPCOM -DVBOX_WITH_XPCOM_NAMESPACE_CLEANUP -DPIC -DVBOX_WITH_AUDIO_OSS -DVBOX_WITH_AUDIO_ALSA -DVBOX_WITH_AUDIO_PULSE -DVBOX_WITH_E1000 -DVBOX_WITH_NETFLT -DVBOX_WITH_VDE -DVBOX_WITH_UDPTUNNEL -DVBOX_WITH_EXTPACK -DVBOX_WITH_EHCI -DVBOXR3_HARDENED_DLL -DVBOX_WITH_DRAG_AND_DROP -DVBOX_WITH_DRAG_AND_DROP_GH -DVBOX_WITH_CRHGSMI -DVBOX_WITH_VIRTIO -DVBOX_WITH_WDDM -DVBOX_WITH_CROGL -DVBOX_WITH_DEBUGGER_GUI -DVBOX_WITH_VIDEOHWACCEL -DVBOX_GUI_USE_QGL -DVBOX_GUI_WITH_NETWORK_MANAGER -DQT_X11EXTRAS_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -D_REENTRANT -DVBOX_WITH_MASKED_SEAMLESS -DVBOX_WITH_TRANSLUCENT_SEAMLESS -DVBOX_WS_X11 -Wp,-MD,/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/src/settings/global/UIGlobalSettingsProxy.o.dep -Wp,-MT,/tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/src/settings/global/UIGlobalSettingsProxy.o -Wp,-MP -o /tmp/SBo/VirtualBox-5.2.8/out/linux.amd64/release/obj/VirtualBox/src/settings/global/UIGlobalSettingsProxy.o /tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2
the one you link is not the actual error, it is probably above: to see it more clearly pass the script the parameter "JOBS=1" when building and paste more output when it fails.
here (clean and full installation of slackware64-current) was failing because the sources needed to be updated to build fine against python-3.7 in current, after that everything went smooth.
 
Old 04-17-2019, 03:34 PM   #1803
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 36

Rep: Reputation: 0
Quote:
Originally Posted by ponce View Post
the one you link is not the actual error, it is probably above: to see it more clearly pass the script the parameter "JOBS=1" when building and paste more output when it fails.
here (clean and full installation of slackware64-current) was failing because the sources needed to be updated to build fine against python-3.7 in current, after that everything went smooth.
This is an exceprt from just above my previous error: (I can provide more if needed, I have the entire build logged)
Code:
/usr/include/qt5/QtCore/qobject.h:269:13: note:   template argument deduction/substitution failed:
/usr/include/qt5/QtCore/qobject.h: In substitution of ‘template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]’:
/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp:222:111:   required from here
/usr/include/qt5/QtCore/qobject.h:269:13: error: no type named ‘type’ in ‘struct std::enable_if<false, QMetaObject::Connection>’
/usr/include/qt5/QtCore/qobject.h:300:13: note: candidate: ‘template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)’
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
             ^~~~~~~
/usr/include/qt5/QtCore/qobject.h:300:13: note:   template argument deduction/substitution failed:
/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp:222:111: note:   candidate expects 3 arguments, 4 provided
             connect(pButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SLOT(sltHandleProxyToggle()));
                                                                                                               ^
In file included from /usr/include/qt5/QtGui/qvalidator.h:45,
                 from /usr/include/qt5/QtGui/QRegExpValidator:1,
                 from /tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp:23:
/usr/include/qt5/QtCore/qobject.h:308:13: note: candidate: ‘template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)’
             connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
             ^~~~~~~
/usr/include/qt5/QtCore/qobject.h:308:13: note:   template argument deduction/substitution failed:
/usr/include/qt5/QtCore/qobject.h: In substitution of ‘template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]’:
/tmp/SBo/VirtualBox-5.2.8/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp:222:111:   required from here
/usr/include/qt5/QtCore/qobject.h:308:13: error: no type named ‘Object’ in ‘struct QtPrivate::FunctionPointer<const char*>’
Looks like a qt5 error? I would note that I'm using alienbob's most-recent qt5 build for -current (5.12.1)

Last edited by av2zeal; 04-17-2019 at 03:36 PM.
 
Old 04-17-2019, 03:40 PM   #1804
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,784

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by av2zeal View Post
Looks like a qt5 error? I would note that I'm using alienbob's most-recent qt5 build for -current (5.12.1)
yep, that: the scripts in this repository are tested with qt5-5.9.6.
 
Old 04-18-2019, 03:57 PM   #1805
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 36

Rep: Reputation: 0
Quote:
Originally Posted by ponce View Post
yep, that: the scripts in this repository are tested with qt5-5.9.6.
Everything works. Thank you Ponce!
 
Old 04-20-2019, 02:38 PM   #1806
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,151

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Hi , i found the patch for libtorrent-rasterbar + boost-1.70

Im not test , but the patch , apply well to sources og 1.1 branch.

https://svnweb.freebsd.org/ports/hea...pathrev=499423


EDIT; I test the patch , libtorrent-rasterbar builds, and qbittorrent-qt5 rebuild is OK

Qbittorrent working again here.

Last edited by USUARIONUEVO; 04-20-2019 at 03:43 PM.
 
1 members found this post helpful.
Old 04-20-2019, 10:15 PM   #1807
Skaendo
Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 889

Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
Qbittorrent working again here.
qBittorrent working here again with this patch. Thanks!

PS,
I have libtorrent-rasterbar-1.2.0 and qBittorrent-qt5-4.2.0-alpha (2019.04.19) here if anyone wants to test them on -current.

Last edited by Skaendo; 04-20-2019 at 10:21 PM.
 
1 members found this post helpful.
Old 04-21-2019, 02:49 AM   #1808
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,784

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
Hi , i found the patch for libtorrent-rasterbar + boost-1.70

Im not test , but the patch , apply well to sources og 1.1 branch.

https://svnweb.freebsd.org/ports/hea...pathrev=499423


EDIT; I test the patch , libtorrent-rasterbar builds, and qbittorrent-qt5 rebuild is OK

Qbittorrent working again here.
thanks, pushed!
 
Old 04-21-2019, 08:43 AM   #1809
shelldweller
LQ Newbie
 
Registered: Mar 2019
Location: Albuquerque, NM, USA
Distribution: Freenix & Slarm64
Posts: 7

Rep: Reputation: Disabled
LibreOffice 6.2.3.2

I ran into a couple of things while trying to build LO 6.2.3.2 on two different instances of -current.

1) The boost-1.69 patch is no longer needed, as the shutdownicon.cxx file has been updated to work with the current version of boost. This patch is no longer present in the 14.2 LO SlackBuild, which builds successfully without it. Leaving it in results in:

Code:
patching file sfx2/source/appl/shutdownicon.cxx
Hunk #1 FAILED at 167.
1 out of 1 hunk FAILED -- saving rejects to file sfx2/source/appl/shutdownicon.cxx.rej
Commenting out the patch command in the SlackBuild allows the build to continue.



2) Now gawk seems to choke on libgpg-error though:

Code:
        
        libgpg-error v1.27 has been configured as follows:

        Revision: c1668f6  (49510)
        Platform: x86_64-pc-linux-gnu

Making all in m4
Making all in src
gawk: ./mkerrnos.awk:86: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: ./mkerrcodes1.awk:84: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: ./mkerrcodes.awk:88: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: fatal: cannot use gawk builtin `namespace' as variable name
make[4]: *** [Makefile:1324: errnos-sym.h] Error 2
make[3]: *** [Makefile:474: all-recursive] Error 1
make[2]: *** [Makefile:405: all] Error 2
make[1]: *** [/tmp/SBo/libreoffice-6.2.3.2/external/libgpg-error/ExternalProject_libgpg-error.mk:36: /tmp/SBo/libreoffice-6.2.3.2/workdir/ExternalProject/libgpg-error/build] Error 1
This one has me stumped.
 
Old 04-21-2019, 11:30 AM   #1810
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,784

Original Poster
Rep: Reputation: Disabled
thanks for reporting: I removed the patch for boost-1.69.0 and applied another (that was already available in current) related to the newer gawk for libgpgerror.

http://cgit.ponce.cc/slackbuilds/commit/?h=LibreOffice
 
Old 04-21-2019, 06:03 PM   #1811
shelldweller
LQ Newbie
 
Registered: Mar 2019
Location: Albuquerque, NM, USA
Distribution: Freenix & Slarm64
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
thanks for reporting: I removed the patch for boost-1.69.0 and applied another (that was already available in current) related to the newer gawk for libgpgerror.
Problem solved, builds fine now here. Thanks so much!
 
Old 04-22-2019, 07:07 AM   #1812
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 559

Rep: Reputation: 210Reputation: 210Reputation: 210
gst-plugins-bad:

Code:
make[3]: Entering directory '/tmp/SBo/gst-plugins-bad-1.16.0/sys/nvdec'
  CC       libgstnvdec_la-gstnvdec.lo
In file included from gstnvdec.c:32:
gstnvdec.h:33:10: fatal error: nvcuvid.h: No such file or directory
 #include "nvcuvid.h"
          ^~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:869: libgstnvdec_la-gstnvdec.lo] Error 1
make[3]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.16.0/sys/nvdec'
make[2]: *** [Makefile:1081: nvdec] Error 2
make[2]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.16.0/sys'
make[1]: *** [Makefile:944: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.16.0'
make: *** [Makefile:875: all] Error 2

gst-plugins-bad:
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.
Seems that gst-plugins-bad requires CUDA toolkit?
 
Old 04-22-2019, 08:25 AM   #1813
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.2 (5.1.10) UEFI enabled (LFS-8.4 when Slackware becomes too easy)
Posts: 535

Rep: Reputation: 193Reputation: 193
I have been experimentally running 64-current on a spare SSD with Aliens plasma5 setup for quite some time. Along with a few sbopkgs without issue. I'm now getting serious and will be building many more SBO Packages.
My question being would this be the proper place to report any issues with that setup or is this thread strictly for pure current installs?
Thanks in advance for any response.
John
 
Old 04-22-2019, 10:56 AM   #1814
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,012

Rep: Reputation: 3683Reputation: 3683Reputation: 3683Reputation: 3683Reputation: 3683Reputation: 3683Reputation: 3683Reputation: 3683Reputation: 3683Reputation: 3683Reputation: 3683
Quote:
Originally Posted by Bindestreck View Post
gst-plugins-bad:

Code:
make[3]: Entering directory '/tmp/SBo/gst-plugins-bad-1.16.0/sys/nvdec'
  CC       libgstnvdec_la-gstnvdec.lo
In file included from gstnvdec.c:32:
gstnvdec.h:33:10: fatal error: nvcuvid.h: No such file or directory
 #include "nvcuvid.h"
          ^~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:869: libgstnvdec_la-gstnvdec.lo] Error 1
make[3]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.16.0/sys/nvdec'
make[2]: *** [Makefile:1081: nvdec] Error 2
make[2]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.16.0/sys'
make[1]: *** [Makefile:944: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.16.0'
make: *** [Makefile:875: all] Error 2

gst-plugins-bad:
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.
Seems that gst-plugins-bad requires CUDA toolkit?
You should be able to disable nvdec and nvenc by adding --disable-nvdec and --disable-nvenc to the ./configure.

If this happens on a clean install of -current, it might be worth adding a check to the SlackBuild to check for nvdec and nvenc on the system and then adding the flags automatically to the configure options.
 
Old 04-22-2019, 11:31 AM   #1815
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,784

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
You should be able to disable nvdec and nvenc by adding --disable-nvdec and --disable-nvenc to the ./configure.

If this happens on a clean install of -current, it might be worth adding a check to the SlackBuild to check for nvdec and nvenc on the system and then adding the flags automatically to the configure options.
I think this happens on his system because he has already installed the nvidia drivers: most probably configure enables nvdec because it finds those but it doesn't seem to check for cuda toolkit too.
I haven't tested on 14.2 with version 1.6.0 but I think this new optional dependency (nvidia drivers) has been introduced with the newer versions: I'll add a note to the README.
 
1 members found this post helpful.
  


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: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration