Skip to contentSkip to conversation

package/mpd: add patch to fix linking with ogg

PATCH New Jörg Krause 2 participants 2 messages Jan 12, 2017 – Jan 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mpd: add patch to fix linking with ogg

Building mpds internal static xiph library needs to link with libogg. Otherwise building mpd fails with:

```
/mips-linux-gnu/bin/ld: libxiph.a(libxiph_a-OggVisitor.o): undefined
reference to symbol 'ogg_stream_packetout'
```

Add a patch which adds OGG_LIBS to XIPH_LIBS so that the linker finds the necessary ogg library.

Fixes:
http://autobuild.buildroot.net/results/9f0/9f062dc51daed5c5047faa8d79ecbd4e228f2572/
http://autobuild.buildroot.net/results/1cc/1cc097c5022bd3161dc03b0866cb04075c944a64/
http://autobuild.buildroot.net/results/2e3/2e3dbcdea34053675a0139c1911b6da1a6670e2c/
.. and more.

---
 ...002-Makefile.am-fix-linking-xiph-with-ogg.patch | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 package/mpd/0002-Makefile.am-fix-linking-xiph-with-ogg.patch
package/mpd/0002-Makefile.am-fix-linking-xiph-with-ogg.patch new file +41 -0
new file mode 100644
index 000000000..1fe609508
@@ -0,0 +1,41 @@
+From 6ef588b2c230eae15f7f2563eca9d5f40c78d1d0 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]>
+Date: Wed, 11 Jan 2017 21:06:37 +0100
+Subject: [PATCH] Makefile.am: fix linking xiph with ogg
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The internal static xiph library needs to link with libogg. Otherwise
+building mpd will fail:
+
+```
+/mips-linux-gnu/bin/ld: libxiph.a(libxiph_a-OggVisitor.o): undefined
+reference to symbol 'ogg_stream_packetout'
+```
+
+Upstream status: Pending
+http://mailman.blarg.de/pipermail/mpd-devel/2017-January/000594.html
+
+Signed-off-by: J?rg Krause <[email protected]>
+---
+ Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index e0202b0cc..9030e68fb 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -614,7 +614,8 @@ libxiph_a_SOURCES += \
+ 	src/lib/xiph/OggStreamState.hxx
+ endif
+ 
+-XIPH_LIBS = libxiph.a
++XIPH_LIBS = libxiph.a \
++	$(OGG_LIBS)
+ 
+ endif
+ 
+-- 
+2.11.0
+
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/mpd: add patch to fix linking with ogg

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"J?rg" == J?rg Krause <[email protected]> writes:

Building mpds internal static xiph library needs to link with libogg. Otherwise building mpd fails with:

```
/mips-linux-gnu/bin/ld: libxiph.a(libxiph_a-OggVisitor.o): undefined
reference to symbol 'ogg_stream_packetout'
```

Add a patch which adds OGG_LIBS to XIPH_LIBS so that the linker finds the necessary ogg library.

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/9f0/9f062dc51daed5c5047faa8d79ecbd4e228f2572/
http://autobuild.buildroot.net/results/1cc/1cc097c5022bd3161dc03b0866cb04075c944a64/
http://autobuild.buildroot.net/results/2e3/2e3dbcdea34053675a0139c1911b6da1a6670e2c/
.. and more.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard