Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Weird behavior with linker in ebuild.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 134

PostPosted: Sat Jun 30, 2018 11:03 pm    Post subject: [SOLVED] Weird behavior with linker in ebuild. Reply with quote

I'm making an ebuild for a package and make spits out these errors:

Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: ssr_vbap.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1060: ssr-vbap] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: ssr_brs.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1048: ssr-brs] Error 1
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: ssr_wfs.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1064: ssr-wfs] Error 1
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: ssr_binaural.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


But the package builds fine outside of an ebuild. Does portage do anything weird regarding the linker or pthreads?


Last edited by Gooberpatrol66 on Mon Jul 02, 2018 1:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24340
Location: here

PostPosted: Sun Jul 01, 2018 12:04 pm    Post subject: Reply with quote

You can post ebuild and specific what's the program?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 134

PostPosted: Sun Jul 01, 2018 10:55 pm    Post subject: Reply with quote

Yeah, sure.


Code:
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# requires proaudio overlay
EAPI=6
inherit git-r3

DESCRIPTION="A tool for real-time spatial audio reproduction providing a variety of rendering algorithms, e.g. Wave Field Synthesis, Higher-Order Ambisonics and binaural techniques."
HOMEPAGE="http://spatialaudio.net/ssr/"
#SRC_URI="https://bitbucket.org/spatialaudio/ssr/downloads/ssr-0.4.2.tar.gz"
EGIT_BRANCH="master"
EGIT_REPO_URI="https://github.com/SoundScapeRenderer/ssr.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
DEPEND="dev-cpp/asio
      dev-qt/qtopengl:5
      media-sound/ecasound
      dev-libs/libxml2
      sci-libs/fftw:3.0
      media-libs/libsndfile
      virtual/jack
      dev-util/pkgconfig
      sys-devel/libtool"
RDEPEND=${DEPEND}

src_configure() {
   ./autogen.sh
   ./configure
}

src_compile() {
   emake

}
src_install() {
   emake DESTDIR="${D}" install
}


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24340
Location: here

PostPosted: Mon Jul 02, 2018 6:13 am    Post subject: Reply with quote

I modified the ebuild and in my system seems to compile (I deisbled gui, ecasound and ip-interface for test ebuild)
Code:
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# requires proaudio overlay
EAPI=6
inherit autotools git-r3

DESCRIPTION="A tool for real-time spatial audio reproduction providing a variety of rendering algorithms, e.g. Wave Field Synthesis, Higher-Order Ambisonics and binaural techniques."
HOMEPAGE="http://spatialaudio.net/ssr/"
#SRC_URI="https://bitbucket.org/spatialaudio/ssr/downloads/ssr-0.4.2.tar.gz"
EGIT_BRANCH="master"
EGIT_REPO_URI="https://github.com/SoundScapeRenderer/ssr.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
DEPEND="dev-cpp/asio
      dev-qt/qtopengl:5
      media-sound/ecasound
      dev-libs/libxml2
      sci-libs/fftw:3.0
      media-libs/libsndfile
      virtual/jack
      dev-util/pkgconfig
      sys-devel/libtool"
RDEPEND=${DEPEND}

src_prepare() {
   eapply_user
   eautoreconf
}

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 134

PostPosted: Mon Jul 02, 2018 1:57 pm    Post subject: Reply with quote

Solved it with
Code:
./configure LIBS=-lpthread
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum