Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906455 - media-libs/speex-1.2.1-r1[valgrind]: libspeex.so: undefined reference to `VALGRIND_MAKE_READABLE'
Summary: media-libs/speex-1.2.1-r1[valgrind]: libspeex.so: undefined reference to `VAL...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-05-15 14:28 UTC by Andrei Slavoiu
Modified: 2023-05-17 07:13 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,8.51 KB, text/plain)
2023-05-15 14:30 UTC, Andrei Slavoiu
Details
build.log (build.log,119.23 KB, text/plain)
2023-05-15 14:31 UTC, Andrei Slavoiu
Details
Patch for building with current valgrind (speex-1.2.1-valgrind.patch,1.16 KB, patch)
2023-05-15 14:36 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2023-05-15 14:28:55 UTC
Building speex with USE=valgrind fails with:
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: ../libspeex/.libs/libspeex.so: undefined reference to `VALGRIND_MAKE_READABLE'
collect2: error: ld returned 1 exit status


Reproducible: Always
Comment 1 Andrei Slavoiu 2023-05-15 14:30:14 UTC
Created attachment 861731 [details]
emerge --info
Comment 2 Andrei Slavoiu 2023-05-15 14:31:00 UTC
Created attachment 861732 [details]
build.log
Comment 3 Andrei Slavoiu 2023-05-15 14:36:08 UTC
Created attachment 861734 [details, diff]
Patch for building with current valgrind

VALGRIND_MAKE_READABLE has been replaced with  VALGRIND_MAKE_MEM_DEFINED starting with version 3.2 (2006) https://valgrind.org/docs/manual/dist.news.old.html
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-15 16:53:40 UTC
Thank you! Would you mind sending this upstream or would you like me to?
Comment 5 Andrei Slavoiu 2023-05-15 17:20:54 UTC
I'm ok with you sending it upstream, if there still is one.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 03:48:15 UTC
Thanks!
Comment 7 Larry the Git Cow gentoo-dev 2023-05-16 03:56:38 UTC
The bug has been closed via the following commit(s):

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

commit f6baa20f72862687508e23181f49972f8e428a50
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-16 03:55:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-16 03:55:13 +0000

    media-libs/speex: fix valgrind build
    
    Closes: https://bugs.gentoo.org/906455
    Thanks-to: Andrei Slavoiu <ansla80@yahoo.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/speex/files/speex-1.2.1-valgrind.patch | 53 +++++++++++++++++++++++
 media-libs/speex/speex-1.2.1-r1.ebuild            |  1 +
 media-libs/speex/speex-1.2.1.ebuild               |  5 ++-
 3 files changed, 58 insertions(+), 1 deletion(-)
Comment 8 Lars 2023-05-17 06:33:32 UTC
Though I upgraded to media-libs/speex-1.2.1-r1 `emerge media-video/obs-studio` fails with:

/usr/lib64/libspeex.so.1: undefined reference to `VALGRIND_MAKE_READABLE'

Should I report a new bug for media-video/obs-studio?
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-17 06:41:46 UTC
(In reply to Lars from comment #8)
> Though I upgraded to media-libs/speex-1.2.1-r1 `emerge
> media-video/obs-studio` fails with:
> 
> /usr/lib64/libspeex.so.1: undefined reference to `VALGRIND_MAKE_READABLE'
> 
> Should I report a new bug for media-video/obs-studio?

Nah, we can use this bug, I think. Could you rebuild it first just to check? emerge -v1 media-libs/speex.

If that fixes obs for you, I'll revbump then.
Comment 10 Lars 2023-05-17 07:10:55 UTC
(In reply to Sam James from comment #9)
> (In reply to Lars from comment #8)
> > Though I upgraded to media-libs/speex-1.2.1-r1 `emerge
> > media-video/obs-studio` fails with:
> > 
> > /usr/lib64/libspeex.so.1: undefined reference to `VALGRIND_MAKE_READABLE'
> > 
> > Should I report a new bug for media-video/obs-studio?
> 
> Nah, we can use this bug, I think. Could you rebuild it first just to check?
> emerge -v1 media-libs/speex.
> 
> If that fixes obs for you, I'll revbump then.

I just realized that the patch was newer than my last sync. After syncing re-emerging media-libs/speex, emerging media-video/obs-studio succeeded.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-17 07:12:29 UTC
Thank you! I'll revbump now.
Comment 12 Larry the Git Cow gentoo-dev 2023-05-17 07:13:34 UTC
The bug has been closed via the following commit(s):

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

commit b48ebe65007f0d5638b8e6459480de240987c317
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-17 07:12:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-17 07:13:26 +0000

    media-libs/speex: revbump(!) for fixed valgrind patch
    
    Interestingly, the missing definition leaked into VALGRIND_MAKE_READABLE
    because of bfd's defaults :(
    
    Closes: https://bugs.gentoo.org/906455
    Fixes: f6baa20f72862687508e23181f49972f8e428a50
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/speex/{speex-1.2.1-r1.ebuild => speex-1.2.1-r2.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)