• Qmailanalog and .tbss mismatches

    .tbss mismatches? what on earth is that? Well I just tried to compile qmailanalog and ran into this error:

    ./load matchup strerr.a getln.a substdio.a stralloc.a \
    alloc.a error.a str.a fs.a case.a
    /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in strerr.a(strerr_sys.o)
    /lib/libc.so.6: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make: *** [matchup] Error 1

    There are exactly three results in google for errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in strerr.a(strerr_sys.o) and one of them is an a language I don’t understand. Fortunately I have compiled enough times from source on different versions of Fedora Core to know that that this is related to a missing krb5.h or an errno.h turns out to be the latter.

    The solution is simple. Edit errno.h in the qmailanalog files and replace the line that says

    extern int errno;

    with

    #include <errno.h>

    You will still get a heap of warning but you can ignore them. And the installation will complete ok. Figuring out how to use qmailanalog is another kettle of fish.

    Wednesday, January 31st, 2007 at 13:38
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
TOP