Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I used to use cdb a lot for random access of small key/value pairs (~100k entries, 10kb per entry). It's effectively a hashtable on disk.

https://cr.yp.to/cdb.html




> No random limits: cdb can handle any database up to 4 gigabytes.

I suppose this could easily be changed, right? I could not compile it though. I got this error:

  /usr/bin/ld: errno: TLS definition in /lib/x86_64-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in cdb.a(cdb.o)
  /usr/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: error adding symbols: bad value
I never came across this before. Ideas as to why or how to fix?

Nevermind, I fixed it. I added `#include <errno.h>` to `error.h`.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: