LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-23-2021, 03:33 PM   #1
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
Post qtractor compile error with current (15.0 RC1)


Hello there

I start to migrating to slackware-15.0 RC1 and checking some software. I can't compile qtractor-0.9.24

error is:
Code:
/usr/bin/ld: .obj/qtractorPlugin.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: /lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:923: qtractor] Error 1
used this SlackBuild.

Added qt5 dir (success) and tried to add -ldl (fail).

Code:
CMAKE_DL_LIBS="-ldl" \ # 1st attempt
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  LIBS=-ldl \           # 2nd attempt
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --with-qt=/usr/lib${LIBDIRSUFFIX}/qt5 \ # success
  --build=$ARCH-slackware-linux
Dependencies are installed (jack and ladspa_sdk). But the problem is somewhere else.

Maybe useful links CMAKE_DL_LIBS, set.

Funny thing. After SlackBuild fails I edited `src/Makefile` (unavailable before `make`) to add after `-lpthread` the `-ldl` and qtractor executable is created!

But what is the right option for a proper SlackBuild?

Last edited by ludist; 11-23-2021 at 04:21 PM. Reason: Funny Thing
 
Old 11-23-2021, 06:06 PM   #2
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
fwiw qtractor-0.9.23 from ponce's SBo-git builds fine on RC2

see also: https://stackoverflow.com/questions/...ssing#54019624
 
Old 11-23-2021, 11:35 PM   #3
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 21
Ponce SBO-git is obsolete

In reality Ponce current Slackbuild is the same with SBos and don't compile here.

Maybe I have wrong ENV values?

This seems to work. Will re-check in a few hours.
Code:
mkdir build; cd build
cmake ../
 
Old 11-24-2021, 12:34 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
I haven't tried the switch to cmake but

Code:
--- ./qtractor.SlackBuild.orig	2021-11-23 07:03:23.260480000 +0100
+++ ./qtractor.SlackBuild	2021-11-24 07:32:38.858765000 +0100
@@ -79,6 +79,7 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+LDFLAGS="-L/lib$LIBDIRSUFFIX -L/usr/lib$LIBDIRSUFFIX -ldl" \
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
I'll fix it in the repository, thanks for the report.
 
1 members found this post helpful.
Old 11-24-2021, 07:39 AM   #5
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 21
@ponce thank you.

With your flags (to my surprise) `--with-qt=/usr/lib${LIBDIRSUFFIX}/qt5` is not needed (!).

cmake also works. Here the added commands. If you want a PR inform me.
Code:
 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

mkdir build
cd build
cmake ../ \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_MANDIR="man" \
    -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
    -DBUILD_SHARED_LIBS:BOOL=ON

make install DESTDIR=$PKG

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

cd $TMP/$PRGNAM-$VERSION
 
  


Reply

Tags
linking, qtractor



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] slackware 14.0 qtractor compile error dumdadum Slackware 0 01-28-2014 03:44 AM
Qtractor hangs when MIDI Master Out is connected to MIDI Master In. phenyloxime Linux - Software 0 11-26-2012 06:44 AM
qtractor jack simple question dont_know_my_login Linux - Software 1 11-24-2012 09:41 PM
[SOLVED] Qtractor can't find dssi-vst splintercdo Linux - Software 1 08-31-2011 05:36 PM
LXer: How to record a multitrack song using Qtractor LXer Syndicated Linux News 0 01-28-2008 03:00 PM

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

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