Bug#671491: [liblilv-dev] Build failure when including lilvmm.hpp in multiple compilation units

Johannes Kroll jkroll at lavabit.com
Fri May 4 14:59:49 UTC 2012


Package: liblilv-dev
Version: 0.5.0+dfsg0-1
Severity: normal

--- Please enter the report below this line. ---

I got the following error message while building Luppp on Debian
testing:

/libengine_gui.a(lvtwohost.cpp.0.o): In function `Lilv::uri_to_path(char const*)':
/usr/include/lilv-0/lilv/lilvmm.hpp:24: multiple definition of
`Lilv::uri_to_path(char const*)' ./libengine_gui.a(offlineworker.cpp.0.o):/usr/include/lilv-0/lilv/lilvmm.hpp:24: first defined here
collect2: ld returned 1 exit status

/usr/include/lilv-0/lilv/lilvmm.hpp:24 reads:

const char* uri_to_path(const char* uri) { return lilv_uri_to_path(uri); }

When this header gets included in more than one compilation unit,
uri_to_path gets defined several times, which causes the error.

In the current upstream version of lilv from [1], the function is
declared 'static inline' which fixes the problem. 

[1] http://drobilla.net/software/lilv/

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.2.11

Debian Release: wheezy/sid
  500 testing         www.debian-multimedia.org 
  500 testing         http.us.debian.org 
  500 testing         ftp.de.debian.org 

--- Package information. ---
Depends                   (Version) | Installed
===================================-+-====================
liblilv-0-0      (>= 0.5.0+dfsg0-1) | 0.5.0+dfsg0-1
liblilv-0-0     (<< 0.5.0+dfsg0+1~) | 0.5.0+dfsg0-1


Package's Recommends field is empty.

Package's Suggests field is empty.






More information about the pkg-multimedia-maintainers mailing list