LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-21-2021, 04:03 AM   #3406
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,942

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Lockywolf View Post
Indeed, but isn't Slackware's principle "keep it as close to the origin as possible"?
what more "close to the origin" that taking the patch from upstream? :-)
Quote:
At least, if things go wrong, chances are they are going to go wrong identically on 14.2 and on current.
stable and current usually diverge pretty soon and as of now, many years of development apart, there are *A LOT* of differences so *A LOT* of things behave differently.

but look, nagios above is the counter-example of what I was saying before: to fix it as upstream does I would have to update it to a newer version and together with it the stuff that depends on it.
as I am not the maintainer of nagios and I'm not using it ATM I left this burden to his maintainer (sorry, Mario!) and decided to introduce a workaround flag.

in the end what goes and what doesn't in this repository is also a matter of personal free time availability... but consider that you can still fork it and change whatever you want!
 
1 members found this post helpful.
Old 01-21-2021, 10:17 PM   #3407
Dan Suson
Member
 
Registered: Aug 2007
Location: Valparaiso, IN
Distribution: Slackware
Posts: 64

Rep: Reputation: 3
Quote:
Originally Posted by ponce View Post
Hi Dan,

I just tested building GraphicsMagick on a clean and full installation of the latest Slackware current and everything went fine: if I were you I would try reinstalling glibc but if this won't solve please open a dedicated topic for this issue.
Quote:
Originally Posted by Dan Suson View Post
GraphicsMagic does not build. It is a very strange compilation error:

Code:
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lGraphicsMagick
Generating a Unix-style Makefile
Writing Makefile for Graphics::Magick
Writing MYMETA.yml and MYMETA.json
cp Magick.pm blib/lib/Graphics/Magick.pm
AutoSplitting blib/lib/Graphics/Magick.pm (blib/lib/auto/Graphics/Magick)
Running Mkbootstrap for Magick ()
chmod 644 "Magick.bs"
"/usr/bin/perl5.32.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- Magick.bs blib/arch/auto/Graphics/Magick/Magick.bs 644
"/usr/bin/perl5.32.0" "/usr/share/perl5/ExtUtils/xsubpp"  -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/tmp/SBo/GraphicsMagick-1.3.35/PerlMagick/typemap'  Magick.xs > Magick.xsc
mv Magick.xsc Magick.c
gcc -c  -I../ -I.. -I/usr/include/freetype2 -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -fopenmp -O2 -fPIC -Wall -pthread -O2 -fPIC   -DVERSION=\"1.3.35\" -DXS_VERSION=\"1.3.35\" -fPIC "-I/usr/lib64/perl5/CORE"  -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
In file included from Magick.xs:57:
/usr/lib64/perl5/CORE/perl.h:1363:12: fatal error: netdb.h: No such file or directory
 1363 | #  include <netdb.h>
      |            ^~~~~~~~~
compilation terminated.
When I tried to follow this, netdb.h is a part of glibc and perl.h is coming from the perl 5.32.0 package. I'm not sure how to fix this! Any help would be appreciated.
That fixed it. Thanks!
 
Old 01-22-2021, 05:13 AM   #3408
slacknedo
LQ Newbie
 
Registered: Apr 2019
Distribution: slackware64-current
Posts: 21

Rep: Reputation: 0
error compiling LibreOffice-7.0.3.1

i tried to compile LibreOffice from sbo but after about 50 minute of compilation give me error
Code:
[build CXX] sc/source/ui/view/waitoff.cxx
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [/tmp/SBo/libreoffice-7.0.3.1/solenv/gbuild/LinkTarget.mk:301: /tmp/SBo/libreoffice-7.0.3.1/workdir/CxxObject/sc/source/ui/view/viewfun2.o] Error 1
make[1]: *** Deleting file '/tmp/SBo/libreoffice-7.0.3.1/workdir/CxxObject/sc/source/ui/view/viewfun2.o'
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:281: build] Error 2
Failures:
  LibreOffice: LibreOffice.SlackBuild return non-zero
i use jdk14 with a modification on slackbuild and for 3 upgrade compiling works well.
https://www.linuxquestions.org/quest...on-4175682029/

I need to install jdk11 now?
 
