[Tux3] Fwd: [PATCH] Fix "undefined reference to 'atdict'"
Daniel Phillips
phillips at phunq.net
Sun Sep 7 01:05:03 PDT 2008
---------- Forwarded Message ----------
Subject: [PATCH] Fix "undefined reference to 'atdict'"
Date: Saturday 06 September 2008 22:40
From: Tero Roponen <tero.roponen at gmail.com>
To: phillips at phunq.net
[I'm not subscribed to tux3 list, I read it via gmane.comp.file-systems.tux3]
$ gcc --version
gcc (GCC) 4.3.2 20080905 (Red Hat 4.3.2-3)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ make
gcc -std=gnu99 -Wall ileaf.c -o ileaf
/tmp/cc7tqhMI.o: In function `ileaf_need':
ileaf.c:(.text+0xaeb): undefined reference to `atdict'
/tmp/cc7tqhMI.o: In function `ileaf_lookup':
ileaf.c:(.text+0xdb3): undefined reference to `atdict'
/tmp/cc7tqhMI.o: In function `ileaf_split':
ileaf.c:(.text+0x1075): undefined reference to `atdict'
/tmp/cc7tqhMI.o: In function `ileaf_merge':
ileaf.c:(.text+0x131c): undefined reference to `atdict'
ileaf.c:(.text+0x1338): undefined reference to `atdict'
/tmp/cc7tqhMI.o:ileaf.c:(.text+0x1620): more undefined references to `atdict' follow
collect2: ld returned 1 exit status
make: *** [ileaf] Error 1
---
diff -r 224d18660f13 user/test/ileaf.c
--- a/user/test/ileaf.c Sat Sep 06 22:17:34 2008 -0700
+++ b/user/test/ileaf.c Sun Sep 07 08:33:19 2008 +0300
@@ -29,7 +29,7 @@
* leaf->ibase, the base inum of the table block.
*/
-inline unsigned atdict(u16 *dict, unsigned at)
+static inline unsigned atdict(u16 *dict, unsigned at)
{
return at ? *(dict - at) : 0;
}
-------------------------------------------------------
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list