Debian Bug report logs - #708435
libselinux1-dev: pkgconfig file misses 'Libs.private: -lpthread'

version graph

Package: libselinux1-dev; Maintainer for libselinux1-dev is Debian SELinux maintainers <selinux-devel@lists.alioth.debian.org>; Source for libselinux1-dev is src:libselinux (PTS, buildd, popcon).

Reported by: Nathan Handler <nhandler@debian.org>

Date: Wed, 15 May 2013 18:54:21 UTC

Severity: serious

Tags: confirmed, jessie, sid

Found in version libselinux/2.1.13-1

Fixed in version libselinux/2.1.13-2

Done: Laurent Bigonville <bigon@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#708435; Package src:aide. (Wed, 15 May 2013 18:54:26 GMT) (full text, mbox, link).


Acknowledgement sent to Nathan Handler <nhandler@debian.org>:
New Bug report received and forwarded. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>. (Wed, 15 May 2013 18:54:26 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Nathan Handler <nhandler@debian.org>
To: submit@bugs.debian.org
Subject: aide: FTBFS: (.text+0x1d8): undefined reference to `pthread_atfork'
Date: Wed, 15 May 2013 13:53:49 -0500
[Message part 1 (text/plain, inline)]
Source: aide
Version: 0.15.1-8
Severity: serious
Tags: jessie sid
User: debian-qa@lists.debian.org
Usertags: qa-ftbfs-20130514 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libacl.a(__acl_to_any_text.o): In function `__acl_to_any_text':
> (.text+0x8af): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libselinux.a(procattr.o): In function `init_procattr':
> (.text+0x1d8): undefined reference to `pthread_atfork'
> collect2: error: ld returned 1 exit status

The full build log is available from:
   http://people.debian.org/~nhandler/logs/2013/05/14/aide_0.15.1-8_unstable.log

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
[signature.asc (application/pgp-signature, inline)]

Added tag(s) confirmed. Request was from Hannes von Haugwitz <hannes@vonhaugwitz.com> to control@bugs.debian.org. (Wed, 15 May 2013 19:57:15 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>:
Bug#708435; Package src:aide. (Thu, 16 May 2013 07:12:09 GMT) (full text, mbox, link).


Acknowledgement sent to Hannes von Haugwitz <hannes@vonhaugwitz.com>:
Extra info received and forwarded to list. Copy sent to Aide Maintainers <pkg-aide-maintainers@lists.alioth.debian.org>. (Thu, 16 May 2013 07:12:09 GMT) (full text, mbox, link).


Message #12 received at 708435@bugs.debian.org (full text, mbox, reply):

From: Hannes von Haugwitz <hannes@vonhaugwitz.com>
To: Nathan Handler <nhandler@debian.org>, 708435@bugs.debian.org
Cc: control@bugs.debian.org, Thijs Kinkhorst <thijs@debian.org>
Subject: Re: Bug#708435: aide: FTBFS: (.text+0x1d8): undefined reference to `pthread_atfork'
Date: Thu, 16 May 2013 09:09:44 +0200
reassign 708435 libselinux1-dev 2.1.13-1
retitle 708435 libselinux1-dev: pkgconfig file misses 'Libs.private: -lpthread'
thanks

Dear SELinux maintainers,

I'm reassigning this bug to you, because I think the FTBFS is caused by
a missing 'Libs.private: -lpthread' line in the libselinux.pc file.  The
flag is again (see #388375) needed due to the recent changes in
'src/procattr.c' of version 2.1.13.

Please let me know if I shall provide a patch.

Best regards

Hannes


On Wed, May 15, 2013 at 01:53:49PM -0500, Nathan Handler wrote:
> Source: aide
> Version: 0.15.1-8
> Severity: serious
> Tags: jessie sid
> User: debian-qa@lists.debian.org
> Usertags: qa-ftbfs-20130514 qa-ftbfs
> Justification: FTBFS on amd64
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
> 
> Relevant part:
> > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libacl.a(__acl_to_any_text.o): In function `__acl_to_any_text':
> > (.text+0x8af): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libselinux.a(procattr.o): In function `init_procattr':
> > (.text+0x1d8): undefined reference to `pthread_atfork'
> > collect2: error: ld returned 1 exit status
> 
> The full build log is available from:
>    http://people.debian.org/~nhandler/logs/2013/05/14/aide_0.15.1-8_unstable.log
> 
> A list of current common problems and possible solutions is available at 
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
> 
> About the archive rebuild: The rebuild was done on EC2 VM instances from
> Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
> failed build was retried once to eliminate random failures.



Bug reassigned from package 'src:aide' to 'libselinux1-dev'. Request was from Hannes von Haugwitz <hannes@vonhaugwitz.com> to control@bugs.debian.org. (Thu, 16 May 2013 07:12:12 GMT) (full text, mbox, link).


No longer marked as found in versions aide/0.15.1-8. Request was from Hannes von Haugwitz <hannes@vonhaugwitz.com> to control@bugs.debian.org. (Thu, 16 May 2013 07:12:13 GMT) (full text, mbox, link).


Marked as found in versions libselinux/2.1.13-1. Request was from Hannes von Haugwitz <hannes@vonhaugwitz.com> to control@bugs.debian.org. (Thu, 16 May 2013 07:12:14 GMT) (full text, mbox, link).


Changed Bug title to 'libselinux1-dev: pkgconfig file misses 'Libs.private: -lpthread'' from 'aide: FTBFS: (.text+0x1d8): undefined reference to `pthread_atfork'' Request was from Hannes von Haugwitz <hannes@vonhaugwitz.com> to control@bugs.debian.org. (Thu, 16 May 2013 07:12:15 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian SELinux maintainers <selinux-devel@lists.alioth.debian.org>:
Bug#708435; Package libselinux1-dev. (Thu, 16 May 2013 21:12:04 GMT) (full text, mbox, link).


Acknowledgement sent to Laurent Bigonville <bigon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian SELinux maintainers <selinux-devel@lists.alioth.debian.org>. (Thu, 16 May 2013 21:12:04 GMT) (full text, mbox, link).


Message #25 received at 708435@bugs.debian.org (full text, mbox, reply):

From: Laurent Bigonville <bigon@debian.org>
To: Hannes von Haugwitz <hannes@vonhaugwitz.com>
Cc: 708435@bugs.debian.org
Subject: Re: Bug#708435: aide: FTBFS: (.text+0x1d8): undefined reference to `pthread_atfork'
Date: Thu, 16 May 2013 23:09:11 +0200
Hannes von Haugwitz wrote:
> Dear SELinux maintainers,
> 
> I'm reassigning this bug to you, because I think the FTBFS is caused
> by a missing 'Libs.private: -lpthread' line in the libselinux.pc
> file.  The flag is again (see #388375) needed due to the recent
> changes in 'src/procattr.c' of version 2.1.13.

Thanks for your bug report.

The .pc file indeed seems missing the -lpthread flag. But at the same
time, it seems that the aide package is missing a build-dependency
against pkg-config.

checking for pkg-config... no

Should I open a bug?

I'll fix this in the libselinux package soon. It also probably
needs "Requires.private: libpcre" too.

Cheers

Laurent Bigonville



Information forwarded to debian-bugs-dist@lists.debian.org, Debian SELinux maintainers <selinux-devel@lists.alioth.debian.org>:
Bug#708435; Package libselinux1-dev. (Fri, 17 May 2013 07:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Hannes von Haugwitz <hannes@vonhaugwitz.com>:
Extra info received and forwarded to list. Copy sent to Debian SELinux maintainers <selinux-devel@lists.alioth.debian.org>. (Fri, 17 May 2013 07:09:07 GMT) (full text, mbox, link).


Message #30 received at 708435@bugs.debian.org (full text, mbox, reply):

From: Hannes von Haugwitz <hannes@vonhaugwitz.com>
To: Laurent Bigonville <bigon@debian.org>, 708435@bugs.debian.org
Cc: Thijs Kinkhorst <thijs@debian.org>
Subject: Re: Bug#708435: aide: FTBFS: (.text+0x1d8): undefined reference to `pthread_atfork'
Date: Fri, 17 May 2013 09:06:31 +0200
Hi,

On Thu, May 16, 2013 at 11:09:11PM +0200, Laurent Bigonville wrote:
> Hannes von Haugwitz wrote:
> > I'm reassigning this bug to you, because I think the FTBFS is caused
> > by a missing 'Libs.private: -lpthread' line in the libselinux.pc
> > file.  The flag is again (see #388375) needed due to the recent
> > changes in 'src/procattr.c' of version 2.1.13.
> 
> Thanks for your bug report.
> 
> The .pc file indeed seems missing the -lpthread flag. But at the same
> time, it seems that the aide package is missing a build-dependency
> against pkg-config.
> 
> checking for pkg-config... no

Indeed, I'll check that and add the build-dependency if needed.

> Should I open a bug?

I don't think that is necessary ;-).

> 
> I'll fix this in the libselinux package soon. It also probably
> needs "Requires.private: libpcre" too.

I'm not sure if the requirement for libpcre is really needed.  On an
up-to-date minimal sid (with added -lpthread) aide builds fine for me with no
libpcre dev package installed.

Best regards

Hannes



Information forwarded to debian-bugs-dist@lists.debian.org, Debian SELinux maintainers <selinux-devel@lists.alioth.debian.org>:
Bug#708435; Package libselinux1-dev. (Fri, 17 May 2013 09:36:09 GMT) (full text, mbox, link).


Acknowledgement sent to Laurent Bigonville <bigon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian SELinux maintainers <selinux-devel@lists.alioth.debian.org>. (Fri, 17 May 2013 09:36:09 GMT) (full text, mbox, link).


Message #35 received at 708435@bugs.debian.org (full text, mbox, reply):

From: Laurent Bigonville <bigon@debian.org>
To: Hannes von Haugwitz <hannes@vonhaugwitz.com>
Cc: 708435@bugs.debian.org, Thijs Kinkhorst <thijs@debian.org>
Subject: Re: Bug#708435: aide: FTBFS: (.text+0x1d8): undefined reference to `pthread_atfork'
Date: Fri, 17 May 2013 11:34:51 +0200
Le Fri, 17 May 2013 09:06:31 +0200,
Hannes von Haugwitz <hannes@vonhaugwitz.com> a écrit :

> Hi,

Hello,

> On Thu, May 16, 2013 at 11:09:11PM +0200, Laurent Bigonville wrote:
> > Hannes von Haugwitz wrote:
[...]
> > 
> > I'll fix this in the libselinux package soon. It also probably
> > needs "Requires.private: libpcre" too.
> 
> I'm not sure if the requirement for libpcre is really needed.  On an
> up-to-date minimal sid (with added -lpthread) aide builds fine for me
> with no libpcre dev package installed.

Well I'm seeing unresolved libpcre3 symbols in the libselinux.a archive
too.

So I /guess/ it should be added too, it's probably in a part of the
code that aide is not using.

Cheers

Laurent Bigonville



Reply sent to Laurent Bigonville <bigon@debian.org>:
You have taken responsibility. (Mon, 20 May 2013 15:51:26 GMT) (full text, mbox, link).


Notification sent to Nathan Handler <nhandler@debian.org>:
Bug acknowledged by developer. (Mon, 20 May 2013 15:51:26 GMT) (full text, mbox, link).


Message #40 received at 708435-close@bugs.debian.org (full text, mbox, reply):

From: Laurent Bigonville <bigon@debian.org>
To: 708435-close@bugs.debian.org
Subject: Bug#708435: fixed in libselinux 2.1.13-2
Date: Mon, 20 May 2013 15:48:06 +0000
Source: libselinux
Source-Version: 2.1.13-2

We believe that the bug you reported is fixed in the latest version of
libselinux, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 708435@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Laurent Bigonville <bigon@debian.org> (supplier of updated libselinux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 20 May 2013 17:36:35 +0200
Source: libselinux
Binary: selinux-utils libselinux1 libselinux1-dev ruby-selinux libselinux-ruby1.8 python-selinux
Architecture: source amd64 all
Version: 2.1.13-2
Distribution: unstable
Urgency: low
Maintainer: Debian SELinux maintainers <selinux-devel@lists.alioth.debian.org>
Changed-By: Laurent Bigonville <bigon@debian.org>
Description: 
 libselinux-ruby1.8 - Transitional package for ruby-selinux
 libselinux1 - SELinux runtime shared libraries
 libselinux1-dev - SELinux development headers
 python-selinux - Python bindings to SELinux shared libraries
 ruby-selinux - Ruby bindings to SELinux shared libraries
 selinux-utils - SELinux utility programs
Closes: 708435
Changes: 
 libselinux (2.1.13-2) unstable; urgency=low
 .
   * Team upload.
   * debian/patches/add_missing_private_pc.patch: Add missing dependencies to
     the .pc file. This fix FTBFS of pkg that link statically against us
     (Closes: #708435)
   * debian/control: Add Dependency against libpcre3-dev on libselinux1-dev
     package
Checksums-Sha1: 
 4f62cdbfa2dbaf9dd9e2e26f2c70374122b83862 2059 libselinux_2.1.13-2.dsc
 82aa1671e83a5749e77d67c262e887e89f4167a0 26084 libselinux_2.1.13-2.debian.tar.gz
 4944c6c49d7af37a167be7bf127d6f75a13b1b25 90800 selinux-utils_2.1.13-2_amd64.deb
 cdfac6ea8d7f6c392d8ed5bd0fbc0abecd71a981 95614 libselinux1_2.1.13-2_amd64.deb
 b6c800f3441086ec9cb24a8587eb144bfdedce47 183186 libselinux1-dev_2.1.13-2_amd64.deb
 9955ed6397d58ea87b5a41560bfeba97b59514f6 160442 ruby-selinux_2.1.13-2_amd64.deb
 fbab342abc8e477e8cbe924fff6ca8382f2e1285 32544 libselinux-ruby1.8_2.1.13-2_all.deb
 66f4e85846b5fe5fd1bf23272860af9bead17f86 209968 python-selinux_2.1.13-2_amd64.deb
Checksums-Sha256: 
 6782e2f3edcc08f7ab01f2d210170311905de8f7f36170b53bdca456611fb4f9 2059 libselinux_2.1.13-2.dsc
 a152d5dc1662af33d175e866707be0c1a695cf035116ced0e29533004bbe0cc0 26084 libselinux_2.1.13-2.debian.tar.gz
 7f794c2c7e82bad9fb0c26cfac8b60df4b7c99877c7afe87425a4865b92ac0e3 90800 selinux-utils_2.1.13-2_amd64.deb
 effafe01609f8a193fe6d495e9db1513ffcc124d27edc9eeaa3f83bde982c2df 95614 libselinux1_2.1.13-2_amd64.deb
 b92cb386eca609d5b76232e3150c71bfc43333323335ad18f1c1db17f8b51919 183186 libselinux1-dev_2.1.13-2_amd64.deb
 9f2055debdc60ed3cbf94f9c5644c175596c0fb20aa01cce2c47c66a015f0110 160442 ruby-selinux_2.1.13-2_amd64.deb
 31c5ff7252f3befa02ab62cb28aeb75958ca277fe1ef1c6f4d28822b9eb5964c 32544 libselinux-ruby1.8_2.1.13-2_all.deb
 aafc58ea742e99d445d68202ff2f5ec5ed2f27959d052af880bc0154dd4c2674 209968 python-selinux_2.1.13-2_amd64.deb
Files: 
 610d391cbda7166c1e250c4a9f14ee95 2059 libs optional libselinux_2.1.13-2.dsc
 4e2692db9a73c8f36be64bea2e5dc7e3 26084 libs optional libselinux_2.1.13-2.debian.tar.gz
 177d4963524819f540d6a0468f427565 90800 admin optional selinux-utils_2.1.13-2_amd64.deb
 7e161ea00ba4bcd6a1ebd2ef0cce52dd 95614 libs required libselinux1_2.1.13-2_amd64.deb
 9458148788b7f8f31c0ec872da830204 183186 libdevel optional libselinux1-dev_2.1.13-2_amd64.deb
 ee4f8a882e9bd22f4c6a636e73469320 160442 ruby optional ruby-selinux_2.1.13-2_amd64.deb
 ac575769e541d51028140ebed4783568 32544 oldlibs extra libselinux-ruby1.8_2.1.13-2_all.deb
 8802becee046ab36c3b638b49a938d1d 209968 python optional python-selinux_2.1.13-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBCAAGBQJRmkShAAoJEB/FiR66sEPVOugIAKJZOnmtVmSkWFMy20hpXqk2
3Mwpq0p7hqddsYlrbLfZAjBdMPVKUuN2J46T3R3ohiz/vB0mLldAdE2swmYE+eAU
/TcuwpfxF2dNoshbfq2VOyK3KnSH7GDt+WTQ9Qp8VsStQhRlF3dGnycMqyd/8YUL
T5dp2ZOg/D6Msr/IGl4ivFh6Qr6BjKhOdJrJm3OunD8c1g7SFtIPMdTh/KrhlGju
9JGm3xn6EFGhejdv3MzZuC+R6JVFtLbB66D2SWPmL8596X8i5mDCiT4Adwo3KeOI
zPdaQUHY0Itrueg6+aaOCIF+CWdBl18ehbqDrtqLsxsi2eyc7IGgC3ztSgWJqqM=
=kov7
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 18 Jun 2013 07:29:50 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 08:58:26 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.