Using gcc 4.1.0 I get link errors (multiple definition) when linking klib =
with my static library that has a C file that includes klib.h.
Below is a patch that fixed this issue for me.
--- lkcdutils/lib/libklib/include/kl_dump.h (revision 1377)
+++ lkcdutils/lib/libklib/include/kl_dump.h (working copy)
@@ -64,9 +64,9 @@
/* Variables that contain page size, mask etc. used in dump format
* (this is not the system page size stored in the dump header)
+extern uint64_t KL_DUMP_PAGE_SIZE;
+extern uint64_t KL_DUMP_PAGE_MASK;
+extern uint64_t KL_DUMP_PAGE_SHIFT;
/* Dump header offset changed from 4k to 64k to support multiple page =
#define KL_DUMP_HEADER_OFFSET (1ULL << 16)
From: Michael Holzheu <HOLZHEU@de...> - 2007-06-06 09:27:22
lkcd-devel-bounces@... wrote on 06/05/2007 06:22:45 PM:
> Using gcc 4.1.0 I get link errors (multiple definition) when linking
> klib with my static library that has a C file that includes klib.h.
> Below is a patch that fixed this issue for me.
Yes, that's obviously a bug. But I don't understand, why lcrash builds
at all with those definitions in kl_dump.h.
Get latest updates about Open Source Projects, Conferences and News.