Old 01-22-2021, 05:28 AM   #3409
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,942

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slacknedo View Post
i tried to compile LibreOffice from sbo but after about 50 minute of compilation give me error
Code:
[build CXX] sc/source/ui/view/waitoff.cxx
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [/tmp/SBo/libreoffice-7.0.3.1/solenv/gbuild/LinkTarget.mk:301: /tmp/SBo/libreoffice-7.0.3.1/workdir/CxxObject/sc/source/ui/view/viewfun2.o] Error 1
make[1]: *** Deleting file '/tmp/SBo/libreoffice-7.0.3.1/workdir/CxxObject/sc/source/ui/view/viewfun2.o'
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:281: build] Error 2
Failures:
  LibreOffice: LibreOffice.SlackBuild return non-zero
i use jdk14 with a modification on slackbuild and for 3 upgrade compiling works well.
https://www.linuxquestions.org/quest...on-4175682029/

I need to install jdk11 now?
maybe, as the SlackBuild is tested only with that version of the jdk, but, as the build proces seems to be killed, maybe your error might be related to the resources of the machine you are trying to build LibreOffice on: you might have exhausted your RAM so if you don't have other to allocate you can try adding additional swap space or reduce the number of parallel jobs.

also you might want to keep the discussion in the topic you linked, where the maintainer of the LibreOffice SlackBuild can surely give you a better support than mine.

Last edited by ponce; 01-22-2021 at 05:31 AM.
 
Old 01-22-2021, 08:37 AM   #3410
slacknedo
LQ Newbie
 
Registered: Apr 2019
Distribution: slackware64-current
Posts: 21

Rep: Reputation: 0
Quote:
maybe, as the SlackBuild is tested only with that version of the jdk, but, as the build proces seems to be killed, maybe your error might be related to the resources of the machine you are trying to build LibreOffice on: you might have exhausted your RAM so if you don't have other to allocate you can try adding additional swap space or reduce the number of parallel jobs.
ok thanks, this time i gave 2gb of swap and after 1 hour i got this error
Code:
Bootstrap exception 'component context fails to supply service com.sun.star.ucb.UniversalContentBroker of type com.sun.star.ucb.XUniversalContentBroker /tmp/SBo/libreoffice-7.0.3.1/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/ucb/UniversalContentBroker.hpp:52'
Bootstrap exception 'component context fails to supply service com.sun.star.ucb.UniversalContentBroker of type com.sun.star.ucb.XUniversalContentBroker /tmp/SBo/libreoffice-7.0.3.1/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/ucb/UniversalContentBroker.hpp:52'
make[1]: *** [/tmp/SBo/libreoffice-7.0.3.1/solenv/gbuild/Gallery.mk:56: /tmp/SBo/libreoffice-7.0.3.1/workdir/Gallery/backgrounds.done] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/tmp/SBo/libreoffice-7.0.3.1/solenv/gbuild/Gallery.mk:56: /tmp/SBo/libreoffice-7.0.3.1/workdir/Gallery/sounds.done] Error 1
make: *** [Makefile:281: build] Error 2
Failures:
  LibreOffice: LibreOffice.SlackBuild return non-zero

Quote:
also you might want to keep the discussion in the topic you linked, where the maintainer of the LibreOffice SlackBuild can surely give you a better support than mine.
but is already mark as solved, the title maybe can cause confusion because is not a problem in configure.

maybe i need to reduce the parallelo job?
 
Old 01-22-2021, 09:49 AM   #3411
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,635

Rep: Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687
libtorrent-rasterbar 1.2.12

Tried compile on my system, then on a clean install of Slackware64 using the SlackBuild from your -current repo, fails at the same point.
Code:
make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-1.2.12/bindings/python'
/usr/bin/python3 ./setup.py build
running build
running build_ext
project-config.jam contents:
import feature ;
feature.feature libtorrent-python : on ;
using python : 3.9 : "/usr/bin/python3" : "/usr/include/python3.9" "/usr/include/python3.9" : : <libtorrent-python>on : ".cpython-39-x86_64-linux-gnu" ;

b2 release address-model=64 -j1 libtorrent-link=prebuilt cxxflags="-std=c++14" linkflags="-L/tmp/SBo/libtorrent-rasterbar-1.2.12/bindings/python/../../src/.libs" linkflags="-L/usr/lib64" linkflags="-L/usr/lib64" libtorrent-python=on python=3.9 python-install-path=/tmp/SBo/libtorrent-rasterbar-1.2.12/bindings/python/build/lib.linux-x86_64-3.9 install_module
error: [Errno 2] No such file or directory: 'b2': 'b2'
make[2]: *** [Makefile:539: all-local] Error 1
make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/libtorrent-rasterbar-1.2.12/bindings/python'
I was unable to find or figure out a fix.

There was in interesting post here but everything I tried failed.
https://github.com/arvidn/libtorrent/issues/5858

I decide to to go with cmake here is my configure compile section I replace the autotools section with. Only other changes to the SlackBuild was to VERSION and I commented out the fix just after the fix perms part.
Code:
mkdir -p build
cd build
  cmake .. \
    -DCMAKE_C_FLAGS_RELEASE="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS_RELEASE="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
    -DBUILD_SHARED_LIBS=on \
    -DCMAKE_BUILD_TYPE=Release \
    -Dpython-bindings=on \
    -Dpython-egg-info=on \
    -Dbuild_examples=$EXAMPLES

  make
  make install/strip DESTDIR=$PKG
cd -
The build completes after using the above. I got the last three configure options from the tarballs CMakeLists.txt. Not sure is the python-egg-info is really needed but it's in the 1.2.11 package to I included it. These is another option "python-install-system-dir "Install python bindings to the system installation directory rather than the CMake installation prefix" OFF)" I left out.

Last edited by chrisretusn; 01-22-2021 at 09:51 AM.
 
Old 01-22-2021, 11:05 AM   #3412
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,942

Original Poster
Rep: Reputation: Disabled
this is something that you should actually discuss with the maintainer as the version we have in the repository still build and work fine.

it seems that the new 1.2.12 dropped python2 support but, yes, on current it's possible to build it using the boost python3 library.
 
Old 01-22-2021, 10:03 PM   #3413
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,631

Rep: Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516
cpulimit not build cause header removed on glibc-2.32

Quote:
cpulimit.c:41:10: error fatal: sys/sysctl.h: No existe el fichero o el directorio

PATCH

Quote:
diff --git a/src/cpulimit.c b/src/cpulimit.c
index 50eabea..eba4615 100644
--- a/src/cpulimit.c
+++ b/src/cpulimit.c
@@ -38,12 +38,14 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
+#ifdef __APPLE__
#include <sys/sysctl.h>
+#endif
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/wait.h>

-#ifdef __APPLE__ || __FREEBSD__
+#if defined(__APPLE__) || defined(__FREEBSD__)
#include <libgen.h>
#endif

Last edited by USUARIONUEVO; 01-22-2021 at 10:37 PM.
 
1 members found this post helpful.
Old 01-22-2021, 11:01 PM   #3414
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,631

Rep: Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516
mongo-c-driver not build here.
 
Old 01-23-2021, 01:05 AM   #3415
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,635

Rep: Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687
Quote:
Originally Posted by ponce View Post
this is something that you should actually discuss with the maintainer as the version we have in the repository still build and work fine.

it seems that the new 1.2.12 dropped python2 support but, yes, on current it's possible to build it using the boost python3 library.
Yes it does build just fine with 1.2.11

Okay, I will no longer report issues here with new versions.
 
Old 01-23-2021, 01:16 AM   #3416
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 697

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Quote:
Originally Posted by slacknedo View Post
ok thanks, this time i gave 2gb of swap and after 1 hour i got this error
Code:
Bootstrap exception 'component context fails to supply service com.sun.star.ucb.UniversalContentBroker of type com.sun.star.ucb.XUniversalContentBroker /tmp/SBo/libreoffice-7.0.3.1/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/ucb/UniversalContentBroker.hpp:52'
Bootstrap exception 'component context fails to supply service com.sun.star.ucb.UniversalContentBroker of type com.sun.star.ucb.XUniversalContentBroker /tmp/SBo/libreoffice-7.0.3.1/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/ucb/UniversalContentBroker.hpp:52'
make[1]: *** [/tmp/SBo/libreoffice-7.0.3.1/solenv/gbuild/Gallery.mk:56: /tmp/SBo/libreoffice-7.0.3.1/workdir/Gallery/backgrounds.done] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/tmp/SBo/libreoffice-7.0.3.1/solenv/gbuild/Gallery.mk:56: /tmp/SBo/libreoffice-7.0.3.1/workdir/Gallery/sounds.done] Error 1
make: *** [Makefile:281: build] Error 2
Failures:
  LibreOffice: LibreOffice.SlackBuild return non-zero


but is already mark as solved, the title maybe can cause confusion because is not a problem in configure.

maybe i need to reduce the parallelo job?
jdk11 is the supported jdk because it is an LTS release. More recent versions seem to change very often - to the extent that I am unable to check your exact problem because jdk14 is no longer available to download. However I thought I would try it with jdk15. Unfortunately the SlackBuild for jdk15 is out of date - specifying version 15.0.1 which is also no longer available. It's not a big deal to change it to the available version 15.0.2 - I just mention it to point out what a moving target these non-LTS jdk releases are. It's also why I'm not keen to test LO builds, which are quite big, against every new jdk that becomes available. Nevertheless, those jdk's that I have tested all seem to be OK for building LO.

Anyway with the necessary changes for using jdk15 instead of jdk11, LibreOffice builds fine here in a clean and up to date -current VM. Due to past problems similar to what you are seeing, the VM has a fairly high specification - 60G disk space and 4G swap. I collect some usage stats of my builds which show (if I interpret the numbers correctly) that just over 10G of disk space and about 2.1G of RAM were used for the build.

chris

Last edited by chris.willing; 01-23-2021 at 02:53 AM. Reason: fixed disk & RAM usage
 
Old 01-23-2021, 01:25 AM   #3417
aherrys
Member
 
Registered: Jul 2003
Posts: 84

Rep: Reputation: 15
galculator not compiling on latest current

Hi, Sorry to report the galculcator seems not compiling on the latest current. Thanks

Quote:
libtool: link: gcc -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -fPIC -Wall -o galculator galculator-main.o galculator-math_functions.o galculator-display.o galculator-general_functions.o galculator-calc_basic.o galculator-config_file.o galculator-callbacks.o galculator-ui.o galculator-flex_parser.o -Wl,--export-dynamic -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lm -lquadmath -pthread
/usr/bin/ld: galculator-config_file.o.bss+0x0): multiple definition of `prefs'; galculator-main.o.bss+0x40): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:470: galculator] Error 1
make[2]: Leaving directory '/tmp/SBo/galculator-2.1.4/src'
make[1]: *** [Makefile:524: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/galculator-2.1.4'
make: *** [Makefile:412: all] Error 2
 
Old 01-23-2021, 05:05 AM   #3418
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,942

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
cpulimit not build cause header removed on glibc-2.32

PATCH
Quote:
Originally Posted by USUARIONUEVO View Post
mongo-c-driver not build here.
Quote:
Originally Posted by aherrys View Post
Hi, Sorry to report the galculcator seems not compiling on the latest current. Thanks
thanks for the reports: all fixed!
they will go in at the next merge (very soon).
 
1 members found this post helpful.
Old 01-23-2021, 11:41 AM   #3419
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 1,631

Rep: Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516
Hi , transcode not build , archlinux have specific patches to gcc10 and glibc-2.32

https://github.com/archlinux/svntogi...ranscode/trunk

The only way i can build this , is exactly as archlinux do ,

I use their patches , i remove ours , and i copy options to build ... only way i found to build is copy , how archlinux builds , using same patches and flags.

ALL my errors build point to some v4l package related.

Last edited by USUARIONUEVO; 01-23-2021 at 12:01 PM.
 
Old 01-23-2021, 11:54 AM   #3420
slacknedo
LQ Newbie
 
Registered: Apr 2019
Distribution: slackware64-current
Posts: 21

Rep: Reputation: 0
Quote:
Originally Posted by chris.willing View Post
jdk11 is the supported jdk because it is an LTS release. More recent versions seem to change very often - to the extent that I am unable to check your exact problem because jdk14 is no longer available to download. However I thought I would try it with jdk15. Unfortunately the SlackBuild for jdk15 is out of date - specifying version 15.0.1 which is also no longer available. It's not a big deal to change it to the available version 15.0.2 - I just mention it to point out what a moving target these non-LTS jdk releases are. It's also why I'm not keen to test LO builds, which are quite big, against every new jdk that becomes available. Nevertheless, those jdk's that I have tested all seem to be OK for building LO.

Anyway with the necessary changes for using jdk15 instead of jdk11, LibreOffice builds fine here in a clean and up to date -current VM. Due to past problems similar to what you are seeing, the VM has a fairly high specification - 60G disk space and 4G swap. I collect some usage stats of my builds which show (if I interpret the numbers correctly) that just over 10G of disk space and about 2.1G of RAM were used for the build.

chris
thanks to the advice, i don't think is a jdk problem.
i resolve with this post
https://www.linuxquestions.org/quest...297/page2.html

doing

removepkg LibreOffice
unset UNO_PATH
unset URE_BOOTSTRAP
LibreOffice.SlackBuild

and after that compiled successfully, i don't know why this time i had to do unset of this variable. (is wrote even in README)
but for the previous one i never do the unset.
 
  


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 06:58 PM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 02:10 AM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 02:52 PM
Pls help me take my 1st step! verysoon Fedora - Installation 2 12-12-2005 08:49 AM

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

All times are GMT -5. The time now is 08:22 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