Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687068 - =media-gfx/yafaray-3.3.0-r1: ../yafraycore/libyafaray_v3_core.so: error: undefined reference to 'pthread_create'
Summary: =media-gfx/yafaray-3.3.0-r1: ../yafraycore/libyafaray_v3_core.so: error: unde...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-05-31 13:06 UTC by Bernd
Modified: 2019-06-12 13:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
yafaray-3.3.0-r1:20190531-121148.log (yafaray-3.3.0-r1:20190531-121148.log,222.56 KB, text/x-log)
2019-05-31 13:06 UTC, Bernd
Details
emerge-info-yafaray-3.3.0-r1.txt (emerge-info-yafaray-3.3.0-r1.txt,14.53 KB, text/plain)
2019-05-31 13:08 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2019-05-31 13:06:35 UTC
Created attachment 578138 [details]
yafaray-3.3.0-r1:20190531-121148.log

When rebuild some packages for python3_7 support, I found yafaray to no longer link all binaries successfully:

[ 99%] Linking CXX executable yafaray-xml
cd /var/tmp/portage/media-gfx/yafaray-3.3.0-r1/work/yafaray-3.3.0_build/src/xml_loader && /usr/bin/cmake -E cmake_link_script CMakeFiles/yafaray-xml.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -O2 -pipe -march=bdver2 -fstack-protector-strong -fstack-check  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/yafaray-xml.dir/xml-loader.cc.o  -o yafaray-xml ../yafraycore/libyafaray_v3_core.so -ldl -lImath -lIlmImf -lIex -lHalf -lz -lIlmThread -lxml2 -lfreetype -lboost_system-mt -lboost_filesystem-mt -lboost_serialization-mt -lboost_locale-mt /usr/lib64/libopencv_photo.so.3.4.2 /usr/lib64/libopencv_imgproc.so.3.4.2 /usr/lib64/libopencv_core.so.3.4.2 
../yafraycore/libyafaray_v3_core.so: error: undefined reference to 'pthread_create'
collect2: error: ld returned 1 exit status

The issue has already been reported upstream at https://github.com/YafaRay/Core/issues/113 for FreeBSD machines.

I'm going to prepare a patch for it and also bump the package to EAPI=7 while at it.
Comment 1 Bernd 2019-05-31 13:08:24 UTC
Created attachment 578140 [details]
emerge-info-yafaray-3.3.0-r1.txt

emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2019-06-12 13:39:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=649fe89d3ad950852bfb145ef01a290a682f39a3

commit 649fe89d3ad950852bfb145ef01a290a682f39a3
Author:     Bernd Waibel <waebbl@gmail.com>
AuthorDate: 2019-05-31 19:57:54 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-06-12 13:32:21 +0000

    media-gfx/yafaray: bump to EAPI 7
    
    Also fixes an issue, where some binaries didn't link successfully,
    due to missing pthread (see https://github.com/YafaRay/Core/issues/113)
    
    Closes: https://bugs.gentoo.org/687068
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Bernd Waibel <waebbl@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/12144
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/yafaray/yafaray-3.3.0-r2.ebuild | 111 ++++++++++++++++++++++++++++++
 1 file changed, 111 insertions(+)