reiserfs-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: reiser4progs - linking to libreiser4 gives "undefined reference to misc_str2long"
       [not found] <20201116161230.7be6dcf0@pineapple>
@ 2020-11-17 21:11 ` Edward Shishkin
  0 siblings, 0 replies; only message in thread
From: Edward Shishkin @ 2020-11-17 21:11 UTC (permalink / raw)
  To: Matthew White; +Cc: ReiserFS development mailing list

On 11/16/2020 04:15 PM, Matthew White wrote:
> Hello,

Hi Matthew,

> 
> I was having problems linking to libreiser4 once it is installed into my
> system, even compiling a dumb program fails (see test-libreiser4.c).


Ummm, indeed, it doesn't work. The next surprise for me is that it
also doesn't work if we build/install reiser4progs rolled back to the
old commits. Whereas reiser4 support in grub also includes libreiser4.h
header:

https://github.com/edward6/reiser4progs/blob/master/grub-0.97-reiser4-20060227.diff

It could happen that I missed something though..

> 
> Compiler: gcc (Gentoo 9.3.0-r1 p3) 9.3.0
> OS: Gentoo GNU/Linux
> reiser4progs versions tested: v1.2.1, v2.0.2, v2.0.3, v2.0.4 (github)
> 
> $ /usr/bin/ld: /lib64/libreiser4-1.2.so.1: undefined reference to `misc_str2long'
> $ collect2: error: ld returned 1 exit status
> 
> I attach the dumb program used for testing 'test-libreiser4.c' and also
> patches to https://github.com/edward6/reiser4progs [master (v1.2.1) and
> format41 (v2.0.4) branches].
> 
> Details are in the patches and also here: https://bugs.gentoo.org/754924
> 
> The solution I adopted is to compile libreiser4 (libreiser4/Makefile.am)
> linking it also to the libmisc convenience library (static libtool).
> 
> Is there a specific reason to not making libmisc an installable library?


I don't know such reasons. I'll merge your patches.
Double thanks for the "format41" branch :)

Edward.


> Or, instead, why not linking libreiser4 to a static libmisc, and then to
> use just libreiser4 when lining demo/* and progs/* (Makefile.am files)?
> 
> Thanks.
> - Matthew
> 
> --
> 
> Matthew White <mehw.is.me@inventati.org>
> 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-17 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20201116161230.7be6dcf0@pineapple>
2020-11-17 21:11 ` reiser4progs - linking to libreiser4 gives "undefined reference to misc_str2long" Edward Shishkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).