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-15-2019, 02:02 PM   #1786
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by luvr View Post
development/gcc5—Patch to fix the build under Slackware-current.
  • Fix build with glibc 2.28, which lacks header file <sys/ustat.h>;
  • Cosmetic issues:
    • Fix the TAG value, to ensure it starts with an underscore (‘_’);
    • Insert a missing hash sign (‘#’) on a comment line, to keep the system from attempting to run a nonexistent ‘only’ command.
Code:
diff --git a/development/gcc5/gcc5.SlackBuild b/development/gcc5/gcc5.SlackBuild
index 7054b3184f..f9a03116c5 100644
--- a/development/gcc5/gcc5.SlackBuild
+++ b/development/gcc5/gcc5.SlackBuild
@@ -57,7 +57,7 @@ PRGNAM=gcc5
 VERSION=${VERSION:-5.5.0}
 MAJVER=$(echo ${VERSION} |cut -d. -f1)
 BUILD=${BUILD:-1}
-TAG=${TAG:-SBo}
+TAG=${TAG:-_SBo}
 
 # Automatically determine the architecture we're building on:
 if [ -z "$ARCH" ]; then
@@ -195,6 +195,9 @@ ANTLJAR=$(echo $CWD/antlr-*.jar | tail -1)
   cat $CWD/patches/0009-x86-Disallow-mindirect-branch-mfunction-return-with-.diff | patch -p2 --verbose || exit 1
   cat $CWD/patches/0009-x86-Disallow-mindirect-branch-mfunction-return-with-doc.diff | patch -p2 --verbose || exit 1
 
+  # Fix build with glibc 2.28, which no longer makes available header file <sys/ustat.h>
+  cat $CWD/patches/glibc2.28-ustat.diff | patch -p0 --verbose || exit 1
+
   # Fix perms/owners
   chown -R root:root .
   find . -perm 777 -exec chmod 755 {} \;
@@ -434,7 +437,7 @@ fi
 
 if [ ${MULTILIB} = "NO" ]; then
   # Make our 64bit gcc look for 32bit gcc binaries in ./32 subdirectory:
-    (only needed if gcc was compiled with disable-multilib)
+  # (only needed if gcc was compiled with disable-multilib)
   if [ "$ARCH" = "x86_64" ]; then
     sed -i 's#;.\(:../lib !m64 m32;\)$#;32\1#' \
       $PKG/usr/lib${LIBDIRSUFFIX}/gcc/${TARGET}/${VERSION}/specs
diff --git a/development/gcc5/patches/glibc2.28-ustat.diff b/development/gcc5/patches/glibc2.28-ustat.diff
new file mode 100644
index 0000000000..c7d71d0677
--- /dev/null
+++ b/development/gcc5/patches/glibc2.28-ustat.diff
@@ -0,0 +1,31 @@
+--- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc	2018/04/25 07:39:32	259630
++++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc	2018/05/24 20:07:25	260687
+@@ -138,7 +138,6 @@
+ # include <sys/procfs.h>
+ #endif
+ #include <sys/user.h>
+-#include <sys/ustat.h>
+ #include <linux/cyclades.h>
+ #include <linux/if_eql.h>
+ #include <linux/if_plip.h>
+@@ -231,7 +230,19 @@
+ #endif // SANITIZER_LINUX || SANITIZER_FREEBSD
+ 
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
+-  unsigned struct_ustat_sz = sizeof(struct ustat);
++  // Use pre-computed size of struct ustat to avoid <sys/ustat.h> which
++  // has been removed from glibc 2.28.
++#if defined(__aarch64__) || defined(__s390x__) || defined (__mips64) \
++  || defined(__powerpc64__) || defined(__arch64__) || defined(__sparcv9) \
++  || defined(__x86_64__)
++#define SIZEOF_STRUCT_USTAT 32
++#elif defined(__arm__) || defined(__i386__) || defined(__mips__) \
++  || defined(__powerpc__) || defined(__s390__)
++#define SIZEOF_STRUCT_USTAT 20
++#else
++#error Unknown size of struct ustat
++#endif
++  unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
+   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
+ #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
hi luvr,

as I reported on the other thread the glibc patch doesn't seem needed here: have you tried building this stuff on a fresh installed full installation of slackware current as requested on the first post of this thread? I suppose not...

regarding openjdk/apache-ant can you please get in touch with the openjdk maintainer and ask his opinion on the matter?

Last edited by ponce; 04-15-2019 at 02:04 PM.
 
Old 04-15-2019, 02:42 PM   #1787
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Debian, Xubuntu
Posts: 266
Blog Entries: 1

Rep: Reputation: 93
Quote:
Originally Posted by ponce View Post
have you tried building this stuff on a fresh installed full installation of slackware current as requested on the first post of this thread?
I didn’t install a new copy of Slackware-current, if that’s what you’re asking.

To arrive at my Slackware-current system, I did a full install (as in everything—including KDE and KDEI) of Slackware 14.2, after which I fully updated this Slackware 14.2 system. I subsequently downloaded a local copy of the Slackware-current repository, and upgraded to Slackware-current from that local copy. Ever since, I keep my Slackware-current system up-to-date on average once a week.

I do run a “slackpkg clean-system” as part of my updates, so any “obsolete” packages get removed. My complete update cycle (once my local repository copy is updated) consists of the following sequence of commands:
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
My ‘/etc/slackpkg/blacklist’ file contains the following entries:
Code:
kernel-generic
kernel-generic-smp
kernel-headers
kernel-huge
kernel-huge-smp
kernel-modules
kernel-modules-smp
kernel-source
[0-9]+_SBo
[0-9]+alien
[0-9]+compat32
(The ‘smp’ kernel entries are not really required, since this is a 64-bit system. There are currently no alien packages installed, and the compat32 entry is superfluous, since this is a pure 64-bit system.) New kernels get installed separately, to ensure that the running kernel won’t get removed while I’m not looking.

If you really want me to install a new Slackware-current system, I’m not, in principle, opposed to doing so, but it won’t be particularly high on my priority list. I would be interested to know if there’s anything that I could do differently, though; if I simply follow the exact same procedure as last time, I’m inclined to believe that the results will most likely be the same as well.

In any case, the patch appears relevant to me, since it mentions glibc 2.28, which no longer provides the affected header file.

An earlier remark from Pat makes me wonder if, perhaps, you somehow have a pre-compiled header file lying around somewhere, which happens to provide the contents of the file that is no longer available???
 
Old 04-15-2019, 03:31 PM   #1788
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by luvr View Post
If you really want me to install a new Slackware-current system, I’m not, in principle, opposed to doing so, but it won’t be particularly high on my priority list. I would be interested to know if there’s anything that I could do differently, though; if I simply follow the exact same procedure as last time, I’m inclined to believe that the results will most likely be the same as well.
I have no idea if something had broken in your installation with usage...
you can try installing directly current using an iso

http://bear.alienbase.nl/mirrors/sla...4-current-iso/

if you do a full installation and try to build gcc5 from this fork of SBo as the first action after rebooting post-installation the environment should be as clean as it can get, I suppose.

Quote:
In any case, the patch appears relevant to me, since it mentions glibc 2.28, which no longer provides the affected header file.

An earlier remark from Pat makes me wonder if, perhaps, you somehow have a pre-compiled header file lying around somewhere, which happens to provide the contents of the file that is no longer available???
as I already explained you in the other thread, I haven't got that header and the gcc5.SlackBuild I run in my freshly installed slackware current system doesn't require it during building.

I cannot see the point of starting the same discussion again in this thread...

Last edited by ponce; 04-15-2019 at 03:35 PM.
 
Old 04-15-2019, 03:41 PM   #1789
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Debian, Xubuntu
Posts: 266
Blog Entries: 1

Rep: Reputation: 93
Quote:
Originally Posted by ponce View Post
you can try installing directly current using an iso

http://bear.alienbase.nl/mirrors/sla...4-current-iso/
Hmmm... Seems like an interesting option.
I have a spare disk partition on this laptop anyway, and I would be curious to find out if such an installation behaves in any way different from my current one.

Last edited by luvr; 04-19-2019 at 03:03 PM.
 
Old 04-15-2019, 03:44 PM   #1790
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled
try to avoid customizing the environment or anything else post-installation in any way, just run as root the gcc5.SlackBuild at the first reboot and see if it behaves the same way.
 
Old 04-16-2019, 09:12 AM   #1791
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
Quote:
Originally Posted by dive View Post
@ponce

Last week I added a patch so that dwm-6.2 will build in 14.2. The patch allows it to use the fontconfig in 14.2 by undoing references to LC_COLOR in the latest dwm git commit.

This patch isn't necesary with -current and it should build without it (tested last week).
I'll remove it from the repo, thanks for notifying!
sorry dive, I've seen there seems to be two patches now, 0001-Prepare-6.2-release.patch and 0001-Prepare-6.2-release-2.patch, now but only one seems to be applied (the first): which one do you intend me to remove for current?
 
Old 04-16-2019, 09:24 AM   #1792
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,396

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
splix not building on current - needed for Samsung ML-1670 printer

I have a Samsung ML-1670 printer I want to move onto a new Slackware-arm current system. I am new to arm, not new to Slackware.

On 14.2 64 bit, the splix package compiles, installs and works as expected. There is a pre-req of jbigkit. It is also fine on 14.2.

On trying to solve the install problem on my new skackware arm ( 32 bit ) system, jbigkit will not compile. Here is the last few lines of the failure.

Code:
bigkit-2.1/pbmtools/pbm.txt
jbigkit-2.1/pbmtools/pgm.txt
gcc -O2   -c -o jbig.o jbig.c
gcc -O2   -c -o jbig_ar.o jbig_ar.c
rm -f libjbig.a
ar rc libjbig.a jbig.o jbig_ar.o
ranlib libjbig.a
/usr/bin/ld: jbig.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: jbig_ar.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: jbig.o(.text+0x1b50): unresolvable R_ARM_CALL relocation against symbol `realloc@@GLIBC_2.4'
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
Note the "recompile with fPIC".

My next attempt was to see if this was just a failure on arm, or arm and Slackware 64 current.

jbigkit compiles and install on Slack 64 current. OK, so onto splix. I ran the command sbopkg -i splix. Here is the error output.

Quote:
PRE-CHECK LOG
Using the UNSUPPORTED SBo git repository for -current
Queue Process: Download, build, and install

jbigkit:
GPG checks not supported for the SBo-git repository.
Processing jbigkit 2.1-1
Using original .info file
Using original SlackBuild file
No build options selected.

splix:
GPG checks not supported for the SBo-git repository.
Processing splix 2.0.0-2
Using original .info file
Using original SlackBuild file
No build options selected.

+++++++++++++++++++++++++++++++++++++++++++

Pre-check complete.

Do you wish to proceed based on the search results above? Packages not
found will be skipped during the process.

(P)roceed or (Q)uit?: p


Processing jbigkit

jbigkit:
Found jbigkit-2.1.tar.gz in /var/cache/sbopkg.
Checking MD5SUM:
MD5SUM check for jbigkit-2.1.tar.gz ... OK
Building package for jbigkit...
jbigkit-2.1/
jbigkit-2.1/ANNOUNCE
jbigkit-2.1/CHANGES
jbigkit-2.1/COPYING
jbigkit-2.1/INSTALL
jbigkit-2.1/Makefile
jbigkit-2.1/TODO
jbigkit-2.1/contrib/
jbigkit-2.1/contrib/INDEX
jbigkit-2.1/contrib/atariprj.tar
jbigkit-2.1/examples/
jbigkit-2.1/examples/README
jbigkit-2.1/examples/ccitt1.jbg
jbigkit-2.1/examples/ccitt2.jbg
jbigkit-2.1/examples/ccitt3.jbg
jbigkit-2.1/examples/ccitt4.jbg
jbigkit-2.1/examples/ccitt5.jbg
jbigkit-2.1/examples/ccitt6.jbg
jbigkit-2.1/examples/ccitt7.jbg
jbigkit-2.1/examples/ccitt8.jbg
jbigkit-2.1/examples/jbgtests.m
jbigkit-2.1/examples/multi.pgm
jbigkit-2.1/examples/mx.jbg
jbigkit-2.1/examples/sandra.pgm
jbigkit-2.1/examples/xvlogo.jbg
jbigkit-2.1/libjbig/
jbigkit-2.1/libjbig/Makefile
jbigkit-2.1/libjbig/jbig.c
jbigkit-2.1/libjbig/jbig.h
jbigkit-2.1/libjbig/jbig.txt
jbigkit-2.1/libjbig/jbig85.c
jbigkit-2.1/libjbig/jbig85.h
jbigkit-2.1/libjbig/jbig85.txt
jbigkit-2.1/libjbig/jbig_ar.c
jbigkit-2.1/libjbig/jbig_ar.h
jbigkit-2.1/libjbig/po/
jbigkit-2.1/libjbig/po/README.txt
jbigkit-2.1/libjbig/po/de.po
jbigkit-2.1/libjbig/po/ru.po
jbigkit-2.1/libjbig/tstcodec.c
jbigkit-2.1/libjbig/tstcodec85.c
jbigkit-2.1/pbmtools/
jbigkit-2.1/pbmtools/Makefile
jbigkit-2.1/pbmtools/jbgfuzz.pl
jbigkit-2.1/pbmtools/jbgtopbm.1
jbigkit-2.1/pbmtools/jbgtopbm.c
jbigkit-2.1/pbmtools/jbgtopbm85.c
jbigkit-2.1/pbmtools/pbm.5
jbigkit-2.1/pbmtools/pbmtojbg.1
jbigkit-2.1/pbmtools/pbmtojbg.c
jbigkit-2.1/pbmtools/pbmtojbg85.c
jbigkit-2.1/pbmtools/pgm.5
jbigkit-2.1/pbmtools/pbmtojbg.txt
jbigkit-2.1/pbmtools/jbgtopbm.txt
jbigkit-2.1/pbmtools/pbm.txt
jbigkit-2.1/pbmtools/pgm.txt
make: 'libjbig.a' is up to date.
/usr/bin/ld: jbig.o: relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: jbig_ar.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

jbigkit:
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.

(Y)es to continue, (N)o to abort, (R)etry the build?: n

+++++++++++++++++++++++++++++++++++++++++++
SUMMARY LOG
Using the UNSUPPORTED SBo git repository for -current
Queue Process: Download, build, and install

jbigkit:
MD5SUM check for jbigkit-2.1.tar.gz ... OK
Error occurred with build. Please check the log.
Please note, jbigkit installed OK when run by itself.

Quote:
ls -l /var/lib/pkgtools/packages | grep jbigkit
-rw-r--r-- 1 root root 2027 Apr 16 09:12 jbigkit-2.1-x86_64-1ponce
It appears I need to do something with recompile with fPIC.

This is way over my head, how do I fix this?

I have duckduckgo it, there are hits for similar fPIC recompiles. Not sure how to do this. Your help is appreciated.
 
Old 04-16-2019, 10:22 AM   #1793
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled
hi camorri, I don't know what's happening there, but here
Code:
###########################################
       New queue process started on:
       Tue Apr 16 17:17:31 CEST 2019
###########################################

+++++++++++++++++++++++++++++++++++++++++++
PRE-CHECK LOG
Using the UNSUPPORTED SBo git repository for -current
Queue Process:  Download and build

jbigkit:
  GPG checks not supported for the SBo-git repository.
  Processing jbigkit 2.1-1
  Using original .info file
  Using original SlackBuild file
  No build options selected.

+++++++++++++++++++++++++++++++++++++++++++

Processing jbigkit

jbigkit:
jbigkit not found in /var/cache/sbopkg.
--2019-04-16 17:17:32--  http://www.cl.cam.ac.uk/~mgk25/jbigkit/download/jbigkit-2.1.tar.gz
Resolving www.cl.cam.ac.uk (www.cl.cam.ac.uk)... 128.232.0.20, 2a05:b400:110::80:14
Connecting to www.cl.cam.ac.uk (www.cl.cam.ac.uk)|128.232.0.20|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.cl.cam.ac.uk/~mgk25/jbigkit/download/jbigkit-2.1.tar.gz [following]
--2019-04-16 17:17:32--  https://www.cl.cam.ac.uk/~mgk25/jbigkit/download/jbigkit-2.1.tar.gz
Connecting to www.cl.cam.ac.uk (www.cl.cam.ac.uk)|128.232.0.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 438710 (428K) [application/x-gzip]
Saving to: ‘jbigkit-2.1.tar.gz’

Mjbigkit-2.1.tar.gz    0%[                    ]       0  --.-KB/s       jbigkit-2.1.tar.gz  100%[===================>] 428.43K  2.41MB/s    in 0.2s

2019-04-16 17:17:33 (2.41 MB/s) - ‘jbigkit-2.1.tar.gz’ saved [438710/438710]

Found jbigkit-2.1.tar.gz in /var/cache/sbopkg.
Checking MD5SUM:
  MD5SUM check for jbigkit-2.1.tar.gz ... OK
Building package for jbigkit...
jbigkit-2.1/
jbigkit-2.1/ANNOUNCE
jbigkit-2.1/CHANGES
jbigkit-2.1/COPYING
jbigkit-2.1/INSTALL
jbigkit-2.1/Makefile
jbigkit-2.1/TODO
jbigkit-2.1/contrib/
jbigkit-2.1/contrib/INDEX
jbigkit-2.1/contrib/atariprj.tar
jbigkit-2.1/examples/
jbigkit-2.1/examples/README
jbigkit-2.1/examples/ccitt1.jbg
jbigkit-2.1/examples/ccitt2.jbg
jbigkit-2.1/examples/ccitt3.jbg
jbigkit-2.1/examples/ccitt4.jbg
jbigkit-2.1/examples/ccitt5.jbg
jbigkit-2.1/examples/ccitt6.jbg
jbigkit-2.1/examples/ccitt7.jbg
jbigkit-2.1/examples/ccitt8.jbg
jbigkit-2.1/examples/jbgtests.m
jbigkit-2.1/examples/multi.pgm
jbigkit-2.1/examples/mx.jbg
jbigkit-2.1/examples/sandra.pgm
jbigkit-2.1/examples/xvlogo.jbg
jbigkit-2.1/libjbig/
jbigkit-2.1/libjbig/Makefile
jbigkit-2.1/libjbig/jbig.c
jbigkit-2.1/libjbig/jbig.h
jbigkit-2.1/libjbig/jbig.txt
jbigkit-2.1/libjbig/jbig85.c
jbigkit-2.1/libjbig/jbig85.h
jbigkit-2.1/libjbig/jbig85.txt
jbigkit-2.1/libjbig/jbig_ar.c
jbigkit-2.1/libjbig/jbig_ar.h
jbigkit-2.1/libjbig/po/
jbigkit-2.1/libjbig/po/README.txt
jbigkit-2.1/libjbig/po/de.po
jbigkit-2.1/libjbig/po/ru.po
jbigkit-2.1/libjbig/tstcodec.c
jbigkit-2.1/libjbig/tstcodec85.c
jbigkit-2.1/pbmtools/
jbigkit-2.1/pbmtools/Makefile
jbigkit-2.1/pbmtools/jbgfuzz.pl
jbigkit-2.1/pbmtools/jbgtopbm.1
jbigkit-2.1/pbmtools/jbgtopbm.c
jbigkit-2.1/pbmtools/jbgtopbm85.c
jbigkit-2.1/pbmtools/pbm.5
jbigkit-2.1/pbmtools/pbmtojbg.1
jbigkit-2.1/pbmtools/pbmtojbg.c
jbigkit-2.1/pbmtools/pbmtojbg85.c
jbigkit-2.1/pbmtools/pgm.5
jbigkit-2.1/pbmtools/pbmtojbg.txt
jbigkit-2.1/pbmtools/jbgtopbm.txt
jbigkit-2.1/pbmtools/pbm.txt
jbigkit-2.1/pbmtools/pgm.txt
gcc -O2 -fPIC   -c -o jbig.o jbig.c
gcc -O2 -fPIC   -c -o jbig_ar.o jbig_ar.c
rm -f libjbig.a
ar rc libjbig.a jbig.o jbig_ar.o
ranlib libjbig.a
rm -f *.o *.gcda *.gcno *.gcov *.plist *~ core gmon.out dbg_d\=??.pbm
rm -f t82test.pbm
rm -f tstcodec tstcodec85
/tmp/sbopkg.bUerYq/jbigkit-2.1
cd libjbig && make -e
make[1]: Entering directory '/tmp/sbopkg.bUerYq/jbigkit-2.1/libjbig'
gcc -O2 -W -Wno-unused-result   -c -o jbig.o jbig.c
gcc -O2 -W -Wno-unused-result   -c -o jbig_ar.o jbig_ar.c
gcc -O2 -W -Wno-unused-result   -c -o jbig85.o jbig85.c
gcc -O2 -W -Wno-unused-result   -c -o tstcodec.o tstcodec.c
gcc -O2 -W -Wno-unused-result   -c -o tstcodec85.o tstcodec85.c
rm -f libjbig85.a
gcc -O2 -W -Wno-unused-result -o tstcodec85 tstcodec85.o jbig85.o jbig_ar.o
ar rc libjbig85.a jbig85.o jbig_ar.o
ranlib libjbig85.a
rm -f libjbig.a
gcc -O2 -W -Wno-unused-result -o tstcodec tstcodec.o jbig.o jbig_ar.o
ar rc libjbig.a jbig.o jbig_ar.o
ranlib libjbig.a
make[1]: Leaving directory '/tmp/sbopkg.bUerYq/jbigkit-2.1/libjbig'
cd pbmtools && make -e
make[1]: Entering directory '/tmp/sbopkg.bUerYq/jbigkit-2.1/pbmtools'
gcc -O2 -W -Wno-unused-result -I../libjbig   -c -o pbmtojbg.o pbmtojbg.c
gcc -O2 -W -Wno-unused-result -I../libjbig   -c -o jbgtopbm.o jbgtopbm.c
gcc -O2 -W -Wno-unused-result -I../libjbig   -c -o pbmtojbg85.o pbmtojbg85.c
gcc -O2 -W -Wno-unused-result -I../libjbig   -c -o jbgtopbm85.o jbgtopbm85.c
gcc -O2 -W -Wno-unused-result -o jbgtopbm85 jbgtopbm85.o -L../libjbig -ljbig85
gcc -O2 -W -Wno-unused-result -o pbmtojbg85 pbmtojbg85.o -L../libjbig -ljbig85
gcc -O2 -W -Wno-unused-result -o jbgtopbm jbgtopbm.o -L../libjbig -ljbig
gcc -O2 -W -Wno-unused-result -o pbmtojbg pbmtojbg.o -L../libjbig -ljbig
make[1]: Leaving directory '/tmp/sbopkg.bUerYq/jbigkit-2.1/pbmtools'
Enter 'make test' in order to start some automatic tests.

Slackware package maker, version 3.14159265.

Searching for symbolic links:
usr/lib64/libjbig.so    libjbig.so.2.1

Making symbolic link creation script:
( cd usr/lib64 ; rm -rf libjbig.so )
( cd usr/lib64 ; ln -sf libjbig.so.2.1 libjbig.so )

It is recommended that you make these lines your new installation script.

Would you like to make this stuff the install script for this package
and remove the symbolic links ([y]es, [n]o)? y


Removing symbolic links:
removed './usr/lib64/libjbig.so'

Creating your new ./install/doinst.sh...

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /tmp/sbopkg.bUerYq/sbopkg-sbooutputdir/jbigkit-2.1-x86_64-1ponce.txz

./
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin/
usr/bin/jbgtopbm
usr/bin/jbgtopbm85
usr/bin/pbmtojbg
usr/bin/pbmtojbg85
usr/doc/
usr/doc/jbigkit-2.1/
usr/doc/jbigkit-2.1/ANNOUNCE
usr/doc/jbigkit-2.1/CHANGES
usr/doc/jbigkit-2.1/COPYING
usr/doc/jbigkit-2.1/INSTALL
usr/doc/jbigkit-2.1/TODO
usr/doc/jbigkit-2.1/examples/
usr/doc/jbigkit-2.1/examples/README
usr/doc/jbigkit-2.1/examples/ccitt1.jbg
usr/doc/jbigkit-2.1/examples/ccitt2.jbg
usr/doc/jbigkit-2.1/examples/ccitt3.jbg
usr/doc/jbigkit-2.1/examples/ccitt4.jbg
usr/doc/jbigkit-2.1/examples/ccitt5.jbg
usr/doc/jbigkit-2.1/examples/ccitt6.jbg
usr/doc/jbigkit-2.1/examples/ccitt7.jbg
usr/doc/jbigkit-2.1/examples/ccitt8.jbg
usr/doc/jbigkit-2.1/examples/jbgtests.m
usr/doc/jbigkit-2.1/examples/multi.pgm
usr/doc/jbigkit-2.1/examples/mx.jbg
usr/doc/jbigkit-2.1/examples/sandra.pgm
usr/doc/jbigkit-2.1/examples/xvlogo.jbg
usr/doc/jbigkit-2.1/jbig.txt
usr/doc/jbigkit-2.1/jbig85.txt
usr/doc/jbigkit-2.1/jbigkit.SlackBuild
usr/include/
usr/include/jbig.h
usr/include/jbig85.h
usr/include/jbig_ar.h
usr/lib64/
usr/lib64/libjbig.a
usr/lib64/libjbig.so.2.1
usr/man/
usr/man/man1/
usr/man/man1/jbgtopbm.1.gz
usr/man/man1/pbmtojbg.1.gz

Slackware package /tmp/sbopkg.bUerYq/sbopkg-sbooutputdir/jbigkit-2.1-x86_64-1ponce.txz created.

Cleaning up...

+++++++++++++++++++++++++++++++++++++++++++
SUMMARY LOG
Using the UNSUPPORTED SBo git repository for -current
Queue Process:  Download and build

jbigkit:
  MD5SUM check for jbigkit-2.1.tar.gz ... OK
  Building package jbigkit-2.1-x86_64-1ponce.txz ... OK

+++++++++++++++++++++++++++++++++++++++++++

###########################################
          Queue process complete!
###########################################
 
Old 04-16-2019, 10:51 AM   #1794
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,396

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Ponce,

What I did; I had installed jbigkit successfully. I tried to install splix, I tried to use the queue file containing two lines, jbigkit and splix. That produced the error 'recompile with fPIC' message.

I just compiled and installed splix on its own, I did not call it from the queue file. That worked, I will try to install the printer now on current 64 bit, full install and report back.

My bigger problem is I want that printer on my rasberry pi running slackware current. I want that system to be my print server. If the ML1670 printer works on current 64 bit, I will open a thread on the arm forum and see if they can help.
 
Old 04-16-2019, 01:12 PM   #1795
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled
I tried also to run a queue with jbigkit and splix together and they built fine
Code:
+++++++++++++++++++++++++++++++++++++++++++
SUMMARY LOG
Using the UNSUPPORTED SBo git repository for -current
Queue Process:  Download, build, and install

jbigkit:
  MD5SUM check for jbigkit-2.1.tar.gz ... OK
  Building package jbigkit-2.1-x86_64-1ponce.txz ... OK
  Installing package jbigkit-2.1-x86_64-1ponce.txz ... OK

splix:
  MD5SUM check for splix-2.0.0.tar.bz2 ... OK
  Building package splix-2.0.0-x86_64-2ponce.txz ... OK
  Installing package splix-2.0.0-x86_64-2ponce.txz ... OK

+++++++++++++++++++++++++++++++++++++++++++

###########################################
          Queue process complete!
###########################################
I'm sorry but I haven't tested an installation of the scripts on slackwarearm-current, as I don't have it available ATM...
 
Old 04-16-2019, 03:58 PM   #1796
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 36

Rep: Reputation: 0
Probably already known, but virtualbox requires virtualbox-kernel, which does not build on -current:

Code:
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c: In function ‘vboxPciLinuxDevDetachHostDriver’:
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c:92:40: error: implicit declaration of function ‘pci_get_bus_and_slot’; did you mean ‘pci_get_domain_bus_and_slot’? [-Werror=implicit-function-declaration]
 # define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_bus_and_slot(bus, devfn)
                                        ^~~~~~~~~~~~~~~~~~~~
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c:397:15: note: in expansion of macro ‘PCI_DEV_GET_SLOT’
     pPciDev = PCI_DEV_GET_SLOT(uBus, uDevFn);
               ^~~~~~~~~~~~~~~~
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c:397:13: warning: assignment to ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     pPciDev = PCI_DEV_GET_SLOT(uBus, uDevFn);
             ^
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c: In function ‘vboxPciOsDevInit’:
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c:648:17: warning: assignment to ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
         pPciDev = PCI_DEV_GET_SLOT((pIns->HostPciAddress) >> 8,
                 ^
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:303: /tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.o] Error 1
make[2]: *** [Makefile:1525: _module_/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci] Error 2
make[2]: Leaving directory '/usr/src/linux-4.19.34'
make[1]: *** [/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/Makefile.include.footer:101: vboxpci] Error 2
make[1]: Leaving directory '/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci'
make: *** [Makefile:54: all] Error 1
It looks like they changed some calls between kernel 4.14.x and 4.19.x?
I don't know what it would take to bump the version as it looks like anything after 5.2.10 doesn't have a virtualbox-kernel source anymore.
 
Old 04-16-2019, 04:24 PM   #1797
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by av2zeal View Post
Probably already known, but virtualbox requires virtualbox-kernel, which does not build on -current:

Code:
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c: In function ‘vboxPciLinuxDevDetachHostDriver’:
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c:92:40: error: implicit declaration of function ‘pci_get_bus_and_slot’; did you mean ‘pci_get_domain_bus_and_slot’? [-Werror=implicit-function-declaration]
 # define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_bus_and_slot(bus, devfn)
                                        ^~~~~~~~~~~~~~~~~~~~
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c:397:15: note: in expansion of macro ‘PCI_DEV_GET_SLOT’
     pPciDev = PCI_DEV_GET_SLOT(uBus, uDevFn);
               ^~~~~~~~~~~~~~~~
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c:397:13: warning: assignment to ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
     pPciDev = PCI_DEV_GET_SLOT(uBus, uDevFn);
             ^
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c: In function ‘vboxPciOsDevInit’:
/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c:648:17: warning: assignment to ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
         pPciDev = PCI_DEV_GET_SLOT((pIns->HostPciAddress) >> 8,
                 ^
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:303: /tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.o] Error 1
make[2]: *** [Makefile:1525: _module_/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci] Error 2
make[2]: Leaving directory '/usr/src/linux-4.19.34'
make[1]: *** [/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci/Makefile.include.footer:101: vboxpci] Error 2
make[1]: Leaving directory '/tmp/SBo/virtualbox-kernel-5.2.8/vboxpci'
make: *** [Makefile:54: all] Error 1
It looks like they changed some calls between kernel 4.14.x and 4.19.x?
I don't know what it would take to bump the version as it looks like anything after 5.2.10 doesn't have a virtualbox-kernel source anymore.
try patching the virtualbox-kernel.SlackBuild for 5.2.8 with this
Code:
From 4336ad1132c00a189ea38bd8330cce8a51457af5 Mon Sep 17 00:00:00 2001
From: Matteo Bernardini <ponce@slackbuilds.org>
Date: Tue, 16 Apr 2019 23:22:24 +0200
Subject: [PATCH] system/virtualbox-kernel: Patch for kernel >= 4.17.x.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
---
 system/virtualbox-kernel/kernel_4.17.patch    | 32 +++++++++++++++++++
 .../virtualbox-kernel.SlackBuild              |  2 ++
 2 files changed, 34 insertions(+)
 create mode 100644 system/virtualbox-kernel/kernel_4.17.patch

diff --git a/system/virtualbox-kernel/kernel_4.17.patch b/system/virtualbox-kernel/kernel_4.17.patch
new file mode 100644
index 0000000000..007bf737f2
--- /dev/null
+++ b/system/virtualbox-kernel/kernel_4.17.patch
@@ -0,0 +1,32 @@
+In kernel 4.17, pci_get_bus_and_slot() has been removed in favor of
+pci_get_domain_bus_and_slot(). It appears that VirtualBox only uses
+domain number 0, thus pci_get_domain_bus_and_slot(0, bus, devfn)
+is a suitable replacement for pci_get_bus_and_slot(bus, devfn).
+
+The resulting code compiles; however, I do not use PCI passthru, which
+I think means that I have not actually tested the code.
+
+This patch released under a combined MIT/GPLv2 license.
+
+Shamelessly stolen from the patch by Larry Finger.
+
+Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
+
+diff -Naur virtualbox-kernel-5.2.8.orig/vboxpci/linux/VBoxPci-linux.c virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c
+--- virtualbox-kernel-5.2.8.orig/vboxpci/linux/VBoxPci-linux.c	2018-03-14 20:33:31.000000000 +0100
++++ virtualbox-kernel-5.2.8/vboxpci/linux/VBoxPci-linux.c	2019-04-16 23:18:10.607698000 +0200
+@@ -89,7 +89,14 @@
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
+ # define PCI_DEV_GET(v,d,p)            pci_get_device(v,d,p)
+ # define PCI_DEV_PUT(x)                pci_dev_put(x)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
++/* assume the domain number to be zero - exactly the same assumption of
++* pci_get_bus_and_slot()
++*/
++# define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_domain_bus_and_slot(0, bus, devfn)
++#else
+ # define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_bus_and_slot(bus, devfn)
++#endif
+ #else
+ # define PCI_DEV_GET(v,d,p)            pci_find_device(v,d,p)
+ # define PCI_DEV_PUT(x)                do { } while (0)
diff --git a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild
index 21b57d9a53..338da42bfc 100644
--- a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild
+++ b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild
@@ -84,6 +84,8 @@ if [ "$KERNEL_MINOR" = 4 -a "$KERNEL_PATCH" -ge 168 ]; then
   sed -i "s|KERNEL_VERSION(4, 9, 0)|KERNEL_VERSION(4, 4, 168)|" vboxdrv/r0drv/linux/memobj-r0drv-linux.c
 fi
 
+patch -p1 < $CWD/kernel_4.17.patch
+
 make KERN_DIR=${KERNELPATH}
 
 mkdir -p $PKG/lib/modules/$KERNEL/misc
-- 
2.21.0

Last edited by ponce; 04-16-2019 at 04:37 PM.
 
Old 04-16-2019, 06:27 PM   #1798
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 36

Rep: Reputation: 0
Thanks Ponce! Your patch fixed the kernel and it builds fine, but now the virtualbox build is failing:
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

Last edited by av2zeal; 04-16-2019 at 06:28 PM.
 
Old 04-17-2019, 04:57 AM   #1799
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by av2zeal View Post
but now the virtualbox build is failing:
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
 
Old 04-17-2019, 05:31 AM   #1800
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,810

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
Quote:
Originally Posted by ponce View Post
Quote:
Originally Posted by dive View Post
@ponce

Last week I added a patch so that dwm-6.2 will build in 14.2. The patch allows it to use the fontconfig in 14.2 by undoing references to LC_COLOR in the latest dwm git commit.

This patch isn't necesary with -current and it should build without it (tested last week).
I'll remove it from the repo, thanks for notifying!
sorry dive, I've seen there seems to be two patches now, 0001-Prepare-6.2-release.patch and 0001-Prepare-6.2-release-2.patch, now but only one seems to be applied (the first): which one do you intend me to remove for current?
ok, just saw the latest commit

https://git.slackbuilds.org/slackbui...b57f49eae65252

I'll remove the one left!
 
  


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 01:07 AM.

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