Giter Site home page Giter Site logo

fails to build in mixed mode about jack2 HOT 9 CLOSED

jackaudio avatar jackaudio commented on August 14, 2024
fails to build in mixed mode

from jack2.

Comments (9)

falkTX avatar falkTX commented on August 14, 2024

I fixed it manually in the mean time, but the build still fails later on.
It was a bit hacky, has I just wanted to get jack2 to build.
My changes - http://kxstudio.sourceforge.net/Paste/repo/LAUJb

so now it fails with:
[177/306] cxxprogram: build/common/Jackdmp.cpp.1.o build/dbus/reserve.c.1.o build/dbus/audio_reserve.c.1.o -> build/linux/jackd
18:51:38 runner ['/usr/bin/g++', 'common/Jackdmp.cpp.1.o', 'dbus/reserve.c.1.o', 'dbus/audio_reserve.c.1.o', '-o', '/home/falktx/Personal/FOSS/KXStudio/PPA/Main/LADI-jack2-486f16a/build/linux/jackd', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Lcommon', '-ljackserver', '-lpthread', '-lcelt0', '-lrt', '-ldl', '-lm', '-lstdc++', '-ldbus-1', '-lpthread', '-lrt']
common/libjackserver.so: undefined reference to `jack_attach_shm_read'

from jack2.

sletz avatar sletz commented on August 14, 2024

It seems that you'e compiling with old shared memory model, and it seems the code was not updated recently. I guess jack_attach_shm_read has to be defined as a copy of jack_attach_shm with SHM_RDONLY like:

int
jack_attach_shm_read (jack_shm_info_t* si)
{
if ((si->ptr.attached_at = shmat (jack_shm_registry[si->index].id, 0, SHM_RDONLY)) < 0) {
jack_error ("Cannot attach shm segment (%s)",
strerror (errno));
jack_release_shm_info (si->index);
return -1;
}
return 0;
}

Stéphane

Le 27 oct. 2012 à 19:57, falkTX a écrit :

I fixed it manually in the mean time, but the build still fails later on.
It was a bit hacky, has I just wanted to get jack2 to build.
My changes - http://kxstudio.sourceforge.net/Paste/repo/LAUJb

so now it fails with:
[177/306] cxxprogram: build/common/Jackdmp.cpp.1.o build/dbus/reserve.c.1.o build/dbus/audio_reserve.c.1.o -> build/linux/jackd
18:51:38 runner ['/usr/bin/g++', 'common/Jackdmp.cpp.1.o', 'dbus/reserve.c.1.o', 'dbus/audio_reserve.c.1.o', '-o', '/home/falktx/Personal/FOSS/KXStudio/PPA/Main/LADI-jack2-486f16a/build/linux/jackd', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Lcommon', '-ljackserver', '-lpthread', '-lcelt0', '-lrt', '-ldl', '-lm', '-lstdc++', '-ldbus-1', '-lpthread', '-lrt']
common/libjackserver.so: undefined reference to `jack_attach_shm_read'


Reply to this email directly or view it on GitHub.

from jack2.

falkTX avatar falkTX commented on August 14, 2024

thanks, I've got jack2 to build now.
but it doesn't want to start;

$ jackd -d dummy
jackdmp 1.9.9.4
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
Cannot create shm segment /jack_shared0 (Invalid argument)
Cannot create shared memory segment of size = 82274202
JackShmMem::new bad alloc
jackctl_server_open error...
Failed to open server

from jack2.

sletz avatar sletz commented on August 14, 2024

Why are you using old System V shared memory model (and not POSIX one) ?

Stéphane

Le 27 oct. 2012 à 23:55, falkTX a écrit :

thanks, I've got jack2 to build now.
but it doesn't want to start;

$ jackd -d dummy
jackdmp 1.9.9.4
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
Cannot create shm segment /jack_shared0 (Invalid argument)
Cannot create shared memory segment of size = 82274202
JackShmMem::new bad alloc
jackctl_server_open error...
Failed to open server


Reply to this email directly or view it on GitHub.

from jack2.

falkTX avatar falkTX commented on August 14, 2024

Don't ask me, I'm just trying to build and use jack2.
Previous versions (1.9.8) worked just fine.
Is there a special dependency or ./waf configure flag I need for this?

from jack2.

falkTX avatar falkTX commented on August 14, 2024

in case you need specs, this is Ubuntu 12.04 64bit (~6 month old distro).
GCC at v4.6

from jack2.

sletz avatar sletz commented on August 14, 2024

The normal ./waf is supposed to using the POSIX shared memory model.

  1. Can you log what ./waf configure says?

  2. Hopefully someone of the jack-dev list can help

Stéphane

Le 28 oct. 2012 à 00:08, falkTX a écrit :

Don't ask me, I'm just trying to build and use jack2.
Previous versions (1.9.8) worked just fine.
Is there a special dependency or ./waf configure flag I need for this?


Reply to this email directly or view it on GitHub.

from jack2.

falkTX avatar falkTX commented on August 14, 2024

waf output:

./waf configure --prefix=/usr --classic --libdir=/usr/lib/x86_64-linux-gnu --clients=256 --ports-per-application=2048 --alsa --dbus --firewire --mixed --libdir32=/usr/lib/i386-linux-gnu
Setting top to : /home/falktx/Personal/FOSS/KXStudio/PPA/Main/LADI-jack2-486f16a
Setting out to : /home/falktx/Personal/FOSS/KXStudio/PPA/Main/LADI-jack2-486f16a/build
Checking for 'g++' (c++ compiler) : /usr/bin/g++
Checking for 'gcc' (c compiler) : /usr/bin/gcc
Linux detected
Checking for header samplerate.h : yes
Checking for program pkg-config : /usr/bin/pkg-config
Checking for 'alsa' >= 1.0.18 : yes
Checking for 'libfreebob' >= 1.0.0 : not found
Checking for 'libffado' >= 1.999.17 : yes
Checking for 'dbus-1' >= 1.0.0 : yes
Checking for 'dbus-1' : yes
Checking for header expat.h : yes
Checking for header samplerate.h : yes
Checking for header sndfile.h : yes
Checking for 'celt' >= 0.5.0 : yes
Checking for library readline : yes
Checking for 'celt' >= 0.11.0 : yes
Checking for 'opus' >= 0.9.0 : not found
Install prefix : /usr
Library directory : /usr/lib/i386-linux-gnu
Drivers directory : /usr/lib/x86_64-linux-gnu/jack
Build debuggable binaries : no
C compiler flags : ['-Wall']
C++ compiler flags : ['-Wall']
Linker flags : []
Build doxygen documentation : no
Build Opus netjack2 : no
Build with engine profiling : no
Build with 32/64 bits mixed mode : yes
Build standard JACK (jackd) : yes
Build D-Bus JACK (jackdbus) : yes
Build with ALSA support : yes
Build with FireWire (FreeBob) support : no
Build with FireWire (FFADO) support : yes
D-Bus service install directory : /usr/share/dbus-1/services
'configure' finished successfully (0.592s)

from jack2.

adiknoth avatar adiknoth commented on August 14, 2024

Guys, please read the commit log above. It explains everything.

from jack2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.