libc6-dev conflicts with libpthread-dev

Bug #69585 reported by Justin Dugger
12
Affects Status Importance Assigned to Milestone
pth (Debian)
Fix Released
Unknown
pth (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

While tracking down a strange error with /usr/include/pthread.h:485 (tinyOS is insane, don't ask), I figured I'd see if libpthread-dev would have a fixed version. Trying to install it fails,

jldugger@jldugger-tablet:~$ sudo apt-get install libpthread-dev
Reading package lists... Done
<snip>
Unpacking libpthread-dev (from .../libpthread-dev_2.0.7-2ubuntu2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libpthread-dev_2.0.7-2ubuntu2_i386.deb (--unpack):
 trying to overwrite `/usr/include/pthread.h', which is also in package libc6-dev
Errors were encountered while processing:
 /var/cache/apt/archives/libpthread-dev_2.0.7-2ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Is this expected behavior? I don't know whether this is a bug in pth or in glibc, so please re-assign as appropriate.

Changed in pth:
status: Unconfirmed → Confirmed
Changed in pth:
status: Unknown → Fix Released
Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

Thanks for the bug report.

I'm closing this bug because it has been fixed in Feisty.

pth (2.0.7-3) unstable; urgency=medium
 .
   * Added divertion for /usr/lib/libpthread.a in libpthread-dev
     (Closes: #379413).
   * Renamed libpth2 to libpth20 and libpthread2 to libpthread20 to match the
     soname.
   * Removed lintian overrides.
   * Bumped shlibs.
   * Added libpthread20 as depends to pth-dbg.

Changed in pth:
status: Confirmed → Fix Released
Revision history for this message
Ketil Malde (ketil-ii) wrote :

I'm sorry, but this still affects Edgy, and Feisty is not out yet!

% sudo apt-get install libpthread-dev
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpthread20
The following NEW packages will be installed:
  libpthread-dev libpthread20
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 205kB of archives.
After unpacking 520kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://no.archive.ubuntu.com edgy/main libpthread20 2.0.7-2ubuntu2 [79,5kB]
Get:2 http://no.archive.ubuntu.com edgy/main libpthread-dev 2.0.7-2ubuntu2 [126kB]
Fetched 205kB in 0s (242kB/s)
Selecting previously deselected package libpthread20.
(Reading database ... 115437 files and directories currently installed.)
Unpacking libpthread20 (from .../libpthread20_2.0.7-2ubuntu2_i386.deb) ...
Selecting previously deselected package libpthread-dev.
Unpacking libpthread-dev (from .../libpthread-dev_2.0.7-2ubuntu2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libpthread-dev_2.0.7-2ubuntu2_i386.deb (--unpack):
 trying to overwrite `/usr/include/pthread.h', which is also in package libc6-dev
Errors were encountered while processing:
 /var/cache/apt/archives/libpthread-dev_2.0.7-2ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.