* compile error from libreiser4
@ 2009-05-22 7:42 thomas_tsai
0 siblings, 0 replies; only message in thread
From: thomas_tsai @ 2009-05-22 7:42 UTC (permalink / raw)
To: reiserfs-devel
Hello reiserfs
I use libreiser4.a to build a small test and get an error
ex:
I write a test reiser4version.c
#include <stdio.h>
#include <reiser4/libreiser4.h>
int main(int argc, char **argv){
const char *lib_ver;
lib_ver = (const char *)libreiser4_version();
printf("%s\n", lib_ver);
return 0;
}
compile it
gcc reiser4_version.c -lreiser4 -laal
get error message
In function `reiser4_profile_override':
(.text+0x18d): undefined reference to `misc_str2long'
collect2: ld returned 1 exit status
IMHO, It's a link problem about misc_str2long because the function is
defined in libmisc/misc.c.
nm libreiser4.a | grep misc_str2long
U misc_str2long
nm libmisc.a | grep misc_str2long
000003d0 T misc_str2long
My coworkers, Jazz Wang fix the problem and it works well now...
the patch file here
http://www.nabble.com/file/p23665978/profile.patch profile.patch
I really hope it could be patch to upstream in the future version.
tkx in advanced.
--
View this message in context: http://www.nabble.com/compile-error-from-libreiser4-tp23665978p23665978.html
Sent from the ReiserFS - General mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-22 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-22 7:42 compile error from libreiser4 thomas_tsai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.