[MPlayer-users] externalfaad detection and linking error

Steven M. Schultz sms at 2BSD.COM
Sun Sep 14 20:13:57 CEST 2003


Hi!

	I recently updated the FAAD2 libraries and  now MPlayer fails
	to link thus (on a SuSE 8.2 system):

/usr/local/lib/libmp4v2.so.0: undefined reference to `operator new[](unsigned)'
/usr/local/lib/libmp4v2.so.0: undefined reference to `vtable for __cxxabiv1::__pointer_type_info'
/usr/local/lib/libmp4v2.so.0: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/lib/libmp4v2.so.0: undefined reference to `operator delete(void*)'
/usr/local/lib/libmp4v2.so.0: undefined reference to `__cxa_end_catch'
/usr/local/lib/libmp4v2.so.0: undefined reference to `__gxx_personality_v0'
/usr/local/lib/libmp4v2.so.0: undefined reference to `_Unwind_Resume'
/usr/local/lib/libmp4v2.so.0: undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libmp4v2.so.0: undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/local/lib/libmp4v2.so.0: undefined reference to `__cxa_throw'
/usr/local/lib/libmp4v2.so.0: undefined reference to `operator delete[](void*)'
/usr/local/lib/libmp4v2.so.0: undefined reference to `__cxa_begin_catch'
/usr/local/lib/libmp4v2.so.0: undefined reference to `__cxa_allocate_exception'
/usr/local/lib/libmp4v2.so.0: undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status

	That's because now, for whatever reason, libfaad2.so depends on
	libmp4v2.so and that is written in C++:

libfaad.so:     file format elf32-i386

Dynamic Section:
  NEEDED      libm.so.6
  NEEDED      libmp4v2.so.0
  NEEDED      libc.so.6
  SONAME      libfaad.so.0

	What is apparently needed is to use 'c++/g++' to perform the external
	FAAD2 detection _and_ the final linking step.   Alas, I can't see
	an elegant way to do that.

	Steven Schultz



More information about the MPlayer-users mailing list