#6 undefined references when configured with --disable-jack


When configuring synthv1 (SVN trunk) with ./configure --disable-jack, make gives the following error:

g++ -Wl,-O1 -o synthv1_jack .obj_jack/synthv1.o .obj_jack/synthv1_jack.o .obj_jack/synthv1_nsm.o .obj_jack/synthv1widget.o .obj_jack/synthv1widget_env.o .obj_jack/synthv1widget_filt.o .obj_jack/synthv1widget_wave.o .obj_jack/synthv1widget_knob.o .obj_jack/synthv1widget_preset.o .obj_jack/synthv1widget_status.o .obj_jack/synthv1widget_config.o .obj_jack/synthv1widget_jack.o .obj_jack/moc_synthv1_nsm.o .obj_jack/moc_synthv1widget.o .obj_jack/moc_synthv1widget_env.o .obj_jack/moc_synthv1widget_filt.o .obj_jack/moc_synthv1widget_wave.o .obj_jack/moc_synthv1widget_knob.o .obj_jack/moc_synthv1widget_preset.o .obj_jack/moc_synthv1widget_status.o .obj_jack/moc_synthv1widget_jack.o .obj_jack/qrc_synthv1.o -L/usr/lib64/qt4 -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -llo -lQtXml -L/usr/lib64/qt4 -lQtGui -L/usr/X11R6/lib -lQtCore -lgthread-2.0 -lglib-2.0 -lpthread
.obj_jack/synthv1_jack.o: In function synthv1_jack::process(unsigned int)': synthv1_jack.cpp:(.text+0x154): undefined reference tojack_port_get_buffer'
synthv1_jack.cpp:(.text+0x169): undefined reference to jack_port_get_buffer' .obj_jack/synthv1_jack.o: In functionsynthv1_jack::open(char const*)':
synthv1_jack.cpp:(.text+0x1eb): undefined reference to jack_client_open' synthv1_jack.cpp:(.text+0x200): undefined reference tojack_get_sample_rate'
synthv1_jack.cpp:(.text+0x2a6): undefined reference to jack_port_register' synthv1_jack.cpp:(.text+0x2f5): undefined reference tojack_port_register'
synthv1_jack.cpp:(.text+0x324): undefined reference to jack_set_process_callback' .obj_jack/synthv1_jack.o: In functionsynthv1_jack::close()':
synthv1_jack.cpp:(.text+0x3d7): undefined reference to jack_port_unregister' synthv1_jack.cpp:(.text+0x417): undefined reference tojack_port_unregister'
synthv1_jack.cpp:(.text+0x4aa): undefined reference to jack_client_close' .obj_jack/synthv1_jack.o: In functionsynthv1_jack::activate()':
synthv1_jack.cpp:(.text+0x354): undefined reference to jack_activate' .obj_jack/synthv1_jack.o: In functionsynthv1_jack::deactivate()':
synthv1_jack.cpp:(.text+0x37a): undefined reference to jack_deactivate' collect2: error: ld returned 1 exit status make[2]: *** [synthv1_jack] Error 1 make[2]: Leaving directory/home/kalle/Sources/synthv1-svn/src'
make[1]: [sub-src-src_jack-pro-make_default] Error 2
make[1]: Leaving directory `/home/kalle/Sources/synthv1-svn'
[jack] Error 2


  • Rui Nuno Capela

    Rui Nuno Capela - 2013-05-04

    please note that the default combined build is not effective when you either configure --disable-jack or --disable-lv2.

    please follow, in either case,

    a. to build the jack standalone client and only:

    ./configure --disable-lv2
    make jack
    make install_jack

    b. to build the lv2 plugin and only:

    ./configure --disable-jack
    make lv2
    make install_lv2


  • Rui Nuno Capela

    Rui Nuno Capela - 2013-05-04
    • status: open --> wont-fix
  • Karl Lindén

    Karl Lindén - 2013-05-04

    In my opinion jack should not be included in all targets if --disable-jack is given. Likewise for lv2. I'm attaching a patch that will let them to be conditionally included in all targets.

    • Rui Nuno Capela

      Rui Nuno Capela - 2013-05-04

      brilliant! i'll apply and commit right away. :)


  • Rui Nuno Capela

    Rui Nuno Capela - 2013-05-04
    • status: wont-fix --> pending
  • Karl Lindén

    Karl Lindén - 2013-05-04

    Perfect! Thank you very much!

  • Rui Nuno Capela

    Rui Nuno Capela - 2014-03-07
    • status: pending --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks