Your message dated Mon, 25 Sep 2006 23:32:09 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#389291: fixed in libselinux 1.30.28-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: dpkg
Version: 1.13.22
Severity: serious
Justification: no longer builds from source

Hello,

Since libselinux (1.30.28-1), dpkg fails to build from source.

The failing command is the following:

gcc -std=gnu99  -Wall -g -O2  -Wl,-O1 -o dpkg  archives.o cleanup.o configure.o 
depcon.o enquiry.o errors.o filesdb.o help.o main.o packages.o processarc.o 
remove.o select.o update.o  ../lib/libdpkg.a -Wl,-Bstatic -lz -Wl,-Bdynamic 
-Wl,-Bstatic -lbz2 -Wl,-Bdynamic -Wl,-Bstatic -lselinux -lpthread -lsepol   
-Wl,-Bdynamic
processarc.o: In function `process_archive':
../../src/processarc.c:166: warning: the use of `tmpnam' is dangerous, better 
use `mkstemp'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libpthread.a(ptw-write.o): In 
function `write':
<stdin>:(.text+0x25): undefined reference to `__syscall_error'
<stdin>:(.text+0x55): undefined reference to `__syscall_error'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libpthread.a(ptw-read.o): In 
function `read':
<stdin>:(.text+0x25): undefined reference to `__syscall_error'
<stdin>:(.text+0x55): undefined reference to `__syscall_error'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libpthread.a(ptw-close.o): In 
function `close':
<stdin>:(.text+0x1f): undefined reference to `__syscall_error'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libpthread.a(ptw-close.o):<stdin>:(.text+0x4a):
 more undefined references to `__syscall_error' follow
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libpthread.a(pthread.o): In 
function `__pthread_reset_main_thread':
/build/buildd/glibc-2.3.6.ds1/build-tree/glibc-2.3.6/linuxthreads/pthread.c:1153:
 undefined reference to `_errno'
/build/buildd/glibc-2.3.6.ds1/build-tree/glibc-2.3.6/linuxthreads/pthread.c:1154:
 undefined reference to `_h_errno'
/build/buildd/glibc-2.3.6.ds1/build-tree/glibc-2.3.6/linuxthreads/pthread.c:1155:
 undefined reference to `_res'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libpthread.a(pthread.o): In 
function `pthread_initialize':
/build/buildd/glibc-2.3.6.ds1/build-tree/glibc-2.3.6/linuxthreads/pthread.c:551:
 undefined reference to `_res'
/build/buildd/glibc-2.3.6.ds1/build-tree/glibc-2.3.6/linuxthreads/pthread.c:617:
 undefined reference to `_dl_init_static_tls'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libpthread.a(pthread.o): In 
function `__pthread_initialize_minimal':
/build/buildd/glibc-2.3.6.ds1/build-tree/glibc-2.3.6/linuxthreads/pthread.c:319:
 undefined reference to `__libc_setup_tls'
/build/buildd/glibc-2.3.6.ds1/build-tree/glibc-2.3.6/linuxthreads/pthread.c:377:
 undefined reference to `_errno'
/build/buildd/glibc-2.3.6.ds1/build-tree/glibc-2.3.6/linuxthreads/pthread.c:378:
 undefined reference to `_h_errno'
collect2: ld returned 1 exit status


In libselinux (1.30.28-1), -lpthread was added to the libselinux's pkg-config.

dpkg is statically linked against the SELinux library, thus against the
libpthread, which requires some symbols from libc.

Adding -lc (e.g. in m4/libs.m4) before -lpthread fixes this issue, but I'm
not sure it's the right way.
i.e. using:
    -lc -Wl,-Bstatic `pkg-config --static --libs libselinux` -Wl,-Bdynamic
instead of:
    -Wl,-Bstatic `pkg-config --static --libs libselinux` -Wl,-Bdynamic

Does anybody think it's correct?
Is there a way to fix it in the libselinux's pkg-config?
(I'm adding Manoj in CC in case he has an idea)

Kind Regards,
-- 
Nekral


--- End Message ---
--- Begin Message ---
Source: libselinux
Source-Version: 1.30.28-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:

libselinux1-dev_1.30.28-2_i386.deb
  to pool/main/libs/libselinux/libselinux1-dev_1.30.28-2_i386.deb
libselinux1_1.30.28-2_i386.deb
  to pool/main/libs/libselinux/libselinux1_1.30.28-2_i386.deb
libselinux_1.30.28-2.diff.gz
  to pool/main/libs/libselinux/libselinux_1.30.28-2.diff.gz
libselinux_1.30.28-2.dsc
  to pool/main/libs/libselinux/libselinux_1.30.28-2.dsc
python-selinux_1.30.28-2_i386.deb
  to pool/main/libs/libselinux/python-selinux_1.30.28-2_i386.deb
selinux-utils_1.30.28-2_i386.deb
  to pool/main/libs/libselinux/selinux-utils_1.30.28-2_i386.deb



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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <[EMAIL PROTECTED]> (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 [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 26 Sep 2006 01:11:35 -0500
Source: libselinux
Binary: libselinux1-dev selinux-utils libselinux1 python-selinux
Architecture: source i386
Version: 1.30.28-2
Distribution: unstable
Urgency: high
Maintainer: Manoj Srivastava <[EMAIL PROTECTED]>
Changed-By: Manoj Srivastava <[EMAIL PROTECTED]>
Description: 
 libselinux1 - SELinux shared libraries
 libselinux1-dev - SELinux development headers
 python-selinux - Python bindings to SELinux shared libraries
 selinux-utils - SELinux utility programs
Closes: 389291
Changes: 
 libselinux (1.30.28-2) unstable; urgency=high
 .
   * Bug fix: "dpkg FTBFS", thanks to Nicolas François. Urgency high, since
     it makes an unrelated essential package FTBS,         (Closes: #389291).
Files: 
 8cee9b40f786f7215002830dc332c797 703 libs optional libselinux_1.30.28-2.dsc
 ad4d157306ba4f66f80b83ef3214ccc1 67764 libs optional 
libselinux_1.30.28-2.diff.gz
 f129a79704c897e8cba74a2fbfa73389 43506 admin optional 
selinux-utils_1.30.28-2_i386.deb
 a8fc9836b3c8dcecef1bec29cd3be550 58174 libs required 
libselinux1_1.30.28-2_i386.deb
 d43ba169cb6889cdc7ced3b6d5dc0448 202440 libdevel optional 
libselinux1-dev_1.30.28-2_i386.deb
 cad50162dceced46c8a29ac2cad4d860 61304 devel optional 
python-selinux_1.30.28-2_i386.deb

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

iD8DBQFFGMcrIbrau78kQkwRAlNWAKC59Ibqtn3gbAY1yKLxsF0HpeG88ACg8/Cp
l6lAEj6+skYD1QxlqiIJk9Y=
=QV8a
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to