Re: cdb does not compile on Fedora 14 linux

Alan Thew <[email protected]> Mon, 18 Jul 2011 10:11:24 +0100 (BST)
Newsgroups gmane.comp.djb.cdb
Message-ID <[email protected]>
On Mon, 18 Jul 2011 09:57 , [email protected] <[email protected]> said:

<snip>
> 	fmt_ulong.o uint32_unpack.o byte_diff.o uint32_pack.o \
> 	scan_ulong.o
> ./load cdbget cdb.a buffer.a unix.a byte.a
> /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in cdb.a(cdb.o)
> /lib/libc.so.6: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [cdbget] Error 1
>
> kbriggs@gold:~/Download/cdb-0.75> cat SYSDEPS
> VERSION
> systype
> uint32.h

Have you tried


0.70-errno.patch

--- error.h.orig        2003-03-05 15:42:51.000000000 -0500
+++ error.h     2003-03-05 15:43:00.000000000 -0500
@@ -1,7 +1,7 @@
  #ifndef ERROR_H
  #define ERROR_H

-extern int errno;
+#include <errno.h>

  extern int error_intr;
  extern int error_nomem;


Alan Thew
>
>
> Keith