All of lore.kernel.org
 help / color / mirror / Atom feed
From: thomas_tsai <thomas@nchc.org.tw>
To: reiserfs-devel@vger.kernel.org
Subject: compile error from libreiser4
Date: Fri, 22 May 2009 00:42:03 -0700 (PDT)	[thread overview]
Message-ID: <23665978.post@talk.nabble.com> (raw)


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.


                 reply	other threads:[~2009-05-22  7:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23665978.post@talk.nabble.com \
    --to=thomas@nchc.org.tw \
    --cc=reiserfs-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.