Control: tags -1 + patch * Matthias Klose <d...@debian.org>, 2015-02-12, 10:30:
src/set.c:64: undefined reference to `xstrdup'
This is due to the change in semantics of the "inline" keyword[0]. The attached patch seems to do the trick.
[0] <https://gcc.gnu.org/gcc-5/porting_to.html>, search for "Different semantics for inline functions".
-- Jakub Wilk
diff -Nru deborphan-1.7.28.8/include/deborphan.h deborphan-1.7.28.8/include/deborphan.h --- deborphan-1.7.28.8/include/deborphan.h 2012-06-30 20:47:50.000000000 +0200 +++ deborphan-1.7.28.8/include/deborphan.h 2015-06-25 17:39:18.000000000 +0200 @@ -172,8 +172,8 @@ int string_to_priority(const char *priority); const char *priority_to_string(int priority); char *sstrsep(char **str, int c); -inline void strstripchr(char *s, int c); -inline unsigned int strhash(const char *line); +extern inline void strstripchr(char *s, int c); +extern inline unsigned int strhash(const char *line); /* keep.c */ dep *readkeep(const char *kfile); diff -Nru deborphan-1.7.28.8/include/xalloc.h deborphan-1.7.28.8/include/xalloc.h --- deborphan-1.7.28.8/include/xalloc.h 2012-06-30 20:47:50.000000000 +0200 +++ deborphan-1.7.28.8/include/xalloc.h 2015-06-25 17:38:29.000000000 +0200 @@ -7,7 +7,7 @@ Distributed under the terms of the Artistic License. */ -inline void *xcalloc(size_t nmemb, size_t size); -inline void *xmalloc(size_t size); -inline void *xrealloc(void *ptr, size_t size); -inline char *xstrdup(const char *s); +extern inline void *xcalloc(size_t nmemb, size_t size); +extern inline void *xmalloc(size_t size); +extern inline void *xrealloc(void *ptr, size_t size); +extern inline char *xstrdup(const char *s);