Trying to get my system completely rebuilt with GCC 4.3 (to take advantage of
the march=core2 setting), this is one of the last packages that I can't build
on my toolchain. One of the others is gtkmm, so I tried to build this with fltk
instead.
Got an error about something not being defined in the current scope. Tried it
again with a -jack USE flag, got another error during compile.
Reproducible: Always
Steps to Reproduce:
1.emerge alsa-patch-bay with the fltk, jack, and alsa USE flags, and WITHOUT
the gtkmm USE flag(the gtkmm package required for alsa-patch-bay doesn't
compile with gcc 4.3 either, so you have to use fltk)
2.
3.
Actual Results:
jack-addr.cpp: In member function ‘std::string APB::Jack::Addr::client()
const’:
jack-addr.cpp:41: error: ‘strdup’ was not declared in this scope
jack-addr.cpp:43: error: ‘strchr’ was not declared in this scope
jack-addr.cpp:49: error: ‘free’ was not declared in this scope
jack-addr.cpp: In member function ‘std::string APB::Jack::Addr::port()
const’:
jack-addr.cpp:59: error: ‘strchr’ was not declared in this scope
make[4]: *** [jack_so-jack-addr.o] Error 1
make[4]: *** Waiting for unfinished jobs....
jack-driver.cpp: In function ‘int
APB::Jack::jackGraphOrderCallback(void*)’:
jack-driver.cpp:36: error: ‘strerror’ was not declared in this scope
jack-driver.cpp: In constructor ‘APB::Jack::Driver::Driver(const
std::string&, int*, char***)’:
jack-driver.cpp:49: error: ‘strdup’ was not declared in this scope
jack-driver.cpp:51: error: ‘strchr’ was not declared in this scope
jack-driver.cpp:60: error: ‘abort’ was not declared in this scope
jack-driver.cpp:63: error: ‘free’ was not declared in this scope
jack-driver.cpp: In member function ‘void
APB::Jack::Driver::refreshPortList(std::list<APB::Addr*,
std::allocator<APB::Addr*> >&, JackPortFlags)’:
jack-driver.cpp:157: error: ‘free’ was not declared in this scope
jack-driver.cpp: In member function ‘virtual void
APB::Jack::Driver::refreshSubscriptions()’:
jack-driver.cpp:226: error: ‘free’ was not declared in this scope
make[4]: *** [jack_so-jack-driver.o] Error 1
my system:
x86_64 2.6.24.4
GCC 4.3.0
binutils 2.18
linux-headers 2.6.24
glibc 2.7
app-shells/bash: 3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python: 2.5.1-r5
sys-apps/baselayout: 1.12.12
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.16.1-r3, 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.24
when i compile without jack support i get this error:
driver.cpp: In constructor ‘APB::Driver::Driver()’:
driver.cpp:34: error: ‘exit’ was not declared in this scope
driver.cpp:45: error: ‘exit’ was not declared in this scope
make[3]: *** [alsa_patch_bay-driver.o] Error 1
make[3]: *** Waiting for unfinished jobs....
misc.cpp: In function ‘int APB::randomNumber(double, double)’:
misc.cpp:37: error: ‘rand’ was not declared in this scope
misc.cpp:37: error: ‘RAND_MAX’ was not declared in this scope
make[3]: *** [alsa_patch_bay-misc.o] Error 1
Expected Results:
The application should compile correctly with gcc 4.3
When you prepare patches you should probably use -x '*~' to avoid patching in
backup files :)
Moving this to proaudio, I'll update metadata, as this is less desktop-sound
stuff.