Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 808495 - games-strategy/colobot-0.1.12 - sndfile_wrapper.cpp:(.text+<snip>): undefined reference to sf_close (maybe gcc-11 related)
Summary: games-strategy/colobot-0.1.12 - sndfile_wrapper.cpp:(.text+<snip>): undefined...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-15 19:22 UTC by Toralf Förster
Modified: 2021-08-19 07:34 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.18 KB, text/plain)
2021-08-15 19:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,79.06 KB, text/plain)
2021-08-15 19:22 UTC, Toralf Förster
Details
environment (environment,89.83 KB, text/plain)
2021-08-15 19:22 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,24.04 KB, application/x-bzip)
2021-08-15 19:22 UTC, Toralf Förster
Details
games-strategy:colobot-0.1.12:20210815-172220.log (games-strategy:colobot-0.1.12:20210815-172220.log,305.91 KB, text/plain)
2021-08-15 19:22 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.86 KB, application/x-bzip)
2021-08-15 19:22 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,32.74 KB, application/x-bzip)
2021-08-15 19:22 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-08-15 19:22:31 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/libcolobotbase.a(sndfile_wrapper.cpp.o): in function `CSNDFileWrapper::~CSNDFileWrapper()':
sndfile_wrapper.cpp:(.text+0x26): undefined reference to `sf_close'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/libcolobotbase.a(sndfile_wrapper.cpp.o): in function `CSNDFileWrapper::~CSNDFileWrapper()':
sndfile_wrapper.cpp:(.text+0x186): undefined reference to `sf_close'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/libcolobotbase.a(sndfile_wrapper.cpp.o): in function `CSNDFileWrapper::CSNDFileWrapper(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
sndfile_wrapper.cpp:(.text+0x275): undefined reference to `sf_open_virtual'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-j3-20210815-050010

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
The following VMs are available for generation-2:

  HEAD of ::gentoo
commit 7746e730257ec91eb71a6d52511aa21d7877abb2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Aug 15 16:22:07 2021 +0000

    2021-08-15 16:22:06 UTC

emerge -qpvO games-strategy/colobot
[ebuild  N    ] games-strategy/colobot-0.1.12  USE="-devbuild -doc -openal -test -tools"
Comment 1 Toralf Förster gentoo-dev 2021-08-15 19:22:32 UTC
Created attachment 733141 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-15 19:22:34 UTC
Created attachment 733144 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-15 19:22:35 UTC
Created attachment 733147 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-15 19:22:37 UTC
Created attachment 733150 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-15 19:22:38 UTC
Created attachment 733153 [details]
games-strategy:colobot-0.1.12:20210815-172220.log
Comment 6 Toralf Förster gentoo-dev 2021-08-15 19:22:39 UTC
Created attachment 733156 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-08-15 19:22:41 UTC
Created attachment 733159 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-18 23:41:30 UTC
It's only linking against libsndfile if OpenAL is enabled, but it includes files which need libsndfile unconditionally.
Comment 9 Larry the Git Cow gentoo-dev 2021-08-19 07:34:29 UTC
The bug has been closed via the following commit(s):

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

commit b4754d9dc0a17508c6dc37202595ca48aa34ccb1
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-08-19 07:16:23 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-08-19 07:34:12 +0000

    games-strategy/colobot: Fix missing -lsndfile with USE=-openal
    
    Closes: https://bugs.gentoo.org/808495
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 games-strategy/colobot/colobot-0.1.12.ebuild       |  2 ++
 .../files/colobot-0.1.12-sndfile-link.patch        | 40 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)