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 12-09-2018, 03:55 PM   #1561
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619

Quote:
Originally Posted by Lockywolf View Post
I don't seem to be able to compile opencolorio and openimageio. (My final aim being Blender.)

I tried checking out the latest versions from git, but those also don't seem to make it, even though the errors are different.

Any suggestions would be greatly welcome...
Please be aware that the release version of Blender will not compile with the latest openimageio. The latest usable version is openimageio-1.8.16.

chris
 
Old 12-09-2018, 03:56 PM   #1562
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
gst-plugins-bad 1.6.2 doesn't like libfdk-aac 2.0.0
Code:
make[3]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.14.4/ext/gl'
make -C fdkaac
make[3]: Entering directory '/tmp/SBo/gst-plugins-bad-1.14.4/ext/fdkaac'
  CC       libgstfdkaac_la-plugin.lo
  CC       libgstfdkaac_la-gstfdkaacenc.lo
gstfdkaacenc.c:74:8: error: ‘MODE_2_1’ undeclared here (not in a function); did you mean ‘MODE_6_1’?
     3, MODE_2_1, {
        ^~~~~~~~
        MODE_6_1
make[3]: *** [Makefile:874: libgstfdkaac_la-gstfdkaacenc.lo] Error 1
make[3]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.14.4/ext/fdkaac'
make[2]: *** [Makefile:1315: fdkaac] Error 2
make[2]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.14.4/ext'
make[1]: *** [Makefile:951: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.14.4'
make: *** [Makefile:882: all] Error 2
It looks like the master has a fix:
https://gitlab.freedesktop.org/gstre...58470f0c829cab
 
Old 12-09-2018, 05:10 PM   #1563
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 257

Rep: Reputation: 147Reputation: 147
Sorry, my repository is not working properly due to not sync up yet. But the patch you used (poppler-0.64.patch), which will cause memory leak due to used of g_strdup(). The upstream has another fix.

Quote:
Originally Posted by ponce View Post
hy qunying, I just tested and inkscape from the repository seems to build fine here on slackware64-current...
note that I already apply two patches for the newer poppler

http://cgit.ponce.cc/slackbuilds/commit/?h=inkscape
 
Old 12-09-2018, 09:01 PM   #1564
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Quote:
Originally Posted by chris.willing View Post
Please be aware that the release version of Blender will not compile with the latest openimageio. The latest usable version is openimageio-1.8.16.

chris

Well, the repository has 1.8.12, which I'm fine with.

I actually, funnily, managed to compile Blender like this, but not link (!).

This is my buildscript patch.

Code:
diff --git a/graphics/Blender/Blender.SlackBuild b/graphics/Blender/Blender.SlackBuild
index 9e545177ad..b43e6b6507 100644
--- a/graphics/Blender/Blender.SlackBuild
+++ b/graphics/Blender/Blender.SlackBuild
@@ -77,9 +77,12 @@ patch -p1 < $CWD/use-libopenmj2-for-openjpeg.diff
 
 mkdir -p build
 cd build
+  sed -i 's/typedef std::map<std::string,TreeElement, std::less<std::string>, Eigen::aligned_allocator<std::pair<std::string, TreeElement> > > SegmentMap;/typedef std::map<std::string,TreeElement, std::less<std::string>, Eigen::aligned_allocator<std::pair<const std::string, TreeElement> > > SegmentMap;/g' ../intern/itasc/kdl/tree.hpp
+  sed -i 's/return _mm_shuffle_epi32(a, _MM_SHUFFLE(i3, i2, i1, i0));/return sseb(_mm_shuffle_epi32(a, _MM_SHUFFLE(i3, i2, i1, i0)));/' ../intern/cycles/util/util_sseb.h
+  
   cmake ../ \
     -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-class-memaccess" \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DWITH_CXX11=ON \
     -DWITH_INSTALL_PORTABLE:BOOL=OFF \
@@ -95,6 +98,7 @@ cd build
     -DWITH_JACK_DYNLOAD:BOOL=ON \
     -DPYTHON_LIBPATH:PATH=/usr/lib${LIBDIRSUFFIX} \
     -DWITH_CODEC_SNDFILE:BOOL=ON \
+    -DCMAKE_VERBOSE_MAKEFILE=ON \
     -DWITH_FFTW3:BOOL=ON \
     -DWITH_GAMEENGINE:BOOL=ON \
     -DWITH_PLAYER:BOOL=ON \
@@ -106,9 +110,16 @@ cd build
     -DWITH_MOD_OCEANSIM:BOOL=ON \
     -DWITH_SDL:BOOL=ON \
     -DWITH_SDL_DYNLOAD:BOOL=ON \
+    -DOpenGL_GL_PREFERENCE=GLVND \
+    -DWITH_ALEMBIC=ON \
+    -DWITH_ALEMBIC_HDF5=ON \
+    -DWITH_C11=ON \
+    -DWITH_IMAGE_OPENEXR=ON \
+    -DWITH_LLVM=ON \
+    -DWITH_OPENGL_TESTS=ON \
     -DCMAKE_BUILD_TYPE=Release \
 
-  make
+  make 
   make install DESTDIR=$PKG
 cd ..
This is the error:

Code:
[100%] Linking CXX executable ../../bin/blender
cd /tmp/SBo/blender-2.79b/build/source/creator && /usr/bin/cmake -E cmake_link_script CMakeFiles/blender.dir/link.txt --verbose=1
/usr/bin/c++   -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Werror=implicit-function-declaration -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wuninitialized -Wundef -Wmissing-declarations -Wimplicit-fallthrough=5 -O2 -fPIC -Wno-class-memaccess -fuse-ld=gold -fopenmp -std=c++11   -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -msse2 -O2 -DNDEBUG    -Wl,--version-script='/tmp/SBo/blender-2.79b/source/creator/blender.map' -rdynamic CMakeFiles/blender.dir/creator.c.o CMakeFiles/blender.dir/creator_args.c.o CMakeFiles/blender.dir/creator_signals.c.o CMakeFiles/blender.dir/buildinfo.c.o  -o ../../bin/blender -Wl,-rpath,/usr/lib64/opencollada: ../../lib/libbf_windowmanager.a ../../lib/libbf_editor_space_api.a ../../lib/libbf_editor_space_action.a ../../lib/libbf_editor_space_buttons.a ../../lib/libbf_editor_space_console.a ../../lib/libbf_editor_space_file.a ../../lib/libbf_editor_space_graph.a ../../lib/libbf_editor_space_image.a ../../lib/libbf_editor_space_info.a ../../lib/libbf_editor_space_logic.a ../../lib/libbf_editor_space_nla.a ../../lib/libbf_editor_space_node.a ../../lib/libbf_editor_space_outliner.a ../../lib/libbf_editor_space_script.a ../../lib/libbf_editor_space_sequencer.a ../../lib/libbf_editor_space_text.a ../../lib/libbf_editor_space_time.a ../../lib/libbf_editor_space_userpref.a ../../lib/libbf_editor_space_view3d.a ../../lib/libbf_editor_space_clip.a ../../lib/libbf_editor_transform.a ../../lib/libbf_editor_util.a ../../lib/libbf_editor_uvedit.a ../../lib/libbf_editor_curve.a ../../lib/libbf_editor_gpencil.a ../../lib/libbf_editor_interface.a ../../lib/libbf_editor_mesh.a ../../lib/libbf_editor_metaball.a ../../lib/libbf_editor_object.a ../../lib/libbf_editor_armature.a ../../lib/libbf_editor_physics.a ../../lib/libbf_editor_render.a ../../lib/libbf_editor_screen.a ../../lib/libbf_editor_sculpt_paint.a ../../lib/libbf_editor_sound.a ../../lib/libbf_editor_animation.a ../../lib/libbf_editor_datafiles.a ../../lib/libbf_editor_mask.a ../../lib/libbf_editor_io.a ../../lib/libbf_render.a ../../lib/libbf_python.a ../../lib/libbf_python_ext.a ../../lib/libbf_python_mathutils.a ../../lib/libbf_python_bmesh.a ../../lib/libbf_freestyle.a ../../lib/libbf_ikplugin.a ../../lib/libbf_modifiers.a ../../lib/libbf_bmesh.a ../../lib/libbf_gpu.a ../../lib/libbf_blenloader.a ../../lib/libbf_compositor.a ../../lib/libbf_blenkernel.a ../../lib/libbf_intern_rigidbody.a ../../lib/libbf_physics.a ../../lib/libbf_nodes.a ../../lib/libbf_rna.a ../../lib/libbf_imbuf.a ../../lib/libbf_blenlib.a ../../lib/libbf_depsgraph.a ../../lib/libbf_intern_ghost.a ../../lib/libbf_intern_string.a ../../lib/libbf_avi.a ../../lib/libbf_imbuf_cineon.a ../../lib/libbf_imbuf_openexr.a ../../lib/libbf_imbuf_openimageio.a ../../lib/libbf_imbuf_dds.a ../../lib/libbf_collada.a ../../lib/libbf_intern_elbeem.a ../../lib/libbf_intern_iksolver.a ../../lib/libbf_intern_memutil.a ../../lib/libbf_intern_guardedalloc.a ../../lib/libge_blen_routines.a ../../lib/libge_converter.a ../../lib/libge_phys_dummy.a ../../lib/libge_phys_bullet.a ../../lib/libbf_intern_smoke.a ../../lib/libextern_lzma.a ../../lib/libextern_curve_fit_nd.a ../../lib/libge_logic_ketsji.a ../../lib/libextern_recastnavigation.a ../../lib/libge_logic.a ../../lib/libge_rasterizer.a ../../lib/libge_oglrasterizer.a ../../lib/libge_logic_expressions.a ../../lib/libge_scenegraph.a ../../lib/libge_logic_network.a ../../lib/libge_logic_ngnetwork.a ../../lib/libextern_bullet.a ../../lib/libge_logic_loopbacknetwork.a ../../lib/libbf_intern_moto.a ../../lib/libge_videotex.a ../../lib/libbf_dna.a ../../lib/libbf_blenfont.a ../../lib/libbf_blentranslation.a ../../lib/libbf_intern_audaspace.a ../../lib/libbf_intern_mikktspace.a ../../lib/libbf_intern_dualcon.a ../../lib/libbf_intern_cycles.a ../../lib/libcycles_render.a ../../lib/libcycles_graph.a ../../lib/libcycles_bvh.a ../../lib/libcycles_device.a ../../lib/libcycles_kernel.a ../../lib/libcycles_util.a ../../lib/libcycles_subd.a ../../lib/libbf_intern_opencolorio.a ../../lib/libbf_intern_eigen.a ../../lib/libextern_rangetree.a ../../lib/libextern_wcwidth.a ../../lib/libbf_intern_libmv.a ../../lib/libextern_sdlew.a ../../lib/libbf_intern_glew_mx.a ../../lib/libextern_glog.a ../../lib/libextern_gflags.a ../../lib/libextern_ceres.a ../../lib/libextern_binreloc.a ../../lib/libbf_intern_itasc.a ../../lib/libextern_carve.a ../../lib/libextern_xdnd.a ../../lib/libbf_intern_locale.a ../../lib/libbf_intern_decklink.a -lpng -lz -lfreetype -Xlinker -export-dynamic -lpython3.6m -llzo2 -lGLEW -lopenal -lfftw3 -lsndfile -ltiff -lOpenImageIO -lpng -lz -ljpeg -lz -lboost_filesystem -lboost_regex -lboost_thread -lpthread -lboost_date_time -lboost_locale -lboost_system -lboost_chrono -lboost_atomic -ltiff -lHalf -lIex -lIlmImf -lIlmThread -lImath -lOpenColorIO -lboost_filesystem -lboost_regex -lboost_thread -lpthread -lboost_date_time -lboost_locale -lboost_system -lboost_chrono -lboost_atomic -ljpeg -lHalf -lIex -lIlmImf -lIlmThread -lImath -lopenmj2 -lavformat -lavcodec -lavutil -lavdevice -lswscale /usr/lib64/opencollada/libOpenCOLLADAStreamWriter.so /usr/lib64/opencollada/libOpenCOLLADASaxFrameworkLoader.so /usr/lib64/opencollada/libOpenCOLLADAFramework.so /usr/lib64/opencollada/libOpenCOLLADABaseUtils.so /usr/lib64/opencollada/libGeneratedSaxParser.so /usr/lib64/opencollada/libMathMLSolver.so /usr/lib64/opencollada/libbuffer.so /usr/lib64/opencollada/libftoa.so /usr/lib64/opencollada/libUTF.so -lpcre -lxml2 -ljemalloc -lLLVM-7.0.0 ../../lib/libextern_clew.a ../../lib/libextern_cuew.a -lz -lGLU -lX11 -lXi -lXxf86vm -lXfixes -lXrender -lutil -lc -lm -lpthread -ldl -lpng -lz -lfreetype -lpython3.6m -llzo2 -lGLEW -lopenal -lfftw3 -lsndfile -ltiff -lOpenImageIO -ljpeg -lboost_filesystem -lboost_regex -lboost_thread -lboost_date_time -lboost_locale -lboost_system -lboost_chrono -lboost_atomic -lHalf -lIex -lIlmImf -lIlmThread -lImath -lOpenColorIO -lopenmj2 -lavformat -lavcodec -lavutil -lavdevice -lswscale /usr/lib64/opencollada/libOpenCOLLADAStreamWriter.so /usr/lib64/opencollada/libOpenCOLLADASaxFrameworkLoader.so /usr/lib64/opencollada/libOpenCOLLADAFramework.so /usr/lib64/opencollada/libOpenCOLLADABaseUtils.so /usr/lib64/opencollada/libGeneratedSaxParser.so /usr/lib64/opencollada/libMathMLSolver.so /usr/lib64/opencollada/libbuffer.so /usr/lib64/opencollada/libftoa.so /usr/lib64/opencollada/libUTF.so -lpcre -lxml2 -ljemalloc -lLLVM-7.0.0 -lGLU -lX11 -lXi -lXxf86vm -lXfixes -lXrender -lutil -lc -lm -ldl 
../../lib/libbf_windowmanager.a(wm_playanim.c.o):wm_playanim.c:function playanim_gl_matrix: error: undefined reference to 'glMatrixMode'
../../lib/libbf_windowmanager.a(wm_playanim.c.o):wm_playanim.c:function playanim_gl_matrix: error: undefined reference to 'glLoadIdentity'
<... snip ...>
../../lib/libbf_blenfont.a(blf_glyph.c.o):blf_glyph.c:function blf_glyph_render: error: undefined reference to 'glPushClientAttrib'
../../lib/libbf_blenfont.a(blf_glyph.c.o):blf_glyph.c:function blf_glyph_render: error: undefined reference to 'glPopClientAttrib'
collect2: error: ld returned 1 exit status
make[2]: *** [source/creator/CMakeFiles/blender.dir/build.make:366: bin/blender] Error 1
make[2]: Leaving directory '/tmp/SBo/blender-2.79b/build'
make[1]: *** [CMakeFiles/Makefile2:8045: source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: Leaving directory '/tmp/SBo/blender-2.79b/build'
make: *** [Makefile:166: all] Error 2
Why it can't find openGL's functions, I've got not clue, and also, lots of Slackware libraries miss symbols (why on Earth?), so I can't even debug this.
 
Old 12-10-2018, 12:13 AM   #1565
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Okay, I overcame Blender.

So, firstly the patch to the current SlackBuild:

Code:
diff --git a/graphics/Blender/Blender.SlackBuild b/graphics/Blender/Blender.SlackBuild
index 9e545177ad..6bcfa05afc 100644
--- a/graphics/Blender/Blender.SlackBuild
+++ b/graphics/Blender/Blender.SlackBuild
@@ -77,9 +77,12 @@ patch -p1 < $CWD/use-libopenmj2-for-openjpeg.diff
 
 mkdir -p build
 cd build
+  sed -i 's/typedef std::map<std::string,TreeElement, std::less<std::string>, Eigen::aligned_allocator<std::pair<std::string, TreeElement> > > SegmentMap;/typedef std::map<std::string,TreeElement, std::less<std::string>, Eigen::aligned_allocator<std::pair<const std::string, TreeElement> > > SegmentMap;/g' ../intern/itasc/kdl/tree.hpp
+  sed -i 's/return _mm_shuffle_epi32(a, _MM_SHUFFLE(i3, i2, i1, i0));/return sseb(_mm_shuffle_epi32(a, _MM_SHUFFLE(i3, i2, i1, i0)));/' ../intern/cycles/util/util_sseb.h
+  
   cmake ../ \
     -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-class-memaccess -lGL" \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DWITH_CXX11=ON \
     -DWITH_INSTALL_PORTABLE:BOOL=OFF \
@@ -95,6 +98,7 @@ cd build
     -DWITH_JACK_DYNLOAD:BOOL=ON \
     -DPYTHON_LIBPATH:PATH=/usr/lib${LIBDIRSUFFIX} \
     -DWITH_CODEC_SNDFILE:BOOL=ON \
+    -DCMAKE_VERBOSE_MAKEFILE=ON \
     -DWITH_FFTW3:BOOL=ON \
     -DWITH_GAMEENGINE:BOOL=ON \
     -DWITH_PLAYER:BOOL=ON \
@@ -106,9 +110,17 @@ cd build
     -DWITH_MOD_OCEANSIM:BOOL=ON \
     -DWITH_SDL:BOOL=ON \
     -DWITH_SDL_DYNLOAD:BOOL=ON \
+    -DOpenGL_GL_PREFERENCE=GLVND \
+    -DOPENGL_LG_PREFERENCE=GLVND \
+    -DWITH_ALEMBIC=ON \
+    -DWITH_ALEMBIC_HDF5=ON \
+    -DWITH_C11=ON \
+    -DWITH_IMAGE_OPENEXR=ON \
+    -DWITH_LLVM=ON \
+    -DWITH_OPENGL_TESTS=ON \
     -DCMAKE_BUILD_TYPE=Release \
 
-  make
+  make 
   make install DESTDIR=$PKG
 cd ..
I by no means guarantee that this patch produces a correct binary, or that it is good as code itself. But it did make Blender build on my machine.

The sequence of steps was:
  1. Patched lapack-atlas
  2. Atlas
  3. numpy
  4. Patched opencolorio
  5. Patched openimageio
  6. Patched Blender

Each step required dependencies, but most of those were easy.

I didn't care to resolve the recurrent dependency between opencolorio and openimageio, but hey .
If someone needs this, good for them .

Dirty sed patches should probably have been done by a patchfile, but I didn't want to include additional files.

Why it didn't catch the actual -lGL, for goodness sake, I don't know.
 
Old 12-10-2018, 04:55 AM   #1566
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
CUDA needs the following patch to compile:

Code:
diff --git a/development/cudatoolkit/cudatoolkit.SlackBuild b/development/cudatoolkit/cudatoolkit.SlackBuild
index d70047400b..80c5080b96 100644
--- a/development/cudatoolkit/cudatoolkit.SlackBuild
+++ b/development/cudatoolkit/cudatoolkit.SlackBuild
@@ -55,6 +55,7 @@ cd $TMP
 rm -rf $PRGNAM-$VERSION
 mkdir -p $PRGNAM-$VERSION
 
+export PERL5LIB=.
 chmod +x $CWD/$FILENAME\_$VERSION\_375.26\_linux-run
 $CWD/$FILENAME\_$VERSION\_375.26\_linux-run -extract=$TMP
 $TMP/$FILENAME-linux64*-$VERSION-*.run -noprompt -nosymlink -prefix=$TMP/$PRGNAM-$VERSION
 
Old 12-10-2018, 07:37 AM   #1567
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,108

Original Poster
Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
Quote:
Originally Posted by RadicalDreamer View Post
gst-plugins-bad 1.6.2 doesn't like libfdk-aac 2.0.0
Code:
make[3]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.14.4/ext/gl'
make -C fdkaac
make[3]: Entering directory '/tmp/SBo/gst-plugins-bad-1.14.4/ext/fdkaac'
  CC       libgstfdkaac_la-plugin.lo
  CC       libgstfdkaac_la-gstfdkaacenc.lo
gstfdkaacenc.c:74:8: error: ‘MODE_2_1’ undeclared here (not in a function); did you mean ‘MODE_6_1’?
     3, MODE_2_1, {
        ^~~~~~~~
        MODE_6_1
make[3]: *** [Makefile:874: libgstfdkaac_la-gstfdkaacenc.lo] Error 1
make[3]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.14.4/ext/fdkaac'
make[2]: *** [Makefile:1315: fdkaac] Error 2
make[2]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.14.4/ext'
make[1]: *** [Makefile:951: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/gst-plugins-bad-1.14.4'
make: *** [Makefile:882: all] Error 2
It looks like the master has a fix:
https://gitlab.freedesktop.org/gstre...58470f0c829cab
Hi RadicalDreamer, thanks for the report: I pushed the two interested patches in a dedicated branch and they will go in the main current one at the next merge.
 
1 members found this post helpful.
Old 12-10-2018, 07:56 AM   #1568
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,108

Original Poster
Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
Quote:
Originally Posted by Lockywolf View Post
Hmm, not sure if I should email maintainers, or just post it here...
I'll paste here what's written in the first post, trying to clarify
Quote:
Originally Posted by ponce View Post
so, what is this thread for?
risking to be repetitive, report issues here only if you have already tried the scripts from our repository and they won't build on a clean and full installation of Slackware current.

also, if you want to report a problem that applies also to Slackware stable this is not the right place, this topic is current-specific.
if you think a script on SBo shows issues (broken download, not building, etc.) on such platform write to the maintainer and wait some days for an answer (a week should be fine): if the maintainer isn't responsive after this time please post the same thing by mail to the slackbuilds-users mailing list putting the maintainer in cc

http://lists.slackbuilds.org/mailman...ckbuilds-users
so, if you spot a problem you should verify that it's not present also trying to build the same script on Slackware stable: only if you are sure that it doesn't apply to that Slackware version too you should post here.

Quote:
After the recent kernel 4.19.7, nvidia-driver we have in the repo broke.

I thought that updating the driver will be more of a hassle, since it consists of several packages, and moreover, before updating nvidia-driver, one must not forget to run nvidia-switch (which I do all the time).

So I patched the old nvidia-kernel SlackBuild 390.59 myself and relaxed.

If someone needs the patch, I just added the following lines to the SlackBuild, after the line 74:

Code:
sed -i s/drm_mode_connector_update_edid_property/drm_connector_update_edid_property/g kernel/nvidia-drm/nvidia-drm-connector.c
sed -i s/DRM_CONTROL_ALLOW/00000/g kernel/nvidia-drm/nvidia-drm-drv.c
sed -i s/drm_mode_connector_attach_encoder/drm_connector_attach_encoder/g kernel/nvidia-drm/nvidia-drm-encoder.c
These functions were renamed in the recent kernel.
maybe you are not using the latest version of the repository indicated in the first post, because this thing has been fixed for the nvidia-legacy390-kernel script (the one that applies to the nvidia driver 390.x series) one month ago

http://cgit.ponce.cc/slackbuilds/com...gacy390-kernel

I'm not sure what's happening there with opencv and Blender, but they seem to build just fine here on slackware64-current.

Quote:
Originally Posted by Lockywolf View Post
CUDA needs the following patch to compile:

Code:
diff --git a/development/cudatoolkit/cudatoolkit.SlackBuild b/development/cudatoolkit/cudatoolkit.SlackBuild
index d70047400b..80c5080b96 100644
--- a/development/cudatoolkit/cudatoolkit.SlackBuild
+++ b/development/cudatoolkit/cudatoolkit.SlackBuild
@@ -55,6 +55,7 @@ cd $TMP
 rm -rf $PRGNAM-$VERSION
 mkdir -p $PRGNAM-$VERSION
 
+export PERL5LIB=.
 chmod +x $CWD/$FILENAME\_$VERSION\_375.26\_linux-run
 $CWD/$FILENAME\_$VERSION\_375.26\_linux-run -extract=$TMP
 $TMP/$FILENAME-linux64*-$VERSION-*.run -noprompt -nosymlink -prefix=$TMP/$PRGNAM-$VERSION
this has been reported quite a few times and happens because of a perl upgrade of quite some time ago in which the perl devs decided that the current directory should not be included anymore in the per @INC path for security reasons: IMHO the upstream projects (that are quite a lot) should patch their respective scripts to comply, and in the meantime, to override the behaviour, you can pass as needed the additional parameter PERL_USE_UNSAFE_INC=1 to the build script without the need to edit it, like
Code:
PERL_USE_UNSAFE_INC=1 ./cudatoolkit.SlackBuild
that's the reason why I won't modify any script using perl that needs this deprecated feature.

Last edited by ponce; 12-10-2018 at 07:57 AM.
 
Old 12-10-2018, 02:56 PM   #1569
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,108

Original Poster
Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
Quote:
Originally Posted by qunying View Post
Sorry, my repository is not working properly due to not sync up yet. But the patch you used (poppler-0.64.patch), which will cause memory leak due to used of g_strdup(). The upstream has another fix.
thanks for the clarification qunying!
I decided to apply all the fixes in the pending 0.92.x branch, hoping that the inkscape devs release a new 0.92.4 soon.
 
Old 12-15-2018, 08:51 AM   #1570
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32 / 64
Posts: 406

Rep: Reputation: 30
Netsurf breaks while trying to compile

Code:
chmod: cannot operate on dangling symlink './netsurf/frontends/gtk/res/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/monkey/res/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/en/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/nl/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/it/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/fr/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/de/Messages'
sed: can't read */*/Makefile.target: No such file or directory
bash-4.4#
 
Old 12-15-2018, 09:16 AM   #1571
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,108

Original Poster
Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
Quote:
Originally Posted by brodo View Post
Code:
chmod: cannot operate on dangling symlink './netsurf/frontends/gtk/res/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/monkey/res/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/en/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/nl/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/it/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/fr/Messages'
chmod: cannot operate on dangling symlink './netsurf/frontends/riscos/appdir/Resources/de/Messages'
sed: can't read */*/Makefile.target: No such file or directory
bash-4.4#
I'm not sure what's happening there, but here it seems to pass that step of the SlackBuild (also the output looks a bit different)
Code:
netsurf-all-3.3/nsgenbind/test/data/idl/eventtarget.idl                                                                                                                    
netsurf-all-3.3/nsgenbind/test/data/idl/html.idl                                                                                                                           
netsurf-all-3.3/nsgenbind/test/data/idl/htmldocument.idl                                                                                                                   
netsurf-all-3.3/nsgenbind/test/data/idl/node.idl                                                                                                                           
netsurf-all-3.3/nsgenbind/test/data/idl/window.idl                                                                                                                         
netsurf-all-3.3/nsgenbind/test/testrunner.sh                                                                                                                               
chmod: cannot operate on dangling symlink './netsurf/framebuffer/res/Messages'                                                                                             
chmod: cannot operate on dangling symlink './netsurf/cocoa/res/en.lproj/Messages'                                                                                          
chmod: cannot operate on dangling symlink './netsurf/cocoa/res/de.lproj/Messages'                                                                                          
chmod: cannot operate on dangling symlink './netsurf/cocoa/res/nl.lproj/Messages'                                                                                          
chmod: cannot operate on dangling symlink './netsurf/cocoa/res/it.lproj/Messages'                                                                                          
chmod: cannot operate on dangling symlink './netsurf/cocoa/res/fr.lproj/Messages'                                                                                          
chmod: cannot operate on dangling symlink './netsurf/beos/res/messages'                                                                                                    
chmod: cannot operate on dangling symlink './netsurf/gtk/res/nl/Messages'                                                                                                  
chmod: cannot operate on dangling symlink './netsurf/gtk/res/en/Messages'                                                                                                  
chmod: cannot operate on dangling symlink './netsurf/gtk/res/it/Messages'                                                                                                  
chmod: cannot operate on dangling symlink './netsurf/gtk/res/fr/Messages'                                                                                                  
chmod: cannot operate on dangling symlink './netsurf/gtk/res/Messages'                                                                                                     
chmod: cannot operate on dangling symlink './netsurf/gtk/res/de/Messages'                                                                                                  
chmod: cannot operate on dangling symlink './netsurf/amiga/resources/fr'
chmod: cannot operate on dangling symlink './netsurf/monkey/res/nl/Messages'                                                                                               
chmod: cannot operate on dangling symlink './netsurf/monkey/res/en/Messages'
chmod: cannot operate on dangling symlink './netsurf/monkey/res/it/Messages'
chmod: cannot operate on dangling symlink './netsurf/monkey/res/fr/Messages'
chmod: cannot operate on dangling symlink './netsurf/monkey/res/Messages'
chmod: cannot operate on dangling symlink './netsurf/monkey/res/de/Messages'
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/netsurf/gtk/Makefile.target      2015-03-21 20:50:22.018730471 +0300
|+++ b/netsurf/gtk/Makefile.target      2015-03-22 11:38:07.809544850 +0300
--------------------------
patching file netsurf/gtk/Makefile.target
Using Plan A...
Hunk #1 succeeded at 34.
done
mkdir -p /tmp/SBo/netsurf-all-3.3/inst-gtk/include
mkdir -p /tmp/SBo/netsurf-all-3.3/inst-gtk/lib
mkdir -p /tmp/SBo/netsurf-all-3.3/inst-gtk/bin
are you using the netsurf.SlackBuild on SBo (it's not modified in the unofficial repository for current)?

Last edited by ponce; 12-15-2018 at 09:18 AM.
 
Old 12-15-2018, 09:37 AM   #1572
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32 / 64
Posts: 406

Rep: Reputation: 30
I used netsurf-3.8, not the 3.3 found in SBo.
 
Old 12-15-2018, 09:42 AM   #1573
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,108

Original Poster
Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
if you want to try 3.8, use this SlackBuild

http://ponce.cc/slackware/testing/netsurf/
 
Old 12-15-2018, 10:02 AM   #1574
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current 32 / 64
Posts: 406

Rep: Reputation: 30
Quote:
Originally Posted by ponce View Post
if you want to try 3.8, use this SlackBuild

http://ponce.cc/slackware/testing/netsurf/
Now it compiles well.
Just one minor quirk - invoking it via XFCE menu points it to a non-existent name.
Running from CLI in terminal works well.
Thanks !
 
Old 12-16-2018, 06:53 AM   #1575
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
So, opencv 4.0.0 broken again. Similar to this issue: https://github.com/opencv/opencv_contrib/issues/1914
 
  


Reply

Tags
current, sbo, sbopkg, slackrepo



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:21 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