<div dir="ltr"><div>I get an error when running Snd compiled without gui toolkit (see below). Snd runs fine if started while cd&#39;d to the build directory, but fails when run in any other directory. </div><div><br></div>~/src/snd-20.9 $ CFLAGS=&quot;-Ofast -I. -g -Ofast&quot; ./configure --with-alsa --with-notcurses --with-ladspa<br>checking build system type... x86_64-pc-linux-gnu<br>checking host system type... x86_64-pc-linux-gnu<br>checking for gcc... gcc<br>checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables... <br>checking whether we are cross compiling... no<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ISO C89... none needed<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking how to run the C preprocessor... gcc -E<br>checking for grep that handles long lines and -e... /bin/grep<br>checking for egrep... /bin/grep -E<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking whether byte ordering is bigendian... no<br>checking size of void *... 8<br>checking for pkg-config... /usr/bin/pkg-config<br>checking pkg-config is at least version 0.9.0... yes<br>checking for fftw3... yes<br>checking for gsl... yes<br>checking for oggdec... no<br>checking for oggenc... no<br>checking for mpg123... no<br>checking for mpg321... no<br>checking for speexdec... no<br>checking for speexenc... no<br>checking for flac... no<br>checking for timidity... no<br>checking for wavpack... no<br>checking for wvunpack... no<br>checking for audio system... ALSA<br>configure: creating ./config.status<br>config.status: creating makefile<br>config.status: creating mus-config.h<br>config.status: mus-config.h is unchanged<br><br>  Options selected<br>  -------------------------<br>  Snd version ...........: 20.9<br>  CFLAGS ................: -O2 -I. -Ofast -I. -g -Ofast<br>  LDFLAGS ...............: -Wl,-export-dynamic<br>  LIBS...................:  -lm -ldl<br>  prefix.................: /usr/local<br>  extension language.....: s7<br>  audio system...........: ALSA<br>  graphics toolkit.......: None<br>  optional libraries.....: fftw-3.3.7 gsl-2.4<br>  random features........: ladspa<br>  environs...............: x86_64-pc-linux-gnu gcc<br><br>~/src/snd-20.9 $ make <br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      s7.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      headers.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      audio.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      io.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      sound.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      clm.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      xen.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      vct.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      sndlib2xen.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      clm2xen.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-io.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-utils.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-listener.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-completion.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-menu.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-axis.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-data.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-fft.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-marks.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-file.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-edits.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-chn.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-dac.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-region.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-select.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-find.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-snd.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-help.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-main.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-print.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-trans.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-mix.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-env.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-xen.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-ladspa.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-kbd.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-sig.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-draw.c<br>gcc -c -DSCRIPTS_DIR=\&quot;/usr/local/share/snd\&quot;  -Ofast -I. -g -Ofast      snd-nogui.c<br>gcc -Wl,-export-dynamic -Ofast -I. -g -Ofast s7.o headers.o audio.o io.o sound.o clm.o xen.o vct.o sndlib2xen.o clm2xen.o snd-io.o snd-utils.o snd-listener.o snd-completion.o snd-menu.o snd-axis.o snd-data.o snd-fft.o snd-marks.o snd-file.o snd-edits.o snd-chn.o snd-dac.o snd-region.o snd-select.o snd-find.o snd-snd.o snd-help.o snd-main.o snd-print.o snd-trans.o snd-mix.o snd.o snd-env.o snd-xen.o snd-ladspa.o snd-kbd.o snd-sig.o snd-draw.o snd-nogui.o    -o snd       -lasound -lfftw3 -lgsl -lgslcblas -lm  -lm -ldl<br>~/src/snd-20.9 $ sudo make install<br>[sudo] password for dto: <br>/bin/bash ./mkinstalldirs /usr/local/bin<br>/bin/bash ./mkinstalldirs /usr/local/share/man<br>/bin/bash ./mkinstalldirs /usr/local/share/man/man1<br>/bin/bash ./mkinstalldirs /usr/local/share/snd<br>/usr/bin/install -c snd /usr/local/bin/snd<br>/usr/bin/install -c -m 0644 ./snd.1 /usr/local/share/man/man1<br>(cd . &amp;&amp; for f in *.scm *.fs *.rb *.fsm; do /usr/bin/install -c -m 0644 ${f} /usr/local/share/snd/${f}; done)<br>~/src/snd-20.9 $ snd<br>writing libc_s7.c<br>loading libc_s7.so<br>&gt; exit<br>#_exit<br>&gt; (quit)<br>unbound variable quit in (quit)<br>&gt; q<br>unbound variable q in q<br>&gt; 2<br>2<br>&gt; (exit)<br>~/src/snd-20.9 $ cd<br>~ $ snd<br>writing libc_s7.c<br>libc_s7.c:35:10: fatal error: s7.h: No such file or directory<br> #include &quot;s7.h&quot;<br>          ^~~~~~<br>compilation terminated.<br>gcc: error: libc_s7.o: No such file or directory<br>loading libc_s7.so<br>load /home/dto/libc_s7.so failed: /home/dto/libc_s7.so: cannot open shared object file: No such file or directory<br><br>;load: can&#39;t open &quot;libc_s7.so&quot;<br>;    (load so-file-name cur-env)<br>;    cload.scm, line 689, position: 27337<br>; (load so-file-name cur-env)<br>; ((curlet))<br>; ((*s7* &#39;history-enabled) #f)<br><br><br>;unbound variable *libc*<br>;    (load so-file-name cur-env)<br>;    repl.scm, line 1216, position: 43942<br>; (load so-file-name cur-env)<br>; ((define (symbol-completion text) (let ((...<br>; ((signatures sig) &#39;NULL)<br>; (*repl* &#39;run)<br><br>~ $ <br></div>