Package: libcurl4-openssl-dev Version: 7.52.1-5 Following bug #846360, it appears that the libcurl4-openssl-dev multi-architecture incompatibility isn’t fully resolved. There’s still a problem in 7.52.1-5 (unstable). /usr/bin/curl-config differs between amd64 and i386 in the --configure line.
amd64 has -fdebug-prefix-map=/build/curl-7.52.1=. i386 has -fdebug-prefix-map=/build/curl-_XZcRs/curl-7.52.1=. If the -fdebug-prefix-map arguments can’t be aligned between architectures, it may be necessary to account for differences in debian/rules as is done for other parts of curl-config. See https://anonscm.debian.org/cgit/collab-maint/curl.git/tree/debian/rules?id=fd931421beea85bf0859fed80495783be98beed9#n83 . Here’s what happens when attempting to install libcurl4-openssl-dev for both amd64 and i386: mark@debian zsh% sudo apt install libcurl4-openssl-dev:amd64 libcurl4-openssl-dev:i386 […] The following NEW packages will be installed: libcurl4-openssl-dev libcurl4-openssl-dev:i386 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. […] Selecting previously unselected package libcurl4-openssl-dev:amd64. (Reading database ... 109303 files and directories currently installed.) Preparing to unpack .../libcurl4-openssl-dev_7.52.1-5_amd64.deb ... Unpacking libcurl4-openssl-dev:amd64 (7.52.1-5) ... Selecting previously unselected package libcurl4-openssl-dev:i386. Preparing to unpack .../libcurl4-openssl-dev_7.52.1-5_i386.deb ... Unpacking libcurl4-openssl-dev:i386 (7.52.1-5) ... dpkg: error processing archive /var/cache/apt/archives/libcurl4-openssl-dev_7.52.1-5_i386.deb (--unpack): trying to overwrite shared '/usr/bin/curl-config', which is different from other instances of package libcurl4-openssl-dev:i386 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libcurl4-openssl-dev_7.52.1-5_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Additional information showing how curl-config differs between the two architectures: mark@debian zsh% shasum -a 256 /tmp/curl-config.* f4ca2538bbe1457a1e16d340d7e3a22942018464aaaab361da7b81bd85bd30c1 /tmp/curl-config.amd64 0d24b896dc0e497acec72d05bc9cc63f25b0ae0fa11f3287ca0f021c57ac5b9e /tmp/curl-config.i386 mark@debian zsh% diff -U0 /tmp/curl-config.* --- /tmp/curl-config.amd64 2017-04-19 06:19:50.000000000 -0400 +++ /tmp/curl-config.i386 2017-04-19 06:19:50.000000000 -0400 @@ -158 +158 @@ - echo " '--build='\`dpkg-architecture -qDEB_BUILD_GNU_TYPE\` '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/'\`dpkg-architecture -qDEB_HOST_MULTIARCH\` '--libexecdir=${prefix}/lib/'\`dpkg-architecture -qDEB_HOST_MULTIARCH\` '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-symbol-hiding' '--enable-versioned-symbols' '--enable-threaded-resolver' '--with-lber-lib=lber' '--with-gssapi=/usr' '--with-nghttp2' '--includedir=/usr/include/'\`dpkg-architecture -qDEB_HOST_MULTIARCH\` '--with-zsh-functions-dir=/usr/share/zsh/vendor-completions' '--with-ca-path=/etc/ssl/certs' '--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt' 'build_alias='\`dpkg-architecture -qDEB_BUILD_GNU_TYPE\` 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/curl-7.52.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'" + echo " '--build='\`dpkg-architecture -qDEB_BUILD_GNU_TYPE\` '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/'\`dpkg-architecture -qDEB_HOST_MULTIARCH\` '--libexecdir=${prefix}/lib/'\`dpkg-architecture -qDEB_HOST_MULTIARCH\` '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-symbol-hiding' '--enable-versioned-symbols' '--enable-threaded-resolver' '--with-lber-lib=lber' '--with-gssapi=/usr' '--with-nghttp2' '--includedir=/usr/include/'\`dpkg-architecture -qDEB_HOST_MULTIARCH\` '--with-zsh-functions-dir=/usr/share/zsh/vendor-completions' '--with-ca-path=/etc/ssl/certs' '--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt' 'build_alias='\`dpkg-architecture -qDEB_BUILD_GNU_TYPE\` 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/curl-_XZcRs/curl-7.52.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'"