Page 1 of 1

Pb building libvlccore.so: undef symb libvlc_exception_clear

Posted: 16 Feb 2010 19:00
by Chamonix
Hi,

First post on this forum, I hope I post in the right category.

I am building VLC on Solaris 10. While linking libvlccore.so I end up with two undef symbols "libvlc_exception_clear" and "libvlc_exception_raised".

I found out that these symbols are actually defined in src/control/core.c that is compiled and include in libvlc.so - while libvlccore.so includes src/config/core.c that does not define the symbols.

I wonder what is the correct solution to fix the problem. Should I add libvlc.so on the command line when linking libvlccore.so?

Thanks,

Re: Pb building libvlccore.so: undef symb libvlc_exception_clear

Posted: 17 Feb 2010 11:42
by Chamonix
The solution for the record:

Whithin libvlccore.so the references to the undef symbols come from libvlccore_la-libvlc.o built from libvlc.c. In turn, libvlc.c includes src/control/libvlc_internal.h that defines the following function:

static inline void clear_if_needed(libvlc_exception_t *e) {
if (libvlc_exception_raised(e))
libvlc_exception_clear(e);
}

Note that the "clear_if_needed" function is not called from libvlc.c.

A quick solution consists in compiling with -xO4: the inline func is then optimized away.

Re: Pb building libvlccore.so: undef symb libvlc_exception_clear

Posted: 17 Feb 2010 17:49
by Rémi Denis-Courmont
That function does not exist in VLC 1.0, neither in the current HEAD. I wonder what you're on about.

Re: Pb building libvlccore.so: undef symb libvlc_exception_clear

Posted: 18 Feb 2010 16:06
by Chamonix
libvlc configuration
--------------------
version : 1.1.0-git
system : solaris
architecture : sparc
build flavour : devel
vlc aliases : cvlc rvlc svlc qvlc
plugins/bindings :


Would version 1.0 be more stable?

Re: Pb building libvlccore.so: undef symb libvlc_exception_clear

Posted: 18 Feb 2010 18:29
by Rémi Denis-Courmont
Depends what you're trying to do. In any case 1.1.0-git does definitely not contain clear_if_needed() neither libvlc_exception_clear() so you must be using some crap old snapshot.

Re: Pb building libvlccore.so: undef symb libvlc_exception_clear

Posted: 18 Feb 2010 19:14
by Chamonix
Ok, thanks for the help.