Ronald Landheer-Cieslak
7/27/2004 5:58:00 PM
Rick wrote:
> Dear Ronald,
>
> After several attempts, I am still unable to install JAIL properly.
>
> Upon installation:
> ./configure
> make
> make install
> There were no errors except for a few in which the libmemory/arch is missing
> the include folder as well as the config.arch file.
>
> I then try to recompile some test files. All of them seem to have linker
> problems:
>
> E.g.
> in libmemory/test1.c
> when i do a: gcc test1.c,
> I get this:
>
> /home/rickgoh/tmp/ccMbBWZy.o(.text+0x16): In function `main':
> : undefined reference to `smr_init'
> /home/rickgoh/tmp/ccMbBWZy.o(.text+0x23): In function `main':
> : undefined reference to `smr_malloc'
> /home/rickgoh/tmp/ccMbBWZy.o(.text+0x34): In function `main':
> : undefined reference to `smr_free'
> /home/rickgoh/tmp/ccMbBWZy.o(.text+0x41): In function `main':
> : undefined reference to `smr_malloc'
> /home/rickgoh/tmp/ccMbBWZy.o(.text+0x52): In function `main':
> : undefined reference to `smr_free'
>
> Please advise.
The libmemory test files need libmemory - smr_free is an entry point in
the libmemory library, as is smr_malloc, smr_init, etc. Hence, to build
the programs you'll have to link with the already-built libmemory.
If parts of the arch directory tree are missing (which is possible: the
released configury had problems which is why I'm replacing it at the
moment) your build probably won't work.
The libcontain-0.2-alpha1 archive does contain the arch tree, so you
could just copy it from there (they're the same files).
Otherwise, if you want to hand-build the tests, you will have to build
the library first and link with it. (See the -l option of gcc).
If you want more specific help, I'll probably have to know what platform
you're on, etc., but that would be OT on this group. Mail to
jail-ust-devel at lists dot sourceforge dot net in that case (you'll
have to subscribe to be able to mail).
rlc
NB: when I'm done updating the configury, I'll wrap up a new libmemory
distro that should compile OOTB..