Package: libselinux1-dev
Version: 1.30.27-3
Severity: serious

From my pbuilder build log of e2fsprogs:

...
        CC prof_err.c
        LD e2fsck.shared
        CP e2fsck
        LD e2fsck.static
/usr/lib/libselinux.a(setrans_client.o): In function 
`fini_context_translations':
/home/srivasta/libselinux-1.30.27/src/setrans_client.c:210: undefined reference 
to `pthread_mutex_lock'
/home/srivasta/libselinux-1.30.27/src/setrans_client.c:211: undefined reference 
to `pthread_mutex_lock'
...
collect2: ld returned 1 exit status
make[3]: *** [e2fsck.static] Error 1
make[3]: Leaving directory `/tmp/buildd/e2fsprogs-1.39/debian/BUILD-STD/e2fsck'
make[2]: *** [all-progs-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/e2fsprogs-1.39/debian/BUILD-STD'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/e2fsprogs-1.39/debian/BUILD-STD'
make: *** [debian/stampdir/build-std-stamp] Error 2

Looking at /usr/lib/pkgconfig/libselinux.pc, that file has no declaration of
the static library's need for -lpthread.  I think that needs to go into
Libs.private, although I could be remembering wrong.

I don't know whether e2fsprogs actually uses pkgconfig, but if it doesn't
that's a separate bug to be filed (needs to either use pkgconfig or add
-lpthread manually).
-- 
Daniel Schepler

Reply via email to