[Bug 1390571] [NEW] libiberty-dev and binutils-dev conflict w/ ansidecl.h

linas linasvepstas at gmail.com
Fri Nov 7 18:11:10 UTC 2014


Public bug reported:

Both libiberty-dev and binutils-dev include the file ansidecl.h:

dpkg -S ansidecl.h
binutils-dev: /usr/include/ansidecl.h
libiberty-dev:amd64: /usr/include/libiberty/ansidecl.h

Both use the standard header protection mechanism:

#ifndef  _ANSIDECL_H
#define _ANSIDECL_H  1

thus only one of the two can ever get included.

Only /usr/include/libiberty/ansidecl.h defines ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_SENTINEL  ATTRIBUTE_MALLOC  ATTRIBUTE_NORETURN 
and so on ... Thus, making use of libiberty.h will cause a build break, because these are not defined when the ansidecl from binutils.h gets picked up.

Basically, libiberty-dev is unusable (worse than unusuable -- it causes
build breaks), if libbfd-dev  is installed.

I'm not sure if this is a ubutu-only bug, or a upstream debian bug

** Affects: libiberty (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libiberty in Ubuntu.
https://bugs.launchpad.net/bugs/1390571

Title:
  libiberty-dev and binutils-dev conflict w/ ansidecl.h

Status in “libiberty” package in Ubuntu:
  New

Bug description:
  Both libiberty-dev and binutils-dev include the file ansidecl.h:

  dpkg -S ansidecl.h
  binutils-dev: /usr/include/ansidecl.h
  libiberty-dev:amd64: /usr/include/libiberty/ansidecl.h

  Both use the standard header protection mechanism:

  #ifndef  _ANSIDECL_H
  #define _ANSIDECL_H  1

  thus only one of the two can ever get included.

  Only /usr/include/libiberty/ansidecl.h defines ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_SENTINEL  ATTRIBUTE_MALLOC  ATTRIBUTE_NORETURN 
  and so on ... Thus, making use of libiberty.h will cause a build break, because these are not defined when the ansidecl from binutils.h gets picked up.

  Basically, libiberty-dev is unusable (worse than unusuable -- it
  causes build breaks), if libbfd-dev  is installed.

  I'm not sure if this is a ubutu-only bug, or a upstream debian bug

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libiberty/+bug/1390571/+subscriptions



More information about the foundations-bugs mailing list