package libc6-dev-i386 (not installed) failed to install/upgrade: trying to overwrite '/usr/include/bits', which is also in package libc6-dev-amd64:i386 2.23-0ubuntu3

Bug #1589987 reported by Paul on 2016-06-07
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
High
Unassigned
glibc (Ubuntu)
High
Unassigned

Bug Description

I'm trying to build ffmpeg static and shared, i keep running into what appears to be a problem with things like libc not being compiled with -fPIC which causes me nothing but errors as I progress. One such error is this one:

[ERROR] /usr/bin/ld: /home/mondain/workspace/github-infrared5/red5pro-cauldron/src/main/lib/amd64-Linux-gpp/libavcodec.a(hevc_cabac.o): relocation R_X86_64_PC32 against symbol `ff_h264_cabac_tables' can not be used when making a shared object; recompile with -fPIC

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: libc6-dev-i386 (not installed)
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Tue Jun 7 09:12:16 2016
DuplicateSignature:
 package:libc6-dev-i386:(not installed)
 Unpacking libc6-dev-i386 (2.23-0ubuntu3) ...
 dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.23-0ubuntu3_amd64.deb (--unpack):
  trying to overwrite '/usr/include/bits', which is also in package libc6-dev-amd64:i386 2.23-0ubuntu3
ErrorMessage: trying to overwrite '/usr/include/bits', which is also in package libc6-dev-amd64:i386 2.23-0ubuntu3
InstallationDate: Installed on 2016-05-20 (18 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.12~ubuntu16.04.1
SourcePackage: glibc
Title: package libc6-dev-i386 (not installed) failed to install/upgrade: trying to overwrite '/usr/include/bits', which is also in package libc6-dev-amd64:i386 2.23-0ubuntu3
UpgradeStatus: No upgrade log present (probably fresh install)

Paul (mondain) wrote :
Paul (mondain) wrote :

Heres the configure command for reference:

./configure --disable-debug --disable-doc --disable-avdevice --disable-programs --disable-decoders --disable-encoders --disable-filters --disable-muxers --disable-demuxers --disable-indevs --disable-outdevs --disable-swscale-alpha --disable-symver --disable-protocols --disable-bsfs --disable-parsers --disable-symver --disable-iconv --enable-shared --enable-static --enable-swresample --enable-swscale --enable-pthreads --enable-pic --enable-asm --enable-yasm --enable-decoder=aac --enable-decoder=h264 --enable-decoder=libspeex --enable-parser=h264,aac --prefix="$(pwd)/linux" --extra-cflags="-fPIC -mcmodel=large" --extra-cxxflags="-fPIC -mcmodel=large" --pkg-config-flags="--static"

Heres the output of make:

/usr/bin/ld: libavutil/color_utils.o(.text+0x25c): unresolvable R_X86_64_PLTOFF64 relocation against symbol `log@@GLIBC_2.2.5'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
library.mak:98: recipe for target 'libavutil/libavutil.so.55' failed

tags: removed: need-duplicate-check

sudo aptitude install libc6-dev:i386

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glibc (Ubuntu):
status: New → Confirmed
Changed in glibc (Ubuntu):
importance: Undecided → High
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers