LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-04-2018, 08:15 AM   #1
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Building pdftk on Slackware 15.0 ( -current )


All --

I was able to build pdftk on an up-to-date instance of Slackware64-current thanks to Alien Bob's gcc5.SlackBuild

Woo Hoo !

The solution turned out to be very simple:

1. install Alien Bob's gcc5.SlackBuild
2. source /etc/profile.d/gcc-5.sh
3. force CXX=gcc-5 in the Official pdftk/Makefile.Slackware-13.1 File.

Patches for the pdftk.SlackBuild and the official pdftk/Makefile.Slackware-13.1 are attached below.

To build pdftk on Slackware -current:

1. Download the pdftk.SlackBuild into a working directory

2. Save the four patch files in the pdftk.SlackBuild working directory being sure to DROP the .txt extent !

The four new patch files should be named as follows:
Code:
-rw-r--r-- 1 root root  497 Mar  4 07:05 README-Slackware-15.0.patch
-rw-r--r-- 1 root root  665 Mar  4 06:46 pdftk-2.02-on-Slackware-15.patch
-rw-r--r-- 1 root root  694 Mar  4 07:05 pdftk.SlackBuild-Slackware-15.0.patch
-rw-r--r-- 1 root root  300 Mar  4 07:05 pdftk.info-Slackware-15.0.patch
3. Apply the SlackBuild patches as follows:
Code:
# for i in README pdftk.SlackBuild pdftk.info; do patch -p1 < $i-Slackware-15.0.patch; done
The output from your command should be:
Code:
patching file README
patching file pdftk.SlackBuild
patching file pdftk.info
4. Invoke the pdftk.SlackBuild as root ( via su - ) as follows:
Code:
sh                              # start a sub-shell to preserve your env
. /etc/profile.d/gcc5.sh        # source Alien Bob's gcc5 Environment
SLACKVER=15 ./pdftk.SlackBuild  # force a Slackware-current build
exit                            # return to your standard shell
Note: you will see all the usual 'problems' with the source that were reported on my Slackware 14.2 SlackBuild session.

After all the wordy output, you should end up with the usual /tmp/pdftk-2.02-x86_64-1_SBo.tgz package.

Install as usual ( installpkg /tmp/pdftk-2.02-x86_64-1_SBo.tgz ).

I built and installed pdftk on a 'fairly clean' Slackware64-current and it works as expected for all our use-cases.

For the record, these are the SBo and alien packages on that particular box:
Code:
# ls -la /var/log/packages/*{SBo,alien}
-rw-r--r-- 1 root root  474644 Mar  2 05:51 /var/log/packages/gcc5-5.5.0-x86_64-1SBo
-rw-r--r-- 1 root root    4206 Feb 11 07:18 /var/log/packages/intel-microcode-20171117-noarch-1_SBo
-rw-r--r-- 1 root root    1251 Feb 11 07:13 /var/log/packages/iucode_tool-2.3.1-x86_64-1_SBo
-rw-r--r-- 1 root root  786719 Feb 22 07:00 /var/log/packages/libreoffice-6.0.1-x86_64-1alien
-rw-r--r-- 1 root root    8477 Feb 22 07:00 /var/log/packages/libreoffice-dict-en-6.0.1-x86_64-1alien
-rw-r--r-- 1 root root    1084 Feb 22 07:00 /var/log/packages/libreoffice-kde-integration-6.0.1-x86_64-1alien
-rw-r--r-- 1 root root 2030119 Feb 22 07:00 /var/log/packages/libreoffice-sdkdoc-6.0.1-noarch-1alien
-rw-r--r-- 1 root root   18370 Feb  4 10:14 /var/log/packages/logwatch-7.4.3-noarch-1alien
-rw-r--r-- 1 root root    2623 Mar  4 07:21 /var/log/packages/pdftk-2.02-x86_64-1_SBo
-rw-r--r-- 1 root root  540881 Feb 28 06:53 /var/log/packages/qt5-5.9.4-x86_64-2alien
Thanks to Alien Bob for the gcc5.SlackBuild and to 55020 and qunying for the head's up !

This preliminary work saved a surprise when I switch over to Slackware 15.0

-- kjh
Attached Files
File Type: txt README-Slackware-15.0.patch.txt (497 Bytes, 78 views)
File Type: txt pdftk.SlackBuild-Slackware-15.0.patch.txt (694 Bytes, 54 views)
File Type: txt pdftk.info-Slackware-15.0.patch.txt (300 Bytes, 47 views)
File Type: txt pdftk-2.02-on-Slackware-15.patch.txt (665 Bytes, 64 views)
 
Old 03-04-2018, 10:06 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
thanks! I pushed the modifications together with Alien Bob's gcc5 to the unofficial repository for current (they will be available at the next global update).
 
1 members found this post helpful.
Old 03-04-2018, 10:12 AM   #3
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
You're welcome !

And thanks ponce for all that you and the 'real SBo Devs' do !

-- kjh

Last edited by kjhambrick; 03-04-2018 at 10:12 AM. Reason: added Y.W.
 
2 members found this post helpful.
Old 02-21-2022, 12:11 PM   #4
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
as i am trying to compile pdftk on a Slack150 machine (not -current as folks below but a true 15.0) i am getting some error messages after which things stop compiling :

Code:
/bin/sh: line 1: gjar: command not found
make[1]: [Makefile:51: java_lib.o] Error 127 (ignored)
gcj -O2 -fPIC -Wall -fsource=1.3 --encoding=UTF-8 --classpath="/usr/share/java:/tmp/SBo/pdftk-2.02-dist/java:." -c java_lib.jar
/bin/sh: line 1: gcj: command not found
make[1]: [Makefile:52: java_lib.o] Error 127 (ignored)
make[1]: Leaving directory '/tmp/SBo/pdftk-2.02-dist/java'
make: *** No rule to make target '/tmp/SBo/pdftk-2.02-dist/pdftk/../java/java_lib.o', needed by 'pdftk.o'.  Stop.
yes, i obviously already installed Alien's :

Code:
openjre-8u312_b07-x86_64-1alien.txz
what is today the best method, on a Slack150 machine, to get pdftk back to work ?
 
Old 02-21-2022, 12:36 PM   #5
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
pisti --

I believe you need to install the SBo Current gcc5 Package first followed by the SBo Current pdftk Package.

Check the SBo pdftk.README:
Code:
If PDF is electronic paper, then pdftk is an electronic staple-remover, 
hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a 
command-line tool for doing everyday things with PDF documents.  Keep one 
in the top drawer of your desktop and use it to merge PDF documents, 
split PDF documents, apply watermarks, repair corrupt PDF, update PDF 
metadata, and more.  pdftk does not require Acrobat and is free software.

NOTE: Starting with Slackware 15.0 pdftk compilation requires SBo gcc-5
because gcc-java was dropped from the GNU Compiler Collection as of gcc-7:
don't forget to source /etc/profile.d/gcc5.sh before starting to build
this, like

  . /etc/profile.d/gcc5.sh
It worked fine on my Slackware Current -> Slackware 15.0 System

HTH

-- kjh

p.s. The SlackBuilds you need are in Ponce's Repo, not in the 14.2 Repo:

gcc5: https://github.com/Ponce/slackbuilds...velopment/gcc5

pdftk: https://github.com/Ponce/slackbuilds...t/office/pdftk

Last edited by kjhambrick; 02-21-2022 at 01:03 PM. Reason: p.s.
 
1 members found this post helpful.
Old 02-21-2022, 04:24 PM   #6
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
thank you, kjhambrick, this sounds very encouraging :

Quote:
Originally Posted by kjhambrick View Post
pisti --

I believe you need to install the SBo Current gcc5 Package first followed by the SBo Current pdftk Package.

Check the SBo pdftk.README:

It worked fine on my Slackware Current -> Slackware 15.0 System

HTH

-- kjh

p.s. The SlackBuilds you need are in Ponce's Repo, not in the 14.2 Repo:

gcc5: https://github.com/Ponce/slackbuilds...velopment/gcc5

pdftk: https://github.com/Ponce/slackbuilds...t/office/pdftk
my (currently) only remaining, perhaps naïve question is how to get hold of the complete gcc5 SBo package, or the necessary usual three gcc5 SBo files ? the same for PDFTK's case ? i never owned a GITHUB account which meanwhile has anyway closed its doors to the public so that wget doesn't work anymore. moreover i don't know how to get hold of '-current' or '15.0' files on SlackBuilds in case they are found there at all at this early Slack150 stage ?
 
Old 02-21-2022, 06:01 PM   #7
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Pisti --

You don't need a github account to 'clone' Ponce's Repo on your HDD.

This is more-or-less what I do ...

Code:
TheDir="/tmp/sbo-current"                         
TheURL="https://github.com/Ponce/slackbuilds.git" 

[ ! -d "$TheDir" ] && mkdir -p "$TheDir"

cd "$TheDir" 

RetCode=$? ; [ "$RetCode" != "0" ] && echo "cannot cd into $TheDir" >&2 && exit $RetCode

rm -rf .[a-z]* *

git clone $TheURL .
I have a script called .git-current that does the above, more-or-less.

After you run the sequence of commands or create a script to run the commands, you'll have a new clone of Ponce's current SBo git Repo.

You'll find everything from Ponce's SBo Current Repo in /tmp/sbo-current/
Code:
cd /tmp/sbo-current

find . -type d -iname pdftk -o -iname gcc5

./development/gcc5
./office/pdftk
You can build in place or copy the directories someplace else so you don't pollute your repo.

HTH

-- kjh
 
1 members found this post helpful.
Old 02-22-2022, 01:22 PM   #8
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
what a cookbook recipe ! thank you for that, kjhambrick ! i will try it in minute ! yes, the https route is the way to go with github, a colleague at work just told me so too !
 
Old 02-22-2022, 03:13 PM   #9
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
sorry to get back to you, dear kjhambrick, with new questions - instead of a hurrah...

how the heck do i use or do i install this gcc5 thing ? it appears to me (by entirely following your instructions below) that gcc5.SlackBuild does not finish its job as i don't find an output file to install with installpkg and nothing like gcc5.sh under /etc/profile.d/ either. prior to compiling i located three files on the web such as ecj-4.9.jar , fastjar-0.98.tar.gz and gcc-5.5.0.tar.xz in order to make SlackBuild run... what do i do wrong ? all my slack150 boxes are pretty virgin still, btw.

by the way, i played with all [y/n/etc] options under :
Code:
Reversed (or previously applied) patch detected!  Assume -R? [n]
here some outputs :
Code:
...
fastjar-0.98/depcomp
fastjar-0.98/acinclude.m4
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|2009-01-14  Jakub Jelinek  <jakub@redhat.com>
|
|       * jartool.c (make_manifest): Initialize current_time before
|       calling unix2dostime on it.
|
|--- fastjar-0.97/jartool.c.jj  2008-10-15 18:35:37.000000000 +0200
|+++ fastjar-0.97/jartool.c     2009-01-14 15:40:50.000000000 +0100
--------------------------
patching file jartool.c
Using Plan A...
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
Hunk #1 ignored at 820.
Hunk #2 ignored at 828.
2 out of 2 hunks ignored -- saving rejects to file jartool.c.rej
done

pwd
/tmp/sbo-current/development/gcc5

ls
README  c99.sh       ecj.sh               fastjar-patches/  gcc5.SlackBuild*  libgcj-5.pc  profile.d/
c89.sh  ecj-4.9.jar  fastjar-0.98.tar.gz  gcc-5.5.0.tar.xz  gcc5.info         patches/     slack-desc.gcc5
uff, difficult birth...i remember that in the past our SBo's included a few more commands like config, make, etc - but here i am a bit lost, sorry about that !
 
Old 02-22-2022, 05:55 PM   #10
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
Isn't the package under /tmp as stated in the SlackBuild file ?

That's why I like sbopkg, the log...
 
Old 02-23-2022, 04:26 AM   #11
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
pisti --

I don't see the 4 source code packages in your ls output:
Quote:
Code:
pwd
/tmp/sbo-current/development/gcc5

ls
README  c99.sh       ecj.sh               fastjar-patches/  gcc5.SlackBuild*  libgcj-5.pc  profile.d/
c89.sh  ecj-4.9.jar  fastjar-0.98.tar.gz  gcc-5.5.0.tar.xz  gcc5.info         patches/     slack-desc.gcc5
Please read the Official SlackBuilds HowTo: https://slackbuilds.org/howto/ also note the link at the end of the page: http://www.slackwiki.com/SlackBuild_Scripts for more info.

The missing Source Code is listed in the DOWNLOAD Variable in the gcc5.info file:
Code:
# cat gcc5.info

PRGNAM="gcc5"
VERSION="5.5.0"
HOMEPAGE="https://gcc.gnu.org/"
DOWNLOAD="https://ftp.gnu.org/gnu/gcc/gcc-5.5.0/gcc-5.5.0.tar.xz \
          http://www.antlr3.org/download/antlr-runtime-3.4.jar \
          https://sourceware.org/pub/java/ecj-4.9.jar \
          https://download.savannah.gnu.org/releases/fastjar/fastjar-0.97.tar.gz"
MD5SUM="0f70424213b4a1113c04ba66ddda0c1f \
        0e0318be407e51fdf7ba6777eabfdf73 \
        7339f199ba11c941890031fd9981d7be \
        2659f09c2e43ef8b7d4406321753f1b2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Eric Hameleers"
EMAIL="alien@slackware.com"
cd /tmp/sbo-current/development/gcc5/ and use wget ( for example ) to download the source into your working directory.

One way to do it:
Code:
cd  /tmp/sbo-current/development/gcc5

source ./gcc5.info

for s in $DOWNLOAD
do
   wget $s || ( echo "wget $s did not work" >&2 ; exit 1 ; )
done

# be sure to check the md5sums listed in the MD5SUM Variable too !
#
# one way to do that:

echo '0f70424213b4a1113c04ba66ddda0c1f  gcc-5.5.0.tar.xz
      0e0318be407e51fdf7ba6777eabfdf73  antlr-runtime-3.4.jar
      7339f199ba11c941890031fd9981d7be  ecj-4.9.jar
      2659f09c2e43ef8b7d4406321753f1b2  fastjar-0.97.tar.gz' | md5sum -c -
You should end up with four Downloads in your directory in addition to the original content above.

Code:
-rw-r--r--  1 root root   164368 Jul  7  2017 antlr-runtime-3.4.jar
-rw-r--r--  1 root root  1619429 Dec 10  2013 ecj-4.9.jar
-rw-r--r--  1 root root   676393 Oct 16  2008 fastjar-0.97.tar.gz
-rw-r--r--  1 root root 71096120 Oct 10  2017 gcc-5.5.0.tar.xz
Once you've got the source, try again ?

HTH

-- kjh

Last edited by kjhambrick; 02-23-2022 at 05:19 AM. Reason: gcc.info VarbNames
 
Old 02-23-2022, 04:27 AM   #12
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by Tonus View Post
Isn't the package under /tmp as stated in the SlackBuild file ?

That's why I like sbopkg, the log...
Yes, logs are ESSENTIAL !

-- kjh
 
Old 02-23-2022, 10:16 AM   #13
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
gosh, kjhambrick, thank you again for your help ! i wasn't familiar with the *.info file although i use SBo frequently, for years, but perhaps always in the comfort zone of just running smooth *.SlackBuild rides. i am also not really a programmer, just a scientist who uses Slackware for 28½ years...

now, i removed fastjar-0.98.tar.gz in order to use the .97 version as indicated - but that didn't do good :
Code:
patching file Makefile.in
Using Plan A...
Hunk #1 succeeded at 515.
done
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc-5
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.
while by re-including fastjar-0.98.tar.gz again we progressed a little bit further - though playing with 'y' or 'n' under "Assume -R? [n] y" didn't really make a difference to finish the job - which it didn't :
Code:
fastjar-0.98/acinclude.m4
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|2009-01-14  Jakub Jelinek  <jakub@redhat.com>
|
|       * jartool.c (make_manifest): Initialize current_time before
|       calling unix2dostime on it.
|
|--- fastjar-0.97/jartool.c.jj  2008-10-15 18:35:37.000000000 +0200
|+++ fastjar-0.97/jartool.c     2009-01-14 15:40:50.000000000 +0100
--------------------------
patching file jartool.c
Using Plan A...
Reversed (or previously applied) patch detected!  Assume -R? [n] y
Hunk #1 succeeded at 820.
Hunk #2 succeeded at 828.
done
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|2009-12-21  Chris Ball  <cjb@laptop.org>
|
|       * jartool.c (add_file_to_jar): Test write return value against -1
|       instead of 1.
|
|--- fastjar-0.97/jartool.c.jj  2008-10-15 12:35:37.000000000 -0400
|+++ fastjar-0.97/jartool.c     2009-12-22 06:48:09.309530000 -0500
--------------------------
patching file jartool.c
Using Plan A...
Hunk #1 succeeded at 1257.
done
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|2010-03-01  Richard Guenther  <rguenther@suse.de>
|
|       * jartool.c (read_entries): Properly zero-terminate filename.
|
|--- fastjar-0.97/jartool.c     6 Sep 2009 22:16:00 -0000       1.59
|+++ fastjar-0.97/jartool.c     1 Mar 2010 15:38:43 -0000       1.60
--------------------------
patching file jartool.c
Using Plan A...
Hunk #1 succeeded at 790.
done
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|2010-06-10  Jakub Jelinek  <jakub@redhat.com>
|           Dan Rosenberg  <dan.j.rosenberg@gmail.com>
|
|       * jartool.c (extract_jar): Fix up checks for traversal to parent
|       directories, disallow absolute paths, make the code slightly more
|       efficient.
|
|--- fastjar-0.97/jartool.c.jj  2009-09-07 00:10:47.000000000 +0200
|+++ fastjar-0.97/jartool.c     2010-06-08 20:00:29.000000000 +0200
--------------------------
patching file jartool.c
Using Plan A...
Hunk #1 succeeded at 1731 (offset 1 line).
Hunk #2 succeeded at 1749 (offset 1 line).
Hunk #3 succeeded at 1779 (offset 1 line).
Hunk #4 succeeded at 1796 (offset 1 line).
Hunk #5 succeeded at 1808 (offset 1 line).
Hunk #6 succeeded at 1892 (offset 1 line).
done
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|2010-03-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
|
|       * Makefile.am (POD2MAN): Provide --date from ChangeLog.
|       * Makefile.in: Regenerate.
|
|--- fastjar-0.97/Makefile.am.jj        2008-10-16 04:24:55.000000000 -0400
|+++ fastjar-0.97/Makefile.am   2010-06-21 09:29:41.021398000 -0400
--------------------------
patching file Makefile.am
Using Plan A...
Hunk #1 succeeded at 39.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- fastjar-0.97/Makefile.in.jj        2008-10-16 04:15:16.000000000 -0400
|+++ fastjar-0.97/Makefile.in   2010-06-21 09:30:15.882810000 -0400
--------------------------
patching file Makefile.in
Using Plan A...
Hunk #1 FAILED at 515.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.in.rej
done
i must be missing something else in my pretty new Slack150 setup, or missing some run variable(s) unknown to me ?
Code:
root@MyMachine:/tmp/sbo-current/development/gcc5# ls -la
total 74224
drwxr-xr-x   5 root root     4096 Feb 23 10:35 ./
drwxr-xr-x 607 root root    16384 Feb 22 14:27 ../
-rw-r--r--   1 root root     2087 Feb 22 14:27 README
-rw-r--r--   1 root root   164368 Jul  7  2017 antlr-runtime-3.4.jar
-rw-r--r--   1 root root      240 Feb 22 14:27 c89.sh
-rw-r--r--   1 root root      231 Feb 22 14:27 c99.sh
-rw-r--r--   1 root root  1619429 Feb 22 14:39 ecj-4.9.jar
-rw-r--r--   1 root root  1619429 Dec 10  2013 ecj-4.9.jar.1
-rw-r--r--   1 root root      124 Feb 22 14:27 ecj.sh
-rw-r--r--   1 root root   676393 Oct 16  2008 fastjar-0.97.tar.gz
-rw-r-----   1 root root   717984 Feb 23 10:35 fastjar-0.98.tar.gz
drwxr-xr-x   2 root root      193 Feb 22 14:27 fastjar-patches/
-rw-r-----   1 root root 71096120 Oct 10  2017 gcc-5.5.0.tar.xz
-rwxr-xr-x   1 root root    20733 Feb 22 14:27 gcc5.SlackBuild*
-rw-r--r--   1 root root      608 Feb 22 14:27 gcc5.info
-rw-r--r--   1 root root      218 Feb 22 14:27 libgcj-5.pc
drwxr-xr-x   2 root root     4096 Feb 22 14:27 patches/
drwxr-xr-x   2 root root       37 Feb 22 14:27 profile.d/
-rw-r--r--   1 root root      852 Feb 22 14:27 slack-desc.gcc5
Code:
md5sum *z *jar
2659f09c2e43ef8b7d4406321753f1b2  fastjar-0.97.tar.gz
d2d264d343d4d0e1575832cc1023c3bf  fastjar-0.98.tar.gz
0f70424213b4a1113c04ba66ddda0c1f  gcc-5.5.0.tar.xz
0e0318be407e51fdf7ba6777eabfdf73  antlr-runtime-3.4.jar
7339f199ba11c941890031fd9981d7be  ecj-4.9.jar
i could try again on another Slack150 box but that wouldn't change much i guess...

i am also wondering if it's worth all the effort of all parties involved here - in case something like the python-based stapler seems to do the same job as pdftk has done in the past ? in general i like to finish things and not give up easily but in the case of pdftk we may deal with the ancient java genes of a dinosaur...?
 
Old 02-23-2022, 12:49 PM   #14
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
pisti --

Hmmm, yes, I am not much of a giver-upper either

This is odd: The output from configure from your SlackBuild Session says you've already got gcc5 but that it cannot make executables ????
Quote:
Code:
checking whether make sets $(MAKE)... yes
checking for gcc... gcc-5
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
What's up with that ?

Are you running a Pure-D, Full-Install Slackware 15.0 System ?

Is it a new install or did you upgrade an older version of Slackware ?

What does this `ls -la |grep -i gcc` command show ?

Code:
ls -la /var/lib/pkgtools/packages |grep -i gcc
Just to be sure nothing has broken recently, I reran the gcc5.SlackBuild in a freshly populated gcc5 SlackBuild directory

It worked.

However, I have MultiLib installed and Alien Bob says in the gcc5 README that if the gcc5.SlackBuild detects MultiLib installation then it will build a MultiLib gcc5.

Digging around in Eric's gcc5.SlackBuild script a bit, I saw how to disable MultiLib, so ...

I backed up gcc5.SlackBuild as gcc5~01.SlackBuild and I turned off MULTILIB and set GCC_ARCHOPTS="--disable-multilib"

These are the diffs:
Code:
[root@kjhlt7 gcc5-SBo]# diff -Naur gcc5~01.SlackBuild gcc5.SlackBuild

--- gcc5~01.SlackBuild  2022-02-12 09:33:11.049135347 -0600
+++ gcc5.SlackBuild     2022-02-23 12:33:53.767891795 -0600
@@ -75,9 +75,15 @@
 
 if [ "$ARCH" = "x86_64" ]; then
   if [ -f /usr/lib/libc.a ]; then
-    # If we find a 32bit C library on 64bit Slackware, assume multilib:
-    GCC_ARCHOPTS="--enable-multilib"
-    MULTILIB="YES"
+  # # If we find a 32bit C library on 64bit Slackware, assume multilib:
+  # GCC_ARCHOPTS="--enable-multilib"
+  # MULTILIB="YES"
+
+    # kjh was here
+
+    GCC_ARCHOPTS="--disable-multilib"
+    MULTILIB="NO"
+
   else
     GCC_ARCHOPTS="--disable-multilib"
     MULTILIB="NO"
Then I reran the gcc5.SlackBuild like this:

Code:
chmod 755 gcc5.SlackBuild

./gcc5.SlackBuild 2>&1 |tee gcc5.SlackBuild.log
It's still running but so far there are no real errors ...

-- kjh

P.S. The 64-bit gcc5.SlackBuild Session just now finished without errors:
Code:
[root@kjhlt7 gcc5-SBo]# head -5 gcc5.SlackBuild.log && echo "<<<snip>>>" && tail -5 gcc5.SlackBuild.log

Building these compilers: c,c++,java
gcc-5.5.0/
gcc-5.5.0/libbacktrace/
gcc-5.5.0/libbacktrace/Makefile.am
gcc-5.5.0/libbacktrace/stest.c
<<<snip>>>
usr/share/java/libgcj-tools-5.5.0.jar
WARNING:  zero length file usr/doc/gcc-5.5.0/gcc/DEV-PHASE

Slackware package /tmp/gcc5-5.5.0-x86_64-1_SBo.tgz created.

Last edited by kjhambrick; 02-23-2022 at 01:04 PM. Reason: gcc5.SlackBuild finished
 
Old 02-23-2022, 01:21 PM   #15
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
hello again, kjhambrick !

yes, in this particular scenario (and in general on most of my machines) i use a full and complete Slack150 install, from scratch on an empty drive.

nop, no gcc5 installed (yet) - as no gcc5 package created so far :
Code:
ls -la /var/lib/pkgtools/packages |grep -i gcc
-rw-r--r-- 1 root root   51605 Feb  8 06:57 gcc-11.2.0-x86_64-2
-rw-r--r-- 1 root root    1242 Feb  8 06:57 gcc-brig-11.2.0-x86_64-2
-rw-r--r-- 1 root root   45199 Feb  8 06:57 gcc-g++-11.2.0-x86_64-2
-rw-r--r-- 1 root root   55633 Feb  8 06:57 gcc-gdc-11.2.0-x86_64-2
-rw-r--r-- 1 root root    2338 Feb  8 06:57 gcc-gfortran-11.2.0-x86_64-2
-rw-r--r-- 1 root root  162284 Feb  8 06:57 gcc-gnat-11.2.0-x86_64-2
-rw-r--r-- 1 root root   12279 Feb  8 06:57 gcc-go-11.2.0-x86_64-2
-rw-r--r-- 1 root root    2300 Feb  8 06:57 gcc-objc-11.2.0-x86_64-2
-rw-r--r-- 1 root root     786 Feb  8 07:03 gccmakedep-1.0.3-noarch-4
here some subdirs under /tmp/SBo on this pretty new machine :
Code:
ls -lrt /tmp/SBo/
total 44
drwxr-xr-x  2 root root   102 Feb 10 16:24 google-chrome/
drwxr-xr-x  2 1016  1016  167 Feb 11 12:55 slpkg/
drwxr-xr-x 11 root root  4096 Feb 11 12:56 slpkg-3.9.1/
drwxr-xr-x  5 root root    43 Feb 11 12:56 package-slpkg/
drwxr-xr-x 18 root root  4096 Feb 11 12:58 guile-1.8.8/
drwxr-xr-x  4 root root    32 Feb 11 12:59 package-guile1.8/
drwxr-xr-x  2 1016 users  170 Feb 11 13:03 xbindkeys/
drwxr-xr-x  3 root root  4096 Feb 11 13:03 xbindkeys-1.8.7/
drwxr-xr-x  4 root root    32 Feb 11 13:03 package-xbindkeys/
drwxr-xr-x  2 1016  1016  151 Feb 11 13:04 ninja/
drwxr-xr-x  7 root root   332 Feb 11 13:05 ninja-1.10.2/
drwxr-xr-x  4 root root    32 Feb 11 13:05 package-ninja/
drwxr-xr-x  2 1016  1016  185 Feb 11 13:07 libxkbcommon/
drwxr-xr-x 11 root root  4096 Feb 11 13:07 libxkbcommon-1.2.1/
drwxr-xr-x  4 root root    32 Feb 11 13:07 package-libxkbcommon/
drwxr-xr-x  2 1016  1016  167 Feb 11 13:10 xdotool/
drwxr-xr-x  5 root root  4096 Feb 11 13:11 xdotool-3.20160805.1/
drwxr-xr-x  4 root root    32 Feb 11 13:11 package-xdotool/
drwxr-xr-x  2 1016  1016  146 Feb 11 13:13 xosd/
drwxr-xr-x  7 root root  4096 Feb 11 13:13 xosd-2.2.14/
drwxr-xr-x  4 root root    32 Feb 11 13:13 package-xosd/
drwxr-xr-x  2 1016  1016  165 Feb 11 16:12 sboui/
drwxr-xr-x  2 1016  1016  201 Feb 11 16:13 libconfig/
drwxr-xr-x 13 root root  4096 Feb 11 16:13 libconfig-1.7.2/
drwxr-xr-x  4 root root    32 Feb 11 16:13 package-libconfig/
drwxr-xr-x 10 root root   249 Feb 11 16:13 sboui-2.1/
drwxr-xr-x  5 root root    43 Feb 11 16:14 package-sboui/
drwxr-xr-x  2 1016  1016  209 Feb 21 12:21 paps/
drwxr-xr-x  2 1016  1016  194 Feb 21 12:45 pdftk/
drwxr-xr-x  2 root root     6 Feb 21 12:58 package-pdftk/
drwxr-xr-x  5 root root   153 Feb 21 12:58 pdftk-2.02-dist/
drwxr-xr-x  4 root root    32 Feb 23 11:28 package-gcc5/
drwxr-xr-x 38 root root  4096 Feb 23 11:28 gcc-5.5.0/
drwxr-xr-x  4 root root  4096 Feb 23 11:31 fastjar-0.98/
drwxr-xr-x  7 root root  4096 Feb 23 13:12 paps-0.7.1/
drwxr-xr-x  4 root root    32 Feb 23 13:12 package-paps/
...where it seems that we have filled up a bit the gcc5 subdirectory :
Code:
ls -lrt /tmp/SBo/gcc-5.5.0/
total 13620
-rwxr-xr-x  1 root root    2179 Jul 22  2000 mkdep
-rw-r--r--  1 root root   38475 Jul  4  2003 ABOUT-NLS
....
drwxr-xr-x  5 root root    4096 Oct 10  2017 libquadmath/
drwxr-xr-x  4 root root    4096 Oct 10  2017 libitm/
-rw-r--r--  1 root root 7496911 Oct 10  2017 MD5SUMS
-rw-r--r--  1 root root 1619429 Feb 23 11:28 ecj.jar
drwxr-xr-x 19 root root   24576 Feb 23 11:28 gcc/
does this help further ?

btw, i didn't use multilib for years, last time it was to make Acroread run. do you suggest i play with the -disable-multilib feature ?
 
  


Reply



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 libgnomeui in slackware-current USUARIONUEVO Slackware 4 09-03-2015 06:29 PM
[SOLVED] non building packages from sources in Slackware-current nobodino Slackware 8 06-26-2015 11:25 AM
[SOLVED] Help building mumble 1.2.2 on Slackware -current 64 D1ver Slackware 12 01-10-2011 09:33 PM
[SOLVED] pdftk for Slackware64-current. Martinezio Slackware 30 11-23-2009 07:10 AM
errors building kernel 2.6.29-1 in slackware-current about not defined BITS_PER_LONG leptom Slackware 6 04-11-2009 07:32 PM

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

All times are GMT -5. The time now is 09: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
Open Source Consulting | Domain Registration