rust-portaudio icon indicating copy to clipboard operation
rust-portaudio copied to clipboard

link error on ubuntu 16.10

Open bburdette opened this issue 8 years ago • 3 comments

looks like jack functions are no longer there? should I be using a specific version of portaudio?

bburdette@BB-5520:~/code/cyclofraust$ apt list --installed | grep portaudio

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libportaudio2/yakkety,now 19+svn20140130-1.1 amd64 [installed]
bburdette@BB-5520:~/code/cyclofraust$ cargo build
warning: In file included from cpp/basic.cpp:446:0:
warning: cpp/noise.cpp: In member function ‘virtual void mydsp::buildUserInterface(UI*)’:
warning: cpp/noise.cpp:94:36: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
warning:    interface->openVerticalBox("0x00");
warning:                                     ^
warning: cpp/noise.cpp:96:74: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
warning:    interface->addVerticalSlider("Volume", &fVslider0, 0.5f, 0.f, 1.f, 0.1f);
warning:                                                                           ^
   Compiling fraust_test v0.1.0 (file:///home/bburdette/code/cyclofraust)
warning: unused import: `std::fmt::format`, #[warn(unused_imports)] on by default
 --> src/main.rs:8:5
  |
8 | use std::fmt::format;
  |     ^^^^^^^^^^^^^^^^

warning: unused import: `std::thread`, #[warn(unused_imports)] on by default
  --> src/main.rs:10:5
   |
10 | use std::thread;
   |     ^^^^^^^^^^^

warning: unused import: `std::cmp::min`, #[warn(unused_imports)] on by default
  --> src/main.rs:12:5
   |
12 | use std::cmp::min;
   |     ^^^^^^^^^^^^^

warning: variant is never used: `KeyPress`, #[warn(dead_code)] on by default
  --> src/main.rs:29:3
   |
29 |   KeyPress,
   |   ^^^^^^^^

warning: variant is never used: `KeyMove`, #[warn(dead_code)] on by default
  --> src/main.rs:30:3
   |
30 |   KeyMove,
   |   ^^^^^^^

warning: field is never used: `keyindex`, #[warn(dead_code)] on by default
  --> src/main.rs:37:3
   |
37 | , keyindex: i32
   |   ^^^^^^^^^^^^^

warning: field is never used: `position`, #[warn(dead_code)] on by default
  --> src/main.rs:38:3
   |
38 | , position: f32
   |   ^^^^^^^^^^^^^

warning: constant item is never used: `CHANNELS`, #[warn(dead_code)] on by default
  --> src/main.rs:41:1
   |
41 | const CHANNELS: i32 = 2;
   | ^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant item is never used: `NUM_SECONDS`, #[warn(dead_code)] on by default
  --> src/main.rs:42:1
   |
42 | const NUM_SECONDS: i32 = 5;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused variable: `loopcount`, #[warn(unused_variables)] on by default
  --> src/main.rs:81:9
   |
81 |     let mut loopcount = 0;
   |         ^^^^^^^^^^^^^

warning: unused variable: `buflen`, #[warn(unused_variables)] on by default
  --> src/main.rs:82:9
   |
82 |     let mut buflen = 0;
   |         ^^^^^^^^^^

warning: unused variable: `bufidx`, #[warn(unused_variables)] on by default
  --> src/main.rs:84:9
   |
84 |     let mut bufidx = bufmaxu - 1;
   |         ^^^^^^^^^^

warning: unused variable: `s`, #[warn(unused_variables)] on by default
   --> src/main.rs:163:10
    |
163 |       Ok(s) => println!("oscthread exited ok"),
    |          ^

warning: variable does not need to be mutable, #[warn(unused_mut)] on by default
  --> src/main.rs:81:9
   |
81 |     let mut loopcount = 0;
   |         ^^^^^^^^^^^^^

warning: variable does not need to be mutable, #[warn(unused_mut)] on by default
  --> src/main.rs:82:9
   |
82 |     let mut buflen = 0;
   |         ^^^^^^^^^^

warning: variable does not need to be mutable, #[warn(unused_mut)] on by default
  --> src/main.rs:84:9
   |
84 |     let mut bufidx = bufmaxu - 1;
   |         ^^^^^^^^^^

warning: unused result which must be used, #[warn(unused_must_use)] on by default
   --> src/main.rs:106:5
    |
106 |     printPaDev(id, &pa);
    |     ^^^^^^^^^^^^^^^^^^^^

warning: unused variable: `src`, #[warn(unused_variables)] on by default
   --> src/main.rs:188:15
    |
188 |     let (amt, src) = try!(socket.recv_from(&mut buf));
    |               ^^^

warning: unused variable: `e`, #[warn(unused_variables)] on by default
   --> src/main.rs:193:11
    |
193 |       Err(e) => {
    |           ^

warning: unused result which must be used, #[warn(unused_must_use)] on by default
   --> src/main.rs:200:5
    |
200 |     match inmsg {
    |     ^

warning: function `printPaDev` should have a snake case name such as `print_pa_dev`, #[warn(non_snake_case)] on by default
   --> src/main.rs:258:1
    |
258 | fn printPaDev(idx: pa::DeviceIndex, pado: &pa::PortAudio) -> Result<(), pa::Error> {
    | ^

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/bburdette/code/cyclofraust/target/debug/deps/fraust_test-52b521aaa15f3f52.0.o" "-o" "/home/bburdette/code/cyclofraust/target/debug/deps/fraust_test-52b521aaa15f3f52" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/bburdette/code/cyclofraust/target/debug/deps" "-L" "/home/bburdette/code/cyclofraust/target/debug/build/fraust_test-4a3fc166d2021869/out" "-L" "/home/bburdette/code/cyclofraust/target/debug/build/portaudio-ec5875cd17af9a65/out/lib" "-L" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-l" "minimal" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-l" "stdc++" "/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib" "/home/bburdette/code/cyclofraust/target/debug/deps/libnum-d03d1dba35730483.rlib" "/home/bburdette/code/cyclofraust/target/debug/deps/libnum_iter-f48a79cea69f0b4a.rlib" "/home/bburdette/code/cyclofraust/target/debug/deps/liblibc-83c2bd88b43ecde3.rlib" "/home/bburdette/code/cyclofraust/target/debug/deps/libtinyosc-893fbf2e71dc41cc.rlib" "/home/bburdette/code/cyclofraust/target/debug/deps/libbitflags-725a4e5043ace390.rlib" "/home/bburdette/code/cyclofraust/target/debug/deps/libnum_integer-5359a9ecb109fd5e.rlib" "/home/bburdette/code/cyclofraust/target/debug/deps/libnum_traits-e71ec950eb575a4e.rlib" "/home/bburdette/code/cyclofraust/target/debug/deps/libbyteorder-1f7440bade571c5b.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2ddb28df747fcb8c.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-21709492a058d9ce.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e19aa6725ab01bfd.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-99ff2e008613b591.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-e2513aecb8fbb70c.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f3200ab7e7fe644c.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-e83ac2302b5439a3.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-dba58b8da674d203.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_unicode-6d4348bcabf40a71.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-9f45c45fdcba4301.rlib" "/home/bburdette/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b4ef8c9d93bc879a.rlib" "-l" "m" "-l" "pthread" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "util"
  = note: /home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `GetStreamTime':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1738: undefined reference to `jack_frame_time'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1738: undefined reference to `jack_get_sample_rate'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `UpdateQueue':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1427: undefined reference to `jack_get_sample_rate'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `JackCallback':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1562: undefined reference to `jack_port_get_buffer'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `RealProcess':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1349: undefined reference to `jack_get_sample_rate'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1365: undefined reference to `jack_frame_time'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1367: undefined reference to `jack_port_get_latency'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1370: undefined reference to `jack_port_get_latency'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1391: undefined reference to `jack_port_get_buffer'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1402: undefined reference to `jack_port_get_buffer'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `RealStop':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1688: undefined reference to `jack_port_connected'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1690: undefined reference to `jack_port_disconnect'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1696: undefined reference to `jack_port_connected'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1698: undefined reference to `jack_port_disconnect'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `StartStream':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1609: undefined reference to `jack_port_name'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1609: undefined reference to `jack_port_name'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1609: undefined reference to `jack_connect'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1619: undefined reference to `jack_port_name'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1619: undefined reference to `jack_port_name'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1619: undefined reference to `jack_connect'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `CleanUpStream':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:983: undefined reference to `jack_port_unregister'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:988: undefined reference to `jack_port_unregister'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `OpenStream':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1080: undefined reference to `jack_port_name_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1081: undefined reference to `jack_client_name_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1087: undefined reference to `jack_get_sample_rate'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1181: undefined reference to `jack_get_sample_rate'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1214: undefined reference to `jack_port_name_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1215: undefined reference to `jack_port_register'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1224: undefined reference to `jack_port_name_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1225: undefined reference to `jack_port_register'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1241: undefined reference to `jack_get_ports'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1245: undefined reference to `jack_port_by_name'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1265: undefined reference to `jack_get_ports'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1269: undefined reference to `jack_port_by_name'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1301: undefined reference to `jack_port_get_latency'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1302: undefined reference to `jack_get_buffer_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1305: undefined reference to `jack_port_get_latency'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1306: undefined reference to `jack_get_buffer_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1310: undefined reference to `jack_frame_time'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `Terminate':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:820: undefined reference to `jack_deactivate'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:825: undefined reference to `jack_client_close'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `IsFormatSupported':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:918: undefined reference to `jack_get_sample_rate'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:918: undefined reference to `jack_get_sample_rate'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:918: undefined reference to `jack_get_sample_rate'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `PaJack_Initialize':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:733: undefined reference to `jack_client_open'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `BuildDeviceList':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:491: undefined reference to `jack_client_name_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:492: undefined reference to `jack_client_name_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:499: undefined reference to `jack_get_ports'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:517: undefined reference to `jack_client_name_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:558: undefined reference to `jack_get_sample_rate'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:589: undefined reference to `jack_get_ports'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:596: undefined reference to `jack_port_by_name'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:598: undefined reference to `jack_port_get_latency'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:610: undefined reference to `jack_get_ports'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:617: undefined reference to `jack_port_by_name'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:619: undefined reference to `jack_port_get_latency'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `PaJack_Initialize':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:781: undefined reference to `jack_on_shutdown'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:782: undefined reference to `jack_set_error_function'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:783: undefined reference to `jack_get_buffer_size'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:785: undefined reference to `jack_set_sample_rate_callback'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:786: undefined reference to `jack_set_xrun_callback'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:800: undefined reference to `jack_client_close'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:787: undefined reference to `jack_set_process_callback'
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:788: undefined reference to `jack_activate'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `PaJack_SetClientName':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1750: undefined reference to `jack_client_name_size'
/home/bburdette/code/cyclofraust/target/debug/deps/libportaudio-442e4ea82c323c66.rlib(pa_jack.o): In function `PaJack_GetClientName':
/home/bburdette/.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.7.0/portaudio/src/hostapi/jack/pa_jack.c:1765: undefined reference to `jack_get_client_name'
collect2: error: ld returned 1 exit status


error: aborting due to previous error

error: Could not compile `fraust_test`.

To learn more, run the command again with --verbose.
bburdette@BB-5520:~/code/cyclofraust$ 

bburdette avatar Mar 01 '17 14:03 bburdette

I checked out the repository and can't run any of the examples because of the same issue.

yilinwei avatar Sep 02 '17 17:09 yilinwei

The current workaround is to install libportaudio on your host, but it would be good to properly fix the in-tree linking of jack for rust-portaudio-sys.

tmatth avatar Oct 15 '17 18:10 tmatth

the fix from @yilinwei worked for me on debian bullseye as well.

installing libportaudio2 (19.6.0) on my host did not work. libportaudio0 (18.1) is no longer available on debian bullseye.

khimaros avatar Nov 27 '20 19:11 khimaros