[pulseaudio-discuss] [PATCH] src/Makefile.am: add missing space to fix build using uClibc

Maarten Bosmans mkbosmans at gmail.com
Sat Feb 19 05:19:12 PST 2011


2011/2/19 Paul Menzel <paulepanter at users.sourceforge.net>:
> From: Henning Heinold <heinold at inf.fu-berlin.de>
> Date: Fri Jul 10 12:33:30 2009 +0200
>
> Using uClibc
>
>        AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
>
> is not empty because `$(INTLLIBS)` is set to `-lintl`. This uncovered a missing space in commit ef0cc745 which resulted in the following build error.
>
>        […]
>                CC     libbluetooth_ipc_la-ipc.lo
>        modules/bluetooth/ipc.c: In function 'bt_audio_service_open':
>        modules/bluetooth/ipc.c:65:26: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
>        modules/bluetooth/ipc.c: In function 'bt_audio_service_get_data_fd':
>        modules/bluetooth/ipc.c:110:13: warning: cast increases required alignment of target type [-Wcast-align]
>        modules/bluetooth/ipc.c:110:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>        make[3]: *** No rule to make target `-lintl', needed by `libbluetooth-ipc.la'.  Stop.
>        make[3]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/pulseaudio-0.9.22-r11.0+gitr0+051d82133f0ae6a57bf66fd200bc8e3591a7d5ca/git/src'
>        make[2]: *** [all] Error 2
>        make[2]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/pulseaudio-0.9.22-r11.0+gitr0+051d82133f0ae6a57bf66fd200bc8e3591a7d5ca/git/src'
>        make[1]: *** [all-recursive] Error 1
>        make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/pulseaudio-0.9.22-r11.0+gitr0+051d82133f0ae6a57bf66fd200bc8e3591a7d5ca/git'
>        make: *** [all] Error 2
>
> This patch is taken from OpenEmbedded where it has been present since 2009 for PulseAudio 0.9.15 and greater [1].

Hmm, yes indeed. What ever happened to upstreaming patches? Is there
any more interesting stuff OpenEmbedded (or any other
distro/downstream for that matter) that isn't in git master yet?

> [1] http://git.0pointer.de/?p=pulseaudio.git;a=commit;h=ef0cc74567b3bb98378c17f6a523bf18ba132ed7
> [2] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=7c33f2e906a20e139d53b4f2d8fbc2773a4725b3
>
> Signed-off-by: Henning Heinold <heinold at inf.fu-berlin.de>
> Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
> CC: Henning Heinold <heinold at inf.fu-berlin.de>
> ---
>  src/Makefile.am |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 0687e40..0ee7abc 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -1804,7 +1804,7 @@ BLUETOOTH_SBC_FILES = $(subst modules/bluetooth/,,$(libbluetooth_sbc_la_SOURCES)
>
>  libbluetooth_ipc_la_SOURCES = modules/bluetooth/ipc.c modules/bluetooth/ipc.h
>  libbluetooth_ipc_la_LDFLAGS = -avoid-version
> -libbluetooth_ipc_la_LIBADD = $(AM_LIBADD)libpulsecore- at PA_MAJORMINOR@.la libpulsecommon- at PA_MAJORMINOR@.la libpulse.la
> +libbluetooth_ipc_la_LIBADD = $(AM_LIBADD) libpulsecore- at PA_MAJORMINOR@.la libpulsecommon- at PA_MAJORMINOR@.la libpulse.la
>  libbluetooth_ipc_la_CFLAGS = $(AM_CFLAGS)
>  BLUETOOTH_IPC_FILES = $(subst modules/bluetooth/,,$(libbluetooth_ipc_la_SOURCES)) rtp.h

This does illustrate the risks of all the redundancy in the
Makefile.am. I have some (trivial, but large diff) patches lying
around replacing all of the common stuff in the _LIBADD, _LDFLAGS with
variables. But I thought that there was no good reason for such a
large diff (especially since, although the file gets smaller, theres
no reduction in line count). May be preventing this kind of stuff is
reason enough tough.

Maarten



More information about the pulseaudio-discuss mailing list