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