[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Conflicting header files in /usr/include installed by libc6-dev and linux-libc



Hi all,

I'm currently working with gccgo on a sparc64 machine (namely a Sun
Enterprise T5120) in a debian sid chroot. Seems like the packages
linux-libc-dev:sparc64 and libc6-dev:sparc64  are installing
conflicting header files:

linux-libc-dev:sparc64: /usr/include/sparc64-linux-gnu/asm/termbits.h
libc6-dev:sparc64: /usr/include/sparc64-linux-gnu/bits/ioctl-types.h

They define the same struct twice (though with exactly the same
contents, this causes gcc to complain):

root@sparc:~/go/src/github.com/ncw/rclone/vendor/golang.org/x/sys/unix#
./mkall.sh
In file included from
/root/go/src/github.com/ncw/rclone/vendor/golang.org/x/sys/unix/_const.go:83:0:
/usr/include/sparc64-linux-gnu/asm/termbits.h:16:8: error:
redefinition of 'struct termio'
struct termio {
        ^~~~~~
In file included from /usr/include/sparc64-linux-gnu/sys/ioctl.h:29:0,
                 from
/root/go/src/github.com/ncw/rclone/vendor/golang.org/x/sys/unix/_const.go:46:
/usr/include/sparc64-linux-gnu/bits/ioctl-types.h:36:8: note:
originally defined here
struct termio
        ^~~~~~
sh: 3: ./mksysnum_linux.pl: not found
open types_linux.go: no such file or directory
root@sparc:~/go/src/github.com/ncw/rclone/vendor/golang.org/x/sys/unix#

The details of the two packages installed are as follows.

Package: linux-libc-dev
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 4761
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: sparc64
Multi-Arch: same
Source: linux
Version: 4.13.4-2
Provides: linux-kernel-headers
Description: Linux support headers for userspace development
 This package provides userspaces headers from the Linux kernel.  These
 headers are used by the installed headers for GNU libc and other system
 libraries.
Homepage: https://www.kernel.org/

Package: libc6-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 15278
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: sparc64
Multi-Arch: same
Source: glibc
Version: 2.24-17
Provides: libc-dev
Depends: libc6 (= 2.24-17), libc-dev-bin (= 2.24-17), linux-libc-dev (>= 4.12.6)
Suggests: glibc-doc, manpages-dev
Breaks: binutils (<< 2.26), binutils-gold (<< 2.20.1-11), cmake (<<
2.8.4+dfsg.1-5), gcc-4.4 (<< 4.4.6-4), gcc-4.5 (<< 4.5.3-2), gcc-4.6
(<< 4.6.0-12), libhwloc-dev (<< 1.2-3), libjna-java (<< 3.2.7-4),
liblouis-dev (<< 2.3.0-2), liblouisxml-dev (<< 2.4.0-2), make (<<
3.81-8.1), pkg-config (<< 0.26-1)
Conflicts: libc0.1-dev, libc0.3-dev, libc6.1-dev
Description: GNU C Library: Development Libraries and Header Files
 Contains the symlinks, headers, and object files needed to compile
 and link programs which use the standard C library.
Homepage: http://www.gnu.org/software/libc/libc.html

Thanks in advance,

KireinaHoro


Reply to: