LinuxQuestions.org
Review your favorite Linux distribution.
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-04-2018, 02:53 AM   #1546
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175

Quote:
Originally Posted by Bindestreck View Post
Problem to compile opencv 3.4.4. Similar to this issue: https://github.com/opencv/opencv/issues/13171
thanks for reporting: the fix will go in at the next global update

http://cgit.ponce.cc/slackbuilds/commit/?h=opencv
 
Old 12-05-2018, 03:13 PM   #1547
simotrone
LQ Newbie
 
Registered: Aug 2010
Location: Internet
Distribution: Debian, Slackware, and other...
Posts: 22

Rep: Reputation: 4
I have problem to compile academic/ds9 on my current.

The issue could be this.
Quote:
tls.c: In function ‘get_dh2048’:
tls.c:121:7: error: dereferencing pointer to incomplete type ‘DH’ {aka ‘struct dh_st’}
dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL);
^~
tls.c: At top level:
tls.c:171:24: error: ‘CRYPTO_NUM_LOCKS’ undeclared here (not in a function); did you mean ‘CRYPTO_UNLOCK’?
static Tcl_Mutex locks[CRYPTO_NUM_LOCKS];
I'm on a current distro, with blacklisted kernel modules at 4.14.67 .
 
Old 12-05-2018, 09:53 PM   #1548
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Xalan-c cannot download the source archive.

Additionally, the maintainer cannot be reached, because his email is registered with the same server, which should hold the archive, but the server is down.

The original domain name was `slaphappygeeks.com', which can be resolved, but the server doesn't work.
 
1 members found this post helpful.
Old 12-05-2018, 10:13 PM   #1549
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Quote:
Originally Posted by Lockywolf View Post
Xalan-c cannot download the source archive.

Additionally, the maintainer cannot be reached, because his email is registered with the same server, which should hold the archive, but the server is down.
My bad - I am (was) the maintainer and I have long been intending to get that moved or back online. Among my other todo's is to catch up with my few SBo scripts or pass them to someone currently more able to maintain them.

However, as I was self-hosting the snapshot at one time, I realised that it might disappear at some poiint, so I added a backup method to the Slackbuild script - look in the comments near the top.

There are instructions there that will allow you to grab and build a current snapshot from the apache project servers.

Code:
mkdir svn
cd svn
svn co http://svn.apache.org/repos/asf/xalan/c/trunk
You can then tar that up using the svn version number (or other name) and change the version in the Slackbuild script to use that copy instead.

If that doesn't work for you please send me a PM and I'll get you a copy of the archive mentioned in the script.
 
1 members found this post helpful.
Old 12-05-2018, 11:23 PM   #1550
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Quote:
Originally Posted by astrogeek View Post
My bad - I am (was) the maintainer and I have long been intending to get that moved or back online. Among my other todo's is to catch up with my few SBo scripts or pass them to someone currently more able to maintain them.

However, as I was self-hosting the snapshot at one time, I realised that it might disappear at some poiint, so I added a backup method to the Slackbuild script - look in the comments near the top.

There are instructions there that will allow you to grab and build a current snapshot from the apache project servers.

Code:
mkdir svn
cd svn
svn co http://svn.apache.org/repos/asf/xalan/c/trunk
You can then tar that up using the svn version number (or other name) and change the version in the Slackbuild script to use that copy instead.

If that doesn't work for you please send me a PM and I'll get you a copy of the archive mentioned in the script.

Thanks! Maybe I can try to write a script to automagically extract the commit and version number from the git repo .
 
Old 12-05-2018, 11:27 PM   #1551
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
OpenCV automatic dependency finder cannot build opencv with ATLAS.

The reason, perhaps, being the lapacke/clapack.

Indeed, I did manage to compile lapacke from academic/lapacke, and it indeed can pick up ATLAS as a systemwide LAPACK, but the resulting lapacke is not satisfactory for opencv to accept.

I suspect that lapacke should be build by the atlas builder itself, while building ATLAS, but I didn't find where to ask it politely enough.

(i.e. I haven't found a place where to give parameters with which ATLAS would build lapack)

Any suggestions welcome...
 
Old 12-06-2018, 03:12 AM   #1552
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by Lockywolf View Post
OpenCV automatic dependency finder cannot build opencv with ATLAS.

The reason, perhaps, being the lapacke/clapack.

Indeed, I did manage to compile lapacke from academic/lapacke, and it indeed can pick up ATLAS as a systemwide LAPACK, but the resulting lapacke is not satisfactory for opencv to accept.

I suspect that lapacke should be build by the atlas builder itself, while building ATLAS, but I didn't find where to ask it politely enough.

(i.e. I haven't found a place where to give parameters with which ATLAS would build lapack)

Any suggestions welcome...
Hi Lockywolf,

is this behaviour specific to current? if you can confirm it happens also on stable or if you are just not sure that it happens only on current (like explained in the first post of this topic), you might have a better help posting it to the slackbuilds-users mailing list

https://lists.slackbuilds.org/mailma...ckbuilds-users

Last edited by ponce; 12-06-2018 at 03:18 AM.
 
Old 12-06-2018, 03:16 AM   #1553
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by simotrone View Post
I have problem to compile academic/ds9 on my current.

The issue could be this.


I'm on a current distro, with blacklisted kernel modules at 4.14.67 .
hi simotrone,

I tested this and building against an older version of openssl looks mandatory: I fiddled with it a while but unfortunately I hadn't been able to find a way to do it correctly
try to get in touch with the maintainer, maybe he could help!
 
Old 12-06-2018, 06:14 PM   #1554
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 257

Rep: Reputation: 147Reputation: 147
inkscape 0.92.3 could not compiled, with the attached patch (modified from upstream patches), it could compile and run without problem.
Code:
diff -ur inkscape-0.92.3-org/src/extension/internal/pdfinput/pdf-parser.cpp inkscape-0.92.3-new/src/extension/internal/pdfinput/pdf-parser.cpp
--- inkscape-0.92.3-org/src/extension/internal/pdfinput/pdf-parser.cpp	2018-03-11 13:38:09.000000000 -0700
+++ inkscape-0.92.3-new/src/extension/internal/pdfinput/pdf-parser.cpp	2018-12-06 15:37:20.957862842 -0800
@@ -36,9 +36,9 @@
 #include "pdf-parser.h"
 #include "util/units.h"
 
+#include "glib/poppler-features.h"
 #include "goo/gmem.h"
-#include "goo/GooTimer.h"
-#include "goo/GooHash.h"
+#include "goo/GooString.h"
 #include "GlobalParams.h"
 #include "CharTypes.h"
 #include "Object.h"
@@ -2582,7 +2582,7 @@
   }
 }
 
-void PdfParser::doShowText(GooString *s) {
+void PdfParser::doShowText(const GooString *s) {
   GfxFont *font;
   int wMode;
   double riseX, riseY;
@@ -2595,7 +2595,7 @@
   Object charProc;
   Dict *resDict;
   Parser *oldParser;
-  char *p;
+  const char *p;
   int len, n, uLen;
 
   font = state->getFont();
@@ -2732,7 +2732,7 @@
 {
   Object obj1, obj2, obj3, refObj;
 
-  char *name = args[0].getName();
+  const char *name = args[0].getName();
 #if defined(POPPLER_NEW_OBJECT_API)
   if ((obj1 = res->lookupXObject(name)).isNull()) {
 #else
diff -ur inkscape-0.92.3-org/src/extension/internal/pdfinput/pdf-parser.h inkscape-0.92.3-new/src/extension/internal/pdfinput/pdf-parser.h
--- inkscape-0.92.3-org/src/extension/internal/pdfinput/pdf-parser.h	2018-03-11 13:38:09.000000000 -0700
+++ inkscape-0.92.3-new/src/extension/internal/pdfinput/pdf-parser.h	2018-12-06 15:23:16.188870899 -0800
@@ -25,6 +25,7 @@
 // TODO clean up and remove using:
 using Inkscape::Extension::Internal::SvgBuilder;
 
+#include "glib/poppler-features.h"
 #include "goo/gtypes.h"
 #include "Object.h"
 
@@ -287,7 +288,7 @@
   void opMoveShowText(Object args[], int numArgs);
   void opMoveSetShowText(Object args[], int numArgs);
   void opShowSpaceText(Object args[], int numArgs);
-  void doShowText(GooString *s);
+  void doShowText(const GooString *s);
 
   // XObject operators
   void opXObject(Object args[], int numArgs);
diff -ur inkscape-0.92.3-org/src/extension/internal/pdfinput/svg-builder.cpp inkscape-0.92.3-new/src/extension/internal/pdfinput/svg-builder.cpp
--- inkscape-0.92.3-org/src/extension/internal/pdfinput/svg-builder.cpp	2018-03-11 13:38:09.000000000 -0700
+++ inkscape-0.92.3-new/src/extension/internal/pdfinput/svg-builder.cpp	2018-12-06 15:43:31.596859308 -0800
@@ -1022,7 +1022,7 @@
     if (font->getName()) {
         _font_specification = font->getName()->getCString();
     } else {
-        _font_specification = (char*) "Arial";
+        _font_specification = "Arial";
     }
 
     // Prune the font name to get the correct font family name
@@ -1030,7 +1030,7 @@
     char *font_family = NULL;
     char *font_style = NULL;
     char *font_style_lowercase = NULL;
-    char *plus_sign = strstr(_font_specification, "+");
+    const char *plus_sign = strstr(_font_specification, "+");
     if (plus_sign) {
         font_family = g_strdup(plus_sign + 1);
         _font_specification = plus_sign + 1;
@@ -1361,7 +1361,7 @@
     _glyphs.clear();
 }
 
-void SvgBuilder::beginString(GfxState *state, GooString * /*s*/) {
+void SvgBuilder::beginString(GfxState *state, const GooString * /*s*/) {
     if (_need_font_update) {
         updateFont(state);
     }
diff -ur inkscape-0.92.3-org/src/extension/internal/pdfinput/svg-builder.h inkscape-0.92.3-new/src/extension/internal/pdfinput/svg-builder.h
--- inkscape-0.92.3-org/src/extension/internal/pdfinput/svg-builder.h	2018-03-11 13:38:09.000000000 -0700
+++ inkscape-0.92.3-new/src/extension/internal/pdfinput/svg-builder.h	2018-12-06 15:42:42.235859779 -0800
@@ -81,7 +81,7 @@
     bool style_changed;  // Set to true if style has to be reset
     SPCSSAttr *style;
     int render_mode;    // Text render mode
-    char *font_specification;   // Pointer to current font specification
+    const char *font_specification;   // Pointer to current font specification
 };
 
 /**
@@ -136,7 +136,7 @@
     void clearSoftMask(GfxState *state);
 
     // Text handling
-    void beginString(GfxState *state, GooString *s);
+    void beginString(GfxState *state, const GooString *s);
     void endString(GfxState *state);
     void addChar(GfxState *state, double x, double y,
                  double dx, double dy,
@@ -203,7 +203,7 @@
 
     SPCSSAttr *_font_style;          // Current font style
     GfxFont *_current_font;
-    char *_font_specification;
+    const char *_font_specification;
     double _font_scaling;
     bool _need_font_update;
     Geom::Affine _text_matrix;

Last edited by qunying; 12-06-2018 at 06:23 PM.
 
Old 12-07-2018, 01:36 AM   #1555
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
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-08-2018, 06:13 AM   #1556
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
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...
 
Old 12-08-2018, 10:32 AM   #1557
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
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...
I'm not sure what's happening there but I just tried to build them here (opencolorio and openimageio) on slackware64-current and I can confirm you that they both build fine.
sorry if I ask, have you read the first post of this topic?

Last edited by ponce; 12-08-2018 at 10:38 AM.
 
Old 12-09-2018, 03:57 AM   #1558
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Hmm, not sure if I should email maintainers, or just post it here...

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.

I also managed to fight the opencv dependency resolution failure.

Again, the patch by no means guarantees that opencv built like this will work correctly, but on my machine it managed to get compiled.

So:

1)In the lapack-atlas, I replaced the address of lapack-3.6.1 with the one of the latest lapack 3.8.0, and reinstalled the package.

Code:
DOWNLOAD="http://www.netlib.org/lapack/lapack-3.8.0.tar.gz"
MD5SUM="96591affdbf58c450d45c1daa540dbd2"
2)I rebooted with the speedstep turned off in BIOS, and pstate modules unloaded, to init 3.
In /boot/efi/EFI/Slackware/elilo that is:
Code:
image=vmlinuz
	label=vmlinuzNoPstateDANGER
	read-only
	append="root=/dev/sda3 vga=normal ro 3 intel_pstate=disable"
3)I reinstalled ATLAS, which now had the latest lapack 3.8.0.

4)I reinstalled lapacke, which also is 3.8.0

5)I patched the opencv dependency resolution system.
That is, I added the following lines to the SlackBuild after the line 94:

Code:
sed -i '54 a set(LAPACK_LIBRARIES "${LAPACK_LIBRRARIES};/usr/lib64/liblapack.a;/usr/lib64/libptcblas.a;/usr/lib64/libf77blas.a;/usr/lib64/libatlas.a;/usr/lib64/libgfortran.a;/usr/lib64/libquadmath.a")' ../cmake/OpenCVFindLAPACK.cmake
And reinstalled opencv. (OpenCV's resolution system is poor, also, it downloads caffe models even if no caffe is installed, but I have cheap traffic, so I didn't care.)

Hope that helps, if anyone needs it.
 
Old 12-09-2018, 09:51 AM   #1559
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Lockywolf if this about Blender, the binary version they provide works great if you plan to use CUDA. NVIDIA's CUDA developers only support Red Hat, SUSE, and Ubuntu so you are stuck with whatever gcc they use. The binary provides working CUDA.

If I remember correctly opencolorio won't build if openimageio is installed.
 
Old 12-09-2018, 10:04 AM   #1560
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Opencolorio and openimageio have a mutual dependence, which is a bit of a pain, but luckily, the depth of the recursion it's only about 2, so it's possible to build one of them without the other, then the second, then the first again, thus enabling the recursion, and then the second again.
 
  


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 07:20 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