Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701030 - media-libs/simage-1.7.1-r1 : /.../ld: cannot find -lsndfile
Summary: media-libs/simage-1.7.1-r1 : /.../ld: cannot find -lsndfile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-23 20:17 UTC by Toralf Förster
Modified: 2019-12-16 09:34 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.65 KB, text/plain)
2019-11-23 20:17 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,11.62 KB, text/plain)
2019-11-23 20:17 UTC, Toralf Förster
Details
environment (environment,87.83 KB, text/plain)
2019-11-23 20:17 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.19 KB, application/x-bzip)
2019-11-23 20:17 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.15 KB, application/x-bzip)
2019-11-23 20:17 UTC, Toralf Förster
Details
media-libs:simage-1.7.1-r1:20191122-062742.log (media-libs:simage-1.7.1-r1:20191122-062742.log,45.92 KB, text/plain)
2019-11-23 20:17 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.22 KB, application/x-bzip)
2019-11-23 20:18 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 2019-11-23 20:17:42 UTC
FAILED: bin/simage-read-line-test 
: && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed    -rdynamic CMakeFiles/simage-read-line-test.dir/examples/simage-read-line-test.c.o  -o bin/simage-read-line-test  -Wl,-rpath,/var/tmp/portage/media-libs/simage-1.7.1-r1/work/simage-1.7.1_build/lib lib/libsimage.so.1.7.1a -lsndfile -lm && :
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lsndfile
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: media-libs/simage-1.7.1-r1::gentoo failed (compile phase):

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-libressl-20191121-201237

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)





repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 22 Nov 2019 05:06:08 +0000

emerge -qpvO media-libs/simage
[ebuild  N    ] media-libs/simage-1.7.1-r1  USE="-debug -gif -jpeg -png -qt5 -sndfile -tiff -vorbis"
Comment 1 Toralf Förster gentoo-dev 2019-11-23 20:17:45 UTC
Created attachment 597310 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-11-23 20:17:47 UTC
Created attachment 597312 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-11-23 20:17:50 UTC
Created attachment 597314 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-11-23 20:17:53 UTC
Created attachment 597316 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-11-23 20:17:56 UTC
Created attachment 597318 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-11-23 20:17:59 UTC
Created attachment 597320 [details]
media-libs:simage-1.7.1-r1:20191122-062742.log
Comment 7 Toralf Förster gentoo-dev 2019-11-23 20:18:01 UTC
Created attachment 597322 [details]
temp.tbz2
Comment 8 Bernd 2019-11-24 22:20:05 UTC
Came upon this issue today. 
To me it looks like this happens due to the patch from ${FILESDIR}/simage-1.7.1-fix-examples-linking.patch for bug #698882 which introduces linking against libsndfile, while it doesn't RDEPEND on libsndfile unconditionally.
Comment 9 Larry the Git Cow gentoo-dev 2019-12-16 09:34:14 UTC
The bug has been closed via the following commit(s):

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

commit 1e5e9468b40041e840c3018a2a930c0562018490
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2019-12-16 09:33:50 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2019-12-16 09:34:06 +0000

    media-libs/simage-1.7.1-r1: fixed examples linking
    
    examples need to link against libsndfile unconditionally so either we could
    make the dep unconditional or not build the examples. i chose the latter way.
    btw, examples are not installed anyway, they are just compiled.
    
    Closes: https://bugs.gentoo.org/701030
    Package-Manager: Portage-2.3.82, Repoman-2.3.20
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../files/simage-1.7.1-disable-examples.patch      | 44 ++++++++++++++++++++++
 .../files/simage-1.7.1-fix-examples-linking.patch  | 22 -----------
 media-libs/simage/simage-1.7.1-r1.ebuild           |  5 ++-
 3 files changed, 48 insertions(+), 23 deletions(-)