Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775602 - media-libs/libdca-0.0.7 x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-version’ when using slibtool
Summary: media-libs/libdca-0.0.7 x86_64-pc-linux-gnu-gcc: error: unrecognized command-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL: https://code.videolan.org/videolan/li...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-12 10:14 UTC by Alessandro Barbieri
Modified: 2021-03-28 18:11 UTC (History)
3 users (show)

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


Attachments
libdca-0.0.7:20210312-101157.log (libdca-0.0.7:20210312-101157.log,19.36 KB, text/plain)
2021-03-12 10:14 UTC, Alessandro Barbieri
Details
Patch fixing typos in libdca/Makefile.am (libdca-slibtool.patch,780 bytes, patch)
2021-03-16 17:41 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-12 10:14:24 UTC
slibtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libdca-0.0.7/work/libdca-0.0.7/libdca -I.. -I/var/tmp/portage/media-libs/libdca-0.0.7/work/libdca-0.0.7/include -D_FIL
E_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -c /var/tmp/portage/media-libs/
libdca-0.0.7/work/libdca-0.0.7/libdca/parse.c -o parse.o                                                                                                                                                           
slibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -no-undefined -version 0:0:0 -e
xport-symbol-regex dca_.* -Wl,-O1 -Wl,--as-needed -o libdca.la -rpath /usr/lib64 bitstream.lo parse.lo downmix.lo -lm                                                                                             
slibtool: link: ar crs .libs/libdca.a .libs/bitstream.o .libs/parse.o .libs/downmix.o                    
slibtool: link: x86_64-pc-linux-gnu-gcc .libs/bitstream.o .libs/parse.o .libs/downmix.o -Os -pipe -march=native -Os -pipe -march=native -Wimplicit-function-declaration -Wno-error=implicit-function-declaration -v
ersion 0:0:0 -export-symbol-regex dca_.* -Wl,-O1 -Wl,--as-needed -lm -shared -fPIC -Wl,--no-undefined -Wl,-soname -Wl,libdca.so.0 -o .libs/libdca.so.0.0.0
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-version’
x86_64-pc-linux-gnu-gcc: error: 0:0:0: No such file or directory
x86_64-pc-linux-gnu-gcc: error: dca_.*: No such file or directory
slibtool: exec error upon slbt_exec_link_create_library(), line 1446: (see child process error messages). 
slibtool: < returned to > slbt_exec_link(), line 1836.
make[2]: *** [Makefile:420: libdca.la] Error 2
make[2]: Leaving directory '/var/tmp/portage/media-libs/libdca-0.0.7/work/libdca-0.0.7-abi_x86_64.amd64/libdca'
make[1]: *** [Makefile:413: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libdca-0.0.7/work/libdca-0.0.7-abi_x86_64.amd64'
make: *** [Makefile:345: all] Error 2
 * ERROR: media-libs/libdca-0.0.7::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2021-03-12 10:14:45 UTC
Created attachment 690957 [details]
libdca-0.0.7:20210312-101157.log

buildlog
Comment 2 orbea 2021-03-16 17:41:22 UTC
Created attachment 691851 [details, diff]
Patch fixing typos in libdca/Makefile.am
Comment 3 orbea 2021-03-16 17:42:11 UTC
This is because of two typos in libdca that GNU libtool (ofc) silently ignores.

-version should be -version-info and -export-symbol-regex should be -export-symbols-regex.

https://autotools.io/libtool/symbols.html
https://autotools.io/libtool/version.html

I attached a patch that fixes this, but since upstream uses 2fa I can not make a MR for them. If anyone else can do that please feel free to submit the patch to them. :)

https://code.videolan.org/videolan/libdca
Comment 4 Larry the Git Cow gentoo-dev 2021-03-19 04:12:02 UTC
The bug has been closed via the following commit(s):

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

commit c4c7c3fa3c9ebd64c320092595932545d0ea6e82
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-19 03:57:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-19 04:11:48 +0000

    media-libs/libdca: fix build with slibtool
    
    Closes: https://bugs.gentoo.org/775602
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libdca/files/libdca-0.0.7-slibtool.patch       | 22 ++++++++++++++++++++++
 media-libs/libdca/libdca-0.0.7.ebuild              |  1 +
 2 files changed, 23 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2021-03-28 18:11:05 UTC
The bug has been referenced in the following commit(s):

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

commit 3787a71778dbbef6b9f4dbd8fb3c43575eeb0848
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-28 18:10:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-28 18:11:01 +0000

    media-libs/libdca: add link to now upstream commit for slibtool patch
    
    Bug: https://bugs.gentoo.org/775602
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/libdca/files/libdca-0.0.7-slibtool.patch | 1 +
 1 file changed, 1 insertion(+)