Page 1 of 1
jack-rack compilation error
Posted: 10. Feb 2024, 22:12
by Susie B.
Hi there,
I tried to install Jack Rack 1.4.7 from Sourcery, but it failed with the following error.
Code: Select all
/usr/bin/ld: jack_rack-midi.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'.
/usr/bin/ld: /lib64/libpthread.so.0: error when adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit state
make[2]: *** [Makefile:356: jack-rack] Error 1
make[1]: *** [Makefile:281: all] Error 2
make: *** [Makefile:306: all-recursive] Fatal error 1
I have searched the internet for solutions to these errors and read them, but they were too technical for me to understand.
I would appreciate any information on how to fix these errors.
Thanks in advance.
Susie B.
Re: jack-rack compilation error
Posted: 11. Feb 2024, 04:55
by Susie B.
I tried to install Jack Rack 1.4.7 from Sourcery, but it failed with the following error.
I forgot to mention the version of my Salix .
I did it on Salix64 15.0.
Susie B.
Re: jack-rack compilation error
Posted: 11. Feb 2024, 08:01
by gapan
Are you sure about that? Sourcery has been removed from Salix 15.0.
Re: jack-rack compilation error
Posted: 11. Feb 2024, 11:15
by Susie B.
Hi Gapan,
Are you sure about that? Sourcery has been removed from Salix 15.0.
I got it from the Slackel repository and installed it manually on Salix 15.0.
(I'm not very good at the command line, so...)
Susie B.
Re: jack-rack compilation error
Posted: 11. Feb 2024, 11:28
by laprjns
Jack-rack builds and installs without issues here on 15.0 using slapt-scr
and the slapt-src repository set to the Slackbuild repository.
Code: Select all
rich[~]$ cat /etc/slapt-get/slapt-srcrc
BUILDDIR=/usr/src/slapt-src
PKGEXT=txz
#SOURCE=http://slackware.uk/salix/slkbuild/15.0/
#SOURCE=http://slackware.uk/salix/sbo/15.0/
SOURCE=https://slackbuilds.org/slackbuilds/15.0/
Re: jack-rack compilation error
Posted: 11. Feb 2024, 21:13
by Susie B.
Hi laprjns,
Thank you for your taking the time and reply.
I have tried using the slapt-src and slackbuilds.org repositories as advised, but get seemingly same error.
Code: Select all
configure: WARNING: LASH support is disabled
process.c: In function ‘process_info_connect_jack’:
process.c:456:3: warning: ‘jack_client_new’ is deprecated [-Wdeprecated-declarations]
456 | if (!(procinfo->jack_client = jack_client_new (jack_client_name)))
| ^~
In file included from process.c:21:
/usr/include/jack/jack.h:127:17: note: declared here
127 | jack_client_t * jack_client_new (const char *client_name) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
| ^~~~~~~~~~~~~~~
main.c: In function ‘main’:
main.c:128:3: warning: implicit declaration of function ‘gtk_set_locale’; did you mean ‘setlocale’? [-Wimplicit-function-declaration]
128 | gtk_set_locale ();
| ^~~~~~~~~~~~~~
| setlocale
/usr/bin/ld: jack_rack-midi.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/bin/ld: /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:356: jack-rack] Error 1
make[1]: *** [Makefile:281: all] Error 2
make: *** [Makefile:306: all-recursive] Error 1
I also got the Jack Rack 1.4.7 source from SourceForge and manually did configure and make, but it still gave the same error.
Regards,
Susie B.
Re: jack-rack compilation error
Posted: 12. Feb 2024, 05:20
by jury
Susie B. wrote: ↑11. Feb 2024, 21:13
/usr/bin/ld: jack_rack-midi.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/bin/ld: /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:356: jack-rack] Error 1
make[1]: *** [Makefile:281: all] Error 2
make: *** [Makefile:306: all-recursive] Error 1[/code]
I also got the Jack Rack 1.4.7 source from SourceForge and manually did configure and make, but it still gave the same error.
Out of curiosity I tried to compile it myself and I also got the complain about undefined reference to pthread ... (then to libdl and and finally to libm)
If no one will give the proper solution, here is a workaround
- do ./configure
- do make
- all files should be compiled, just linking process should give the above undefined reference, so go into directory "src" and issue this:
Code: Select all
gcc -g -O2 -o jack-rack -ljack -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype -lasound -lxml2 -lpthread -ldl -lm jack_rack-midi_window.o jack_rack-midi_control.o jack_rack-wet_dry_controls.o jack_rack-file.o jack_rack-midi.o jack_rack-util.o jack_rack-plugin_settings.o jack_rack-process.o jack_rack-plugin_desc.o jack_rack-plugin_mgr.o jack_rack-ui.o jack_rack-plugin.o jack_rack-port_controls.o jack_rack-plugin_slot.o jack_rack-jack_rack.o jack_rack-lock_free_fifo.o jack_rack-ui_callbacks.o jack_rack-plugin_slot_callbacks.o jack_rack-control_callbacks.o jack_rack-main.o
Re: jack-rack compilation error
Posted: 12. Feb 2024, 09:40
by gapan
Nice workaround jury, thanks!
I have now uploaded packages to our extra repo. Give it some time for the mirrors to sync and you should be able to get it with slapt-get/gslapt.
Re: jack-rack compilation error
Posted: 12. Feb 2024, 20:56
by Susie B.
Hi jury.
I was also able to successfully compile Jack Rack using your workaround.
I installed it as well and it seems to work fine.
I appreciate you taking the time to help me.
Regards.
Susie B.
Re: jack-rack compilation error
Posted: 12. Feb 2024, 21:10
by Susie B.
Hi gapan.
I appreciate you adding the Jack Rack binary package to the Salix repository.
It is easier for a layman like me to use the official package than building it by myself.
I will install it as soon as the package arrives in the mirror.
Regards,
Susie B.