Re: Trouble compiling cvm with bglibs

Mikael Fridh <[email protected]> Wed, 06 Jul 2005 19:58:51 +0200
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
Graham Miller wrote:
> Hi all,
> 
> I have had some trouble compiling cvm-0.71 on a CentOS4 box.
> 
> bglibs version bglibs-1.022
> cvm version cvm-0.71
> 
> 1/ It did not compile ./instshow, ./installer, or ./instcheck
> 
> 2/ When I tried to use "make install", it barked about undefined reference to 'outbuf' and various function names related to that (obuf_putf, obuf_putc, obuf_write, obuf_flush).
> 
> 3/ It also barked about undefined reference to string library functions (msg_die, str_copys, str_copy, str_catc, str_cats, wrap_str).
> 
> I notice that both sets are found in the sub-directories (iobuf, str) of the bglibs install. I checked the Makefile and found the following:
> 
> A/ It did not compile the installers by default.
> 
> B/ The ./load lines for the 3 installer programs did not have a library option on the command line.
> 
> So I adjusted the Makefile (I know it says not to in the file... wants to use 'spac') and it then compiled OK for me.
> 
> The attached patch is what worked for me. I would not recommend anyone use it on a production server until Bruce sanctions the fixes or produces another patch/version.

Works for me too!

> Bruce, would you mind checking this and commenting on its correctness. I guess there is some backend spac stuff that needs changing to make this work, or is this behaviour a feature that I should not have fixed?

Doesn't sound very feature-like to me. First I thought the issue was 
that I was missing bglibs or had too old bglibs versions but I didn't have.

Also, there's something wrong in the relations bglibs<->cvm:
bglibs-1.022]$ head -n1 conf-{bin,lib}
==> conf-bin <==
/usr/local/bin

==> conf-lib <==
/usr/local/lib

cvm-0.71]$ head -n1 conf-bg*
==> conf-bgincs <==
/usr/local/bglibs/include

==> conf-bglibs <==
/usr/local/bglibs/lib

bglibs by default installs into /usr/local/{bin,lib}
cvm by default expects bglibs in /usr/local/bglibs/{bin,lib}

I decided to change the bglibs install path from local to local/bglibs 
because I like to keep things separated.

--
Mike