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

rong deng dzrongg at gmail.com
Wed Aug 8 06:24:41 PDT 2012


2012/8/8, Chan-yeol Park <chanyeol.park at gmail.com>:
> Hi
>
> On 08/08/2012 09:44 PM, rong deng wrote:
>> 2012/8/8, Chan-yeol Park <chanyeol.park at gmail.com>:
>>> 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
>> I'm the one who added the libcheck, but from here, I've no errors
>> compiling this test case... If you have any other problem regarding
>> this, feel free to ask me. :)
> Yes I think so. This could be gcc or another environment issue.
> Could you introduce your environment?

I'm using Fedora Core 16, nothing special, the normal gcc bundled with it...

For shell, I'm using zsh, but I don't it would cause this problem.


More information about the pulseaudio-discuss mailing list