[PlanetCCRMA] I've really mucked up my jack installation

Joe Hartley jh@brainiac.com
Thu Jan 27 09:44:03 2005

On 27 Jan 2005 08:40:03 -0800
Fernando Lopez-Lezcano <nando@ccrma.Stanford.EDU> wrote:
> (re: fc1, I'd wait a bit and move to fc2/3)

That's why I'm still on RH9 :)

> Check that jackd is linking to the right libraries:
>   ldd /usr/bin/jackd
> (ie: that the libraries are in the /usr hierarchy, that should not be
> the problem in this case). 

They all look fine and after the rpm installation, but jackstart continues
to segfault.

> > (Or, conversely, how can install jack from CVS with a working jackstart?)
> In my spec file I'm using something like:
> configure --prefix=/usr ...then some more automatically set stuff for
> directories... --enable-static --enable-stripped-jackd 
> --with-default-tmpdir=/var/lib/jack/tmp --enable-capabilities 
> Probably the last two are the important ones for -R. 
> Let me know if current jack cvs solves your problems...

I'd found that and compiled with both those entries.

The CVS build works perfectly well, except for the fact that I can't
get the realtime stuff working because of some permission issue that
jackstart is supposed to fix.

xtc:~% ls -l /usr/bin/jackstart
-rwsr-xr-x    1 root     root        51946 Jan 27 12:02 /usr/bin/jackstart

That looks fine...
[jh@xtc jackd]# ldd /usr/bin/jackstart
        libcap.so.1 => /lib/libcap.so.1 (0x4002d000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40032000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40054000)
        libdl.so.2 => /lib/libdl.so.2 (0x400a4000)
        libc.so.6 => /lib/i686/libc.so.6 (0x400a8000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[jh@xtc jackd]# ls -l /lib/libcap.so.1*
lrwxrwxrwx    1 root     root           14 Aug  4  2003 /lib/libcap.so.1 -> libcap.so.1.10
-rwxr-xr-x    1 root     root        10916 Jan 24  2003 /lib/libcap.so.1.10

This looks good as well.

xtc:/usr1/jack/jackd% /usr/bin/jackstart -R -p512 -dalsa -dice1712 -r44100 -p256 -n2 -zs -H -M
jackd 0.99.49
Copyright 2001-2005 Paul Davis and others.
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
cannot lock down memory for jackd (Operation not permitted)

This is not so good.

On the plus side here, jackd and jackstart run fine as root.  I suppose
I can start jack and my apps as root, but that's just a workaround.  I really
wonder what the heck went wrong here.

Fernando, do you do anything extra to build jackstart other than a
'cd jackd ; make jackstart'?  It doesn't build or install by default, and
I wonder if I've missed something there.

Update: I just pulled the 0.99.0 source from the webpage and built that.
It segfaults just like the 0.99 RPM from the Planet!  Looks like I'm getting
locked into the CVS version, which will be fine if I can unlock the riddle
of jackstart.

Thanks again for the insight.
       Joe Hartley - UNIX/network Consultant - jh@brainiac.com
Without deviation from the norm, "progress" is not possible. - FZappa