Qmailanalog and .tbss mismatches

January 31, 2007

.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.

Posted by raditha at January 31, 2007 1:38 PM
Your Ad Here

 

Jabber  |  Linux  |  mySQL  |  PHP  |  Java  |  Site Map  |  Wiki

Downloads  |  About  |  Links  |  Contact  |  Home

 

Copyright © Raditha Dissanayake 2003 - 2007

Terms of Use  |  Privacy

 

 

January 2007
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31