Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

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

svn_trunk
closed
2014-03-07
2013-05-04
Karl Lindén
No

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'
make:
[jack] Error 2

Discussion

  • 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
    



    hth.
    cheers

     
    • 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.

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

      thanks

       
    • status: wont-fix --> pending
     
  • fixed on svn trunk [r131]
    thanks

     

    Related

    Commit: [r131]

  • Karl Lindén
    Karl Lindén
    2013-05-04

    Perfect! Thank you very much!

     
    • status: pending --> closed