On Tue, Oct 17, 2006 at 11:35:34PM -0400, Theodore Tso wrote:
> > On Tue, Oct 17, 2006 at 01:48:55PM +0200, Andreas Jochens wrote:

> > > when building 'e2fsprogs' on amd64/unstable, I get the following error:

> > Duplicate of bug #388718.  Fixing up the status on that bug so it shows up
> > where it's supposed to.

> This problem used to exist on x86, and I fixed it using a suggested
> patch as found in bug #388718.  I can no longer replicate it on the
> x86 platform.  I tried building it on pergolesi.debian.org, so I could
> try to debug why it is apparently still failing on x86_64, but
> unfortunately the unstable chroot is missing the following packages:

> texi2html (>= 1.76) dc libsepol1-dev libdevmapper-dev libselinux1-dev

> Could someone on debian-admin install these packages in the unstable
> chroot on pergolesi, please?  I looked into using pbuilder, but that
> also requires root privileges.

> Since the problem was fixed on x86 using the suggested patch for
> #388718, I believe that 393680 and 388718 are actually different bugs,
> although they may have similar symptoms.

Well, after tracking it down, I'd call it the same bug.  I'm not sure why
the problem now only manifests on amd64, but the issue is that the latest
change has -lpthread listed on the linker commandline before the static libs
that need it, leading to the undefined references.

Incremental patch attached.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/
diff -u e2fsprogs-1.39+1.40-WIP-2006.10.02+dfsg/debian/changelog 
e2fsprogs-1.39+1.40-WIP-2006.10.02+dfsg/debian/changelog
--- e2fsprogs-1.39+1.40-WIP-2006.10.02+dfsg/debian/changelog
+++ e2fsprogs-1.39+1.40-WIP-2006.10.02+dfsg/debian/changelog
@@ -1,3 +1,11 @@
+e2fsprogs (1.39+1.40-WIP-2006.10.02+dfsg-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Reorder the library line for static linking, to fix undefined
+    references to pthreads on amd64.  Closes: #393680.
+
+ -- Steve Langasek <[EMAIL PROTECTED]>  Thu, 19 Oct 2006 23:06:47 -0700
+
 e2fsprogs (1.39+1.40-WIP-2006.10.02+dfsg-1) unstable; urgency=low
 
   * New +dfsg source tarball that has useful documentation removed to
only in patch2:
unchanged:
--- e2fsprogs-1.39+1.40-WIP-2006.10.02+dfsg.orig/configure.in
+++ e2fsprogs-1.39+1.40-WIP-2006.10.02+dfsg/configure.in
@@ -496,8 +496,8 @@
 
        DEVMAPPER_REQ='libselinux libsepol'
        DEVMAPPER_PC_LIBS='-ldevmapper'
-       DEVMAPPER_LIBS='-lpthread -ldevmapper -lselinux -lsepol'
-       STATIC_DEVMAPPER_LIBS='-lpthread /usr/lib/libdevmapper.a 
/usr/lib/libselinux.a /usr/lib/libsepol.a'
+       DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
+       STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a 
/usr/lib/libsepol.a -lpthread'
 
 fi]
 ,

Reply via email to