[pulseaudio-discuss] [PATCH] build-sys: Link utf8-test to libpulsecommon.

Chan-yeol Park chanyeol.park at gmail.com
Tue Aug 7 18:15:56 PDT 2012


Hi Tanu,

On 08/06/2012 09:07 PM, Tanu Kaskinen wrote:
> Fixes this:
> /usr/bin/ld: utf8_test-utf8-test.o: undefined reference to symbol 'pa_log_set_level'
> /usr/bin/ld: note: 'pa_log_set_level' is defined in DSO /home/takaskin/dev/pulseaudio/src/.libs/libpulsecommon-2.98.so so try adding it to the linker command line
> /home/takaskin/dev/pulseaudio/src/.libs/libpulsecommon-2.98.so: could not read symbols: Invalid operation
> ---
>   src/Makefile.am |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 7f947bd..faebe2a 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -321,7 +321,7 @@ thread_mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
>   
>   utf8_test_SOURCES = tests/utf8-test.c
>   utf8_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
> -utf8_test_LDADD = $(AM_LDADD) libpulse.la
> +utf8_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon- at PA_MAJORMINOR@.la
>   utf8_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
>   
>   format_test_SOURCES = tests/format-test.c
Before LIBCHECK_[CFLAGS,LIBS] are introduced, it was built fine to me.
I am using ubuntu 12.04, gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Regards
Chanyeol



More information about the pulseaudio-discuss mailing list