[OpenWrt-Devel] [PATCH] pulseaudio - gcc bug?

michu at neophob.com michu at neophob.com
Fri Feb 15 17:02:38 CET 2008


hey, i tried to fix pulseaudio, with more or less success

first the patch:

Index: /home/openwrt/trunk/package/sound/pulseaudio/Makefile
===================================================================
--- /home/openwrt/trunk/package/sound/pulseaudio/Makefile        
(revision 10204)
+++ /home/openwrt/trunk/package/sound/pulseaudio/Makefile       (working copy)
@@ -33,13 +33,21 @@
         --with-access-group=root \
         --without-x \
         --enable-static-bins \
+       --disable-solaris \
+       --disable-glib2 \
+       --disable-gconf \
+       --disable-lirc \
+       --disable-manpages \
+       --disable-ltdl-install \
         PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
         LIBOIL_CFLAGS="-I$(STAGING_DIR)/usr/include/liboil-0.3/" \
-       LIBOIL_LIBS="-L$(STAGING_DIR)/usr/lib/" \
+       LIBOIL_LIBS="-L$(STAGING_DIR)/usr/lib/ -loil-0.3" \
+       LIBS="-lrt -lltdl -ldl" \

  define Build/Compile
+       LIBTOOL=$(STAGING_DIR)/usr/bin/libtool \
         $(MAKE) -C $(PKG_BUILD_DIR) \
-               CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include  
-I$(STAGING_DIR)/include" \
+               CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include  
-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/liboil-0.3/" \
                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
                 DESTDIR="$(PKG_INSTALL_DIR)" \
                 X_CFLAGS="" \

But when the package tries to link i get this error:
...
-Wl,/home/openwrt/trunk/build_dir/mipsel/libsndfile-1.0.17/ipkg-install/usr/lib -Wl,--rpath -Wl,/home/openwrt/trunk/build_dir/mipsel/libsamplerate-0.1.2/ipkg-install/usr/lib -Wl,--rpath -Wl,/home/openwrt/trunk/build_dir/mipsel/libsndfile-1.0.17/ipkg-install/usr/lib -L/home/openwrt/trunk/staging_dir/mipsel/usr/lib -L/home/openwrt/trunk/staging_dir/mipsel/lib -lpthread /home/openwrt/trunk/build_dir/mipsel/libsamplerate-0.1.2/ipkg-install/usr/lib/libsamplerate.so /home/openwrt/trunk/build_dir/mipsel/libsndfile-1.0.17/ipkg-install/usr/lib/libsndfile.so -L/home/openwrt/trunk/staging_dir/mipsel/usr/lib/ -loil-0.3 -lm -lrt -lltdl -ldl -latomic_ops  -pthread -mips32 -mtune=mips32 -Wl,-no-undefined -Wl,--gc-sections -Wl,-soname -Wl,libpulsecore.so.5 -o  
.libs/libpulsecore.so.5.0.0
.libs/libpulsecore_la-thread-mq.o: In function `pa_thread_mq_get':
thread-mq.c:(.text+0x18): undefined reference to `__tls_get_addr'
.libs/libpulsecore_la-thread-mq.o: In function `pa_thread_mq_install':
thread-mq.c:(.text+0x490): undefined reference to `__tls_get_addr'
collect2: ld returned 1 exit status
make[6]: *** [libpulsecore.la] Error 1

according to http://www.pulseaudio.org/ticket/152 those dev says:
> this is not a bug in PA, but in your gcc+glibc combo then. Closing this now.

someone knows more about this?

cheers
michu

Signed-off-by: Michael Vogt <michu at neophob.com>





More information about the openwrt-devel mailing list