C compiler cannot create executables

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Crojav

C compiler cannot create executables

Post by Crojav »

I tried to install https://github.com/mansr/sox a Sox Audio Tool Fork on my LinuxMint 19, but got this error.

configure:3617: error: in `/home/crojav/sox':
configure:3619: error: C compiler cannot create executables
See `config.log' for more details

Should I include the "config.log"?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ajgringo619

Re: C compiler cannot create executables

Post by ajgringo619 »

This program hasn't been updated since 2015, so it may need libraries that you don't have. Also, in the README file it talks about being a 32-bit program; that would explain your compiler error.
Crojav

Re: C compiler cannot create executables

Post by Crojav »

Thanks for your reply, I will share this with the maintainer of the program.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: C compiler cannot create executables

Post by Hoser Rob »

Crojav wrote: Fri Feb 15, 2019 12:09 pm Thanks for your reply, I will share this with the maintainer of the program.
When a program hasn't been updated for that long it kind of means it's very unlikely that any maintainer will read it. I'd look for something else with better support.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
Crojav

Re: C compiler cannot create executables

Post by Crojav »

Hoser Rob wrote: Fri Feb 15, 2019 12:52 pm
Crojav wrote: Fri Feb 15, 2019 12:09 pm Thanks for your reply, I will share this with the maintainer of the program.
When a program hasn't been updated for that long it kind of means it's very unlikely that any maintainer will read it. I'd look for something else with better support.
I would do the same, but in this case there is no other program - with the help of Sox who can do this conversion to DSD
Crojav

Re: C compiler cannot create executables

Post by Crojav »

ajgringo619 wrote: Thu Feb 14, 2019 7:42 pm This program hasn't been updated since 2015, so it may need libraries that you don't have. Also, in the README file it talks about being a 32-bit program; that would explain your compiler error.
I have send the config.log to the maintainer of the program.

Greeting Crojav
Crojav

Re: C compiler cannot create executables

Post by Crojav »

ajgringo619 wrote: Thu Feb 14, 2019 7:42 pm This program hasn't been updated since 2015, so it may need libraries that you don't have. Also, in the README file it talks about being a 32-bit program; that would explain your compiler error.
This is the answer of the maintainer of the program:

This is the relevant part of the log:

configure:3548: checking whether the C compiler works
configure:3570: gcc conftest.c >&5
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3574: $? = 1
configure:3612: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "SoX"
| #define PACKAGE_TARNAME "sox"
| #define PACKAGE_VERSION "14.4.3git"
| #define PACKAGE_STRING "SoX 14.4.3git"
| #define PACKAGE_BUGREPORT "sox-devel@lists.sourceforge.net"
| #define PACKAGE_URL ""
| #define PACKAGE "sox"
| #define VERSION "14.4.3git"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3617: error: in `/home/crojav/sox':
configure:3619: error: C compiler cannot create executables

It is clear from this that your compiler is broken. Is it the official
distribution package? You need to take this to whoever provided the
compiler. I'm sorry, but there is nothing I can do to help here.


Any help would be welcom

Greeting Crojav
ajgringo619

Re: C compiler cannot create executables

Post by ajgringo619 »

This still doesn't explain if the software is 32-bit or not. Please install this package and try again:

Code: Select all

sudo apt install build-essential
Crojav

Re: C compiler cannot create executables

Post by Crojav »

ajgringo619 wrote: Sat Feb 16, 2019 6:08 pm This still doesn't explain if the software is 32-bit or not. Please install this package and try again:

Code: Select all

sudo apt install build-essential

crojav@crojav-hp:~/sox$ sudo apt install build-essential
[sudo] wachtwoord voor crojav:
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De statusinformatie wordt gelezen... Klaar
De volgende extra pakketten zullen geïnstalleerd worden:
g++ g++-7 libc-dev-bin libc6-dev libstdc++-7-dev
Voorgestelde pakketten:
g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg glibc-doc libstdc++-7-doc
De volgende NIEUWE pakketten zullen geïnstalleerd worden:
build-essential g++ g++-7 libc-dev-bin libc6-dev libstdc++-7-dev
0 opgewaardeerd, 6 nieuw geïnstalleerd, 0 te verwijderen en 75 niet opgewaardeerd.
Er moeten 11,7 MB aan archieven opgehaald worden.
Na deze bewerking zal er 60,4 MB extra schijfruimte gebruikt worden.
Wilt u doorgaan? [J/n] j
Ophalen:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc-dev-bin amd64 2.27-3ubuntu1 [71,8 kB]
Ophalen:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc6-dev amd64 2.27-3ubuntu1 [2587 kB]
Ophalen:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.3.0-27ubuntu1~18.04 [1463 kB]
Ophalen:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.3.0-27ubuntu1~18.04 [7570 kB]
Ophalen:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.3.0-3ubuntu2.1 [1572 B]
Ophalen:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 build-essential amd64 12.4ubuntu1 [4758 B]
11,7 MB opgehaald in 2s (4710 kB/s)
debconf: kan het frontend niet initialiseren: Dialog
debconf: (Het dialoog-frontend vereist een scherm dat tenminste 13 regels hoog en 31 kolommen breed is.)
debconf: er wordt teruggevallen op frontend: Readline
Voorheen niet geselecteerd pakket libc-dev-bin wordt geselecteerd.
(Database wordt ingelezen ... 262858 bestanden en mappen momenteel geïnstalleerd.)
Uitpakken van .../0-libc-dev-bin_2.27-3ubuntu1_amd64.deb wordt voorbereid...
Bezig met uitpakken van libc-dev-bin (2.27-3ubuntu1) ...
Voorheen niet geselecteerd pakket libc6-dev:amd64 wordt geselecteerd.
Uitpakken van .../1-libc6-dev_2.27-3ubuntu1_amd64.deb wordt voorbereid...
Bezig met uitpakken van libc6-dev:amd64 (2.27-3ubuntu1) ...
Voorheen niet geselecteerd pakket libstdc++-7-dev:amd64 wordt geselecteerd.
Uitpakken van .../2-libstdc++-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb wordt voorbereid...
Bezig met uitpakken van libstdc++-7-dev:amd64 (7.3.0-27ubuntu1~18.04) ...
Voorheen niet geselecteerd pakket g++-7 wordt geselecteerd.
Uitpakken van .../3-g++-7_7.3.0-27ubuntu1~18.04_amd64.deb wordt voorbereid...
Bezig met uitpakken van g++-7 (7.3.0-27ubuntu1~18.04) ...
Voorheen niet geselecteerd pakket g++ wordt geselecteerd.
Uitpakken van .../4-g++_4%3a7.3.0-3ubuntu2.1_amd64.deb wordt voorbereid...
Bezig met uitpakken van g++ (4:7.3.0-3ubuntu2.1) ...
Voorheen niet geselecteerd pakket build-essential wordt geselecteerd.
Uitpakken van .../5-build-essential_12.4ubuntu1_amd64.deb wordt voorbereid...
Bezig met uitpakken van build-essential (12.4ubuntu1) ...
Bezig met afhandelen van triggers voor man-db (2.8.3-2ubuntu0.1) ...
Instellen van libc-dev-bin (2.27-3ubuntu1) ...
Instellen van libc6-dev:amd64 (2.27-3ubuntu1) ...
Instellen van libstdc++-7-dev:amd64 (7.3.0-27ubuntu1~18.04) ...
Instellen van g++-7 (7.3.0-27ubuntu1~18.04) ...
Instellen van g++ (4:7.3.0-3ubuntu2.1) ...
update-alternatives: /usr/bin/g++ wordt gebruikt om in de automatische modus in /usr/bin/c++ (c++) te voorzien.
Instellen van build-essential (12.4ubuntu1) ...
crojav@crojav-hp:~/sox$






crojav@crojav-hp:~/sox$ autoreconf -i
Prototype after '@' for main::list_compare : address@hidden@ at /usr/bin/aclocal line 162.
Illegal character in prototype for main::list_compare : address@hidden@ at /usr/bin/aclocal line 162.
Prototype mismatch: sub main::list_compare (address@hidden@) vs (\@\@) at /usr/bin/aclocal line 340.
libgsm/Makefile.am:35: Libtool library used but `LIBTOOL' is undefined
libgsm/Makefile.am:35: The usual way to define `LIBTOOL' is to add `LT_INIT'
libgsm/Makefile.am:35: to `configure.ac' and run `aclocal' and `autoconf' again.
libgsm/Makefile.am:35: If `LT_INIT' is in `configure.ac', make sure
libgsm/Makefile.am:35: its definition is in aclocal's search path.
lpc10/Makefile.am:8: Libtool library used but `LIBTOOL' is undefined
lpc10/Makefile.am:8: The usual way to define `LIBTOOL' is to add `LT_INIT'
lpc10/Makefile.am:8: to `configure.ac' and run `aclocal' and `autoconf' again.
lpc10/Makefile.am:8: If `LT_INIT' is in `configure.ac', make sure
lpc10/Makefile.am:8: its definition is in aclocal's search path.
autoreconf: automake failed with exit status: 1



crojav@crojav-hp:~/sox$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
./configure: line 4346: syntax error near unexpected token `dlopen'
./configure: line 4346: `LT_INIT(dlopen win32-dll)'



crojav@crojav-hp:~/sox$ make -s
make: *** Geen doelen opgegeven en geen Makefile gevonden. Gestopt. <<< EDIT --- NO MAKE FILE FOUND
crojav@crojav-hp:~/sox$
ajgringo619

Re: C compiler cannot create executables

Post by ajgringo619 »

Based on the last line of the configure output, this definitely looks like a 32-bit issue. Hopefully someone with expertise in this will chime in as I've no experience building 32-bit binaries.
Crojav

Re: C compiler cannot create executables

Post by Crojav »

ajgringo619 wrote: Sun Feb 17, 2019 12:40 pm Based on the last line of the configure output, this definitely looks like a 32-bit issue. Hopefully someone with expertise in this will chime in as I've no experience building 32-bit binaries.
Any way you did what you could do, thanks - hopefully someone else can bring more light on this. Should I bring it in a new topic under the attention?
There is a Arch Package of this Sox program https://aur.archlinux.org/packages/sox-dsd-git/ who know I can them about my problem


Greeting Crojav
ajgringo619

Re: C compiler cannot create executables

Post by ajgringo619 »

I found the Sox mailing list, and I couldn't find your issue mentioned at all. I've got a test VM - I'll give this build a try later today.
Crojav

Re: C compiler cannot create executables

Post by Crojav »

ajgringo619 wrote: Sun Feb 17, 2019 1:12 pm I found the Sox mailing list, and I couldn't find your issue mentioned at all. I've got a test VM - I'll give this build a try later today.
Thanks ajgringo619 for helping me so far..
ajgringo619

Re: C compiler cannot create executables

Post by ajgringo619 »

OK, I got it to build; it was actually a fairly smooth process. Here are the steps & log files:

Code: Select all

$ autoreconf -i
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:22: installing './compile'
configure.ac:10: installing './config.guess'
configure.ac:10: installing './config.sub'
configure.ac:12: installing './install-sh'
configure.ac:12: installing './missing'
libgsm/Makefile.am: installing './depcomp'

Code: Select all

$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
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 whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether ln -s works... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to make a debug build... 
checking whether libssp exists... no
checking whether stack-smashing protection is available... yes
checking whether stack-smashing protection is buggy... no
checking whether gcc accepts -fstack-protector... yes
checking gcc version... 7
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for popen... yes
checking for vsnprintf... yes
checking for gettimeofday... yes
checking for mkstemp... yes
checking for fmemopen... yes
checking for aligned_alloc... yes
checking for library containing pow... -lm
checking for library containing lrint... none required
checking for lrint... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether libtool should be silenced... yes
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking for gcc option to support OpenMP... -fopenmp
checking for libtool version... 2.4.6, OK
checking magic.h usability... no
checking magic.h presence... no
checking for magic.h... no
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking libpng/png.h usability... yes
checking libpng/png.h presence... yes
checking for libpng/png.h... yes
checking for png_set_rows in -lpng... yes
checking mad.h usability... no
checking mad.h presence... no
checking for mad.h... no
checking whether to dlopen mad... no
checking for mad_stream_buffer in -lmad... no
checking id3tag.h usability... no
checking id3tag.h presence... no
checking for id3tag.h... no
checking whether to dlopen lame... no
checking lame/lame.h usability... no
checking lame/lame.h presence... no
checking for lame/lame.h... no
checking lame.h usability... no
checking lame.h presence... no
checking for lame.h... no
checking for lame_get_lametag_frame in -lmp3lame... no
checking for id3tag_set_fieldvalue in -lmp3lame... no
checking twolame.h usability... no
checking twolame.h presence... no
checking for twolame.h... no
checking whether to dlopen twolame... no
checking for twolame_init in -ltwolame... no
checking gsm/gsm.h usability... no
checking gsm/gsm.h presence... no
checking for gsm/gsm.h... no
checking gsm.h usability... no
checking gsm.h presence... no
checking for gsm.h... no
checking for gsm_create in -lgsm... no
checking lpc10.h usability... no
checking lpc10.h presence... no
checking for lpc10.h... no
checking for lpc10.h... (cached) no
checking for create_lpc10_encoder_state in -llpc10... no
checking vorbis/codec.h usability... no
checking vorbis/codec.h presence... no
checking for vorbis/codec.h... no
checking for OPUS... no
checking FLAC/all.h usability... no
checking FLAC/all.h presence... no
checking for FLAC/all.h... no
checking opencore-amrwb/dec_if.h usability... no
checking opencore-amrwb/dec_if.h presence... no
checking for opencore-amrwb/dec_if.h... no
checking amrwb/dec.h usability... no
checking amrwb/dec.h presence... no
checking for amrwb/dec.h... no
checking opencore-amrnb/interf_dec.h usability... no
checking opencore-amrnb/interf_dec.h presence... no
checking for opencore-amrnb/interf_dec.h... no
checking amrnb/sp_dec.h usability... no
checking amrnb/sp_dec.h presence... no
checking for amrnb/sp_dec.h... no
checking wavpack/wavpack.h usability... no
checking wavpack/wavpack.h presence... no
checking for wavpack/wavpack.h... no
checking sndio.h usability... no
checking sndio.h presence... no
checking for sndio.h... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking ao/ao.h usability... no
checking ao/ao.h presence... no
checking for ao/ao.h... no
checking pulse/simple.h usability... no
checking pulse/simple.h presence... no
checking for pulse/simple.h... no
checking for mmsystem.h... no
checking for SNDFILE... no
checking sndfile.h usability... no
checking sndfile.h presence... no
checking for sndfile.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking sys/audioio.h usability... no
checking sys/audioio.h presence... no
checking for sys/audioio.h... no
checking sun/audioio.h usability... no
checking sun/audioio.h presence... no
checking for sun/audioio.h... no
checking whether to enable symlinks... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libgsm/Makefile
config.status: creating lpc10/Makefile
config.status: creating msvc9/Makefile
config.status: creating msvc10/Makefile
config.status: creating sox.pc
config.status: creating src/soxconfig.h
config.status: executing depfiles commands
config.status: executing libtool commands

BUILD OPTIONS
Debugging build............no
Distro name ...............not specified!
Dynamic loading support....no
Pkg-config location........$(libdir)/pkgconfig
Play and rec symlinks......yes
Symlinks enabled...........yes

OPTIONAL DEVICE DRIVERS
ao (Xiph)..................no
alsa (Linux)...............no
coreaudio (Mac OS X).......no
sndio (OpenBSD)............no
oss........................yes
pulseaudio.................no
sunaudio...................no
waveaudio (MS-Windows).....no

OPTIONAL FILE FORMATS
amrnb......................no
amrwb......................no
flac.......................no
gsm........................yes (in-tree)
lpc10......................yes (in-tree)
mp2/mp3....................no
 id3tag....................no
 lame......................no
 mad.......................no
 twolame...................no
oggvorbis..................no
opus.......................no
sndfile....................no
wavpack....................no

OTHER OPTIONS
ladspa effects.............no
magic support..............no
png support................yes
OpenMP support.............yes, -fopenmp

Configure finished.  Do 'make -s && make install' to compile and install SoX.

Code: Select all

$ make -s
Making all in lpc10
  CC       analys.lo
  CC       bsynz.lo
  CC       chanwr.lo
  CC       dcbias.lo
  CC       decode.lo
  CC       deemp.lo
  CC       difmag.lo
  CC       dyptrk.lo
  CC       encode.lo
  CC       energy.lo
  CC       f2clib.lo
  CC       ham84.lo
  CC       hp100.lo
  CC       invert.lo
  CC       irc2pc.lo
  CC       ivfilt.lo
  CC       lpcdec.lo
  CC       lpcenc.lo
  CC       lpcini.lo
  CC       lpfilt.lo
  CC       median.lo
  CC       mload.lo
  CC       onset.lo
  CC       pitsyn.lo
  CC       placea.lo
  CC       placev.lo
  CC       preemp.lo
  CC       prepro.lo
  CC       random.lo
  CC       rcchk.lo
  CC       synths.lo
  CC       tbdm.lo
  CC       voicin.lo
  CC       vparms.lo
  CCLD     liblpc10.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in libgsm
  CC       add.lo
  CC       code.lo
  CC       decode.lo
  CC       long_term.lo
  CC       lpc.lo
  CC       preprocess.lo
  CC       rpe.lo
rpe.c: In function ‘RPE_grid_positioning’:
rpe.c:404:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 case 3: *ep++ = 0;
                         ~~~~~~^~~
rpe.c:405:17: note: here
                 case 2:  do {
                 ^~~~
rpe.c:406:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
                                 *ep++ = 0;
                                 ~~~~~~^~~
rpe.c:407:17: note: here
                 case 1:         *ep++ = 0;
                 ^~~~
rpe.c:407:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 case 1:         *ep++ = 0;
                                 ~~~~~~^~~
rpe.c:408:17: note: here
                 case 0:         *ep++ = *xMp++;
                 ^~~~
  CC       gsm_destroy.lo
  CC       gsm_decode.lo
  CC       gsm_encode.lo
  CC       gsm_create.lo
gsm_create.c:7:19: warning: ‘ident’ defined but not used [-Wunused-const-variable=]
 static char const ident[] = "$Header: /cvsroot/sox/sox/libgsm/gsm_create.c,v 1.1 2007/09/06 16:50:55 cbagwell Exp $";
                   ^~~~~
  CC       gsm_option.lo
  CC       short_term.lo
In file included from short_term.c:12:0:
short_term.c: In function ‘Decoding_of_the_coded_Log_Area_Ratios’:
short_term.c:55:32: warning: left shift of negative value [-Wshift-negative-value]
   temp1    = GSM_SUB( temp1, B << 1 );  \
                                ^
private.h:120:38: note: in definition of macro ‘GSM_SUB’
  ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
                                      ^
short_term.c:62:2: note: in expansion of macro ‘STEP’
  STEP(  -2560,  -16,  13107 );
  ^~~~
short_term.c:55:32: warning: left shift of negative value [-Wshift-negative-value]
   temp1    = GSM_SUB( temp1, B << 1 );  \
                                ^
private.h:120:38: note: in definition of macro ‘GSM_SUB’
  ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
                                      ^
short_term.c:65:2: note: in expansion of macro ‘STEP’
  STEP(  -1792,   -8,  17476 );
  ^~~~
short_term.c:55:32: warning: left shift of negative value [-Wshift-negative-value]
   temp1    = GSM_SUB( temp1, B << 1 );  \
                                ^
private.h:120:38: note: in definition of macro ‘GSM_SUB’
  ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
                                      ^
short_term.c:66:2: note: in expansion of macro ‘STEP’
  STEP(   -341,   -4,  31454 );
  ^~~~
short_term.c:55:32: warning: left shift of negative value [-Wshift-negative-value]
   temp1    = GSM_SUB( temp1, B << 1 );  \
                                ^
private.h:120:38: note: in definition of macro ‘GSM_SUB’
  ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
                                      ^
short_term.c:67:2: note: in expansion of macro ‘STEP’
  STEP(  -1144,   -4,  29708 );
  ^~~~
  CC       table.lo
  CCLD     libgsm.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in src
  CC       sox.o
sox.c: In function ‘update_status’:
sox.c:1248:23: warning: ‘%u’ directive writing between 1 and 9 bytes into a region of size 7 [-Wformat-overflow=]
     sprintf(buff, "Hd:%u.%u", h /10, h % 10);
                       ^~
sox.c:1248:19: note: directive argument in the range [0, 429496729]
     sprintf(buff, "Hd:%u.%u", h /10, h % 10);
                   ^~~~~~~~~~
sox.c:1248:19: note: directive argument in the range [0, 9]
In file included from /usr/include/stdio.h:862:0,
                 from util.h:20,
                 from sox.c:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output between 7 and 15 bytes into a destination of size 10
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC       libsox_la-adpcms.lo
  CC       libsox_la-aiff.lo
  CC       libsox_la-cvsd.lo
  CC       libsox_la-g711.lo
  CC       libsox_la-g721.lo
  CC       libsox_la-g723_24.lo
  CC       libsox_la-g723_40.lo
  CC       libsox_la-g72x.lo
  CC       libsox_la-vox.lo
  CC       libsox_la-raw.lo
  CC       libsox_la-formats.lo
  CC       libsox_la-formats_i.lo
  CC       libsox_la-skelform.lo
  CC       libsox_la-xmalloc.lo
  CC       libsox_la-getopt.lo
  CC       libsox_la-util.lo
util.c: In function ‘lsx_sigfigs3’:
util.c:124:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 2: if (b) return string[n]; /* Can fall through */
                ^
util.c:125:5: note: here
     case 1: c = 2; break;
     ^~~~
  CC       libsox_la-libsox.lo
  CC       libsox_la-libsox_i.lo
  CC       libsox_la-sox-fmt.lo
  CC       libsox_la-bend.lo
  CC       libsox_la-biquad.lo
  CC       libsox_la-biquads.lo
  CC       libsox_la-chorus.lo
  CC       libsox_la-compand.lo
  CC       libsox_la-compandt.lo
  CC       libsox_la-contrast.lo
  CC       libsox_la-dcshift.lo
  CC       libsox_la-delay.lo
  CC       libsox_la-dft_filter.lo
  CC       libsox_la-dither.lo
In file included from dither.c:274:0:
dither.h: In function ‘flow_iir_4’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:279:0:
dither.h: In function ‘flow_fir_5’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:283:0:
dither.h: In function ‘flow_fir_9’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:287:0:
dither.h: In function ‘flow_fir_15’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:291:0:
dither.h: In function ‘flow_fir_16’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:295:0:
dither.h: In function ‘flow_fir_20’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
dither.c: In function ‘flow_no_shape’:
dither.c:328:20: warning: left shift of negative value [-Wshift-negative-value]
       if (i <= (-1 << (p->prec-1)))
                    ^~
  CC       libsox_la-divide.lo
  CC       libsox_la-dop.lo
  CC       libsox_la-downsample.lo
  CC       libsox_la-earwax.lo
  CC       libsox_la-echo.lo
  CC       libsox_la-echos.lo
  CC       libsox_la-effects.lo
  CC       libsox_la-effects_i.lo
  CC       libsox_la-effects_i_dsp.lo
effects_i_dsp.c:583:0: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
 #pragma STDC FENV_ACCESS ON
 
effects_i_dsp.c: In function ‘lsx_save_samples’:
effects_i_dsp.c:582:41: warning: right-hand operand of comma expression has no effect [-Wunused-value]
 #define _ dest[i] = lrint32(src[i]), ++i,
                                         ^
effects_i_dsp.c:604:19: note: in expansion of macro ‘_’
     _ _ _ _ _ _ _ _ 0;
                   ^
effects_i_dsp.c: At top level:
effects_i_dsp.c:621:0: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
 #pragma STDC FENV_ACCESS OFF
 
  CC       libsox_la-fade.lo
  CC       libsox_la-fft4g.lo
  CC       libsox_la-fir.lo
  CC       libsox_la-firfit.lo
  CC       libsox_la-flanger.lo
  CC       libsox_la-gain.lo
  CC       libsox_la-hilbert.lo
  CC       libsox_la-input.lo
  CC       libsox_la-ladspa.lo
  CC       libsox_la-loudness.lo
  CC       libsox_la-mcompand.lo
  CC       libsox_la-noiseprof.lo
  CC       libsox_la-noisered.lo
  CC       libsox_la-output.lo
  CC       libsox_la-overdrive.lo
  CC       libsox_la-pad.lo
  CC       libsox_la-phaser.lo
  CC       libsox_la-rate.lo
  CC       libsox_la-remix.lo
  CC       libsox_la-repeat.lo
  CC       libsox_la-reverb.lo
  CC       libsox_la-reverse.lo
  CC       libsox_la-sdm.lo
  CC       libsox_la-silence.lo
silence.c: In function ‘aboveThreshold’:
silence.c:280:43: warning: left shift of negative value [-Wshift-negative-value]
   sox_sample_t masked_value = value & (-1 << (32 - effp->in_signal.precision));
                                           ^~
  CC       libsox_la-sinc.lo
  CC       libsox_la-skeleff.lo
  CC       libsox_la-speed.lo
  CC       libsox_la-splice.lo
  CC       libsox_la-stat.lo
  CC       libsox_la-stats.lo
  CC       libsox_la-stretch.lo
  CC       libsox_la-swap.lo
  CC       libsox_la-synth.lo
  CC       libsox_la-tempo.lo
  CC       libsox_la-tremolo.lo
  CC       libsox_la-trim.lo
  CC       libsox_la-upsample.lo
  CC       libsox_la-vad.lo
  CC       libsox_la-vol.lo
  CC       libsox_la-spectrogram.lo
spectrogram.c: In function ‘rdft_p’:
spectrogram.c:202:51: warning: right-hand operand of comma expression has no effect [-Wunused-value]
 #define _ re += in[i] * *q++, im += in[i++] * *q++,
                                                   ^
spectrogram.c:208:46: note: in expansion of macro ‘_’
     for (i = 0; i < (n & ~7);) _ _ _ _ _ _ _ _ 0;
                                              ^
spectrogram.c:202:51: warning: right-hand operand of comma expression has no effect [-Wunused-value]
 #define _ re += in[i] * *q++, im += in[i++] * *q++,
                                                   ^
spectrogram.c:209:19: note: in expansion of macro ‘_’
     while (i < n) _ 0;
                   ^
  CC       libsox_la-raw-fmt.lo
  CC       libsox_la-s1-fmt.lo
  CC       libsox_la-s2-fmt.lo
  CC       libsox_la-s3-fmt.lo
  CC       libsox_la-s4-fmt.lo
  CC       libsox_la-u1-fmt.lo
  CC       libsox_la-u2-fmt.lo
  CC       libsox_la-u3-fmt.lo
  CC       libsox_la-u4-fmt.lo
  CC       libsox_la-al-fmt.lo
  CC       libsox_la-la-fmt.lo
  CC       libsox_la-ul-fmt.lo
  CC       libsox_la-lu-fmt.lo
  CC       libsox_la-8svx.lo
  CC       libsox_la-aiff-fmt.lo
  CC       libsox_la-aifc-fmt.lo
  CC       libsox_la-au.lo
  CC       libsox_la-avr.lo
  CC       libsox_la-cdr.lo
  CC       libsox_la-cvsd-fmt.lo
  CC       libsox_la-dvms-fmt.lo
  CC       libsox_la-dat.lo
  CC       libsox_la-hcom.lo
  CC       libsox_la-htk.lo
  CC       libsox_la-maud.lo
  CC       libsox_la-prc.lo
  CC       libsox_la-sf.lo
  CC       libsox_la-smp.lo
  CC       libsox_la-sounder.lo
  CC       libsox_la-soundtool.lo
  CC       libsox_la-sphere.lo
  CC       libsox_la-tx16w.lo
  CC       libsox_la-voc.lo
voc.c: In function ‘getblock’:
voc.c:651:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
         lsx_readb(ft, &uc);
         ^~~~~~~~~~~~~~~~~~
voc.c:653:7: note: here
       case VOC_TEXT:
       ^~~~
  CC       libsox_la-vox-fmt.lo
  CC       libsox_la-ima-fmt.lo
  CC       libsox_la-adpcm.lo
  CC       libsox_la-ima_rw.lo
  CC       libsox_la-wav.lo
wav.c: In function ‘startwrite’:
wav.c:1272:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
             lsx_ima_init_table();
             ^~~~~~~~~~~~~~~~~~~~
wav.c:1274:9: note: here
         case WAVE_FORMAT_ADPCM:
         ^~~~
  CC       libsox_la-wve.lo
  CC       libsox_la-xa.lo
  CC       libsox_la-nulfile.lo
  CC       libsox_la-f4-fmt.lo
  CC       libsox_la-f8-fmt.lo
  CC       libsox_la-gsrt.lo
  CC       libsox_la-dsf.lo
  CC       libsox_la-dsdiff.lo
  CC       libsox_la-gsm.lo
  CC       libsox_la-lpc10.lo
  CC       libsox_la-oss.lo
  CCLD     libsox.la
copying selected object files to avoid basename conflicts...
ar: `u' modifier ignored since `D' is the default (see `U')
  CCLD     sox
  CC       sox_sample_test.o
In file included from sox_sample_test.h:21:0,
                 from sox_sample_test.c:18:
sox_sample_test.h: In function ‘main’:
sox_sample_test.h:39:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_UNSIGNED_TO_SAMPLE(bits,1)); \
                                     ^
sox_sample_test.h:39:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_UNSIGNED_TO_SAMPLE(bits,1)); \
                                     ^
sox_sample_test.h:39:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_UNSIGNED_TO_SAMPLE(bits,1)); \
                                     ^
sox_sample_test.h:96:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_SIGNED_TO_SAMPLE(bits,SOX_INT_MIN(bits)+1)); \
                                     ^
sox_sample_test.h:96:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_SIGNED_TO_SAMPLE(bits,SOX_INT_MIN(bits)+1)); \
                                     ^
sox_sample_test.h:96:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_SIGNED_TO_SAMPLE(bits,SOX_INT_MIN(bits)+1)); \
                                     ^
  CCLD     sox_sample_test
  CC       example0.o
In file included from example0.c:27:0:
example0.c: In function ‘main’:
example0.c:46:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example0.c:51:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_write(argv[2], &in->signal, NULL, NULL, NULL, NULL));
          ^
  CCLD     example0
  CC       example1.o
In file included from example1.c:27:0:
example1.c: In function ‘main’:
example1.c:118:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example1.c:123:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_write(argv[2], &in->signal, NULL, NULL, NULL, NULL));
          ^
  CCLD     example1
  CC       example2.o
In file included from example2.c:28:0:
example2.c: In function ‘main’:
example2.c:53:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(*argv, NULL, NULL, NULL));
          ^
example2.c:78:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(buf = malloc(sizeof(sox_sample_t) * block_size));
          ^
  CCLD     example2
  CC       example3.o
In file included from example3.c:27:0:
example3.c: In function ‘main’:
example3.c:68:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example3.c:70:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out= sox_open_write("default", &in->signal, NULL, "alsa", NULL, NULL));
          ^
  CCLD     example3
  CC       example4.o
  CCLD     example4
  CC       example5.o
In file included from example5.c:27:0:
example5.c: In function ‘main’:
example5.c:60:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example5.c:64:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_memstream_write(&buffer, &buffer_size, &in->signal, NULL, "sox", NULL));
          ^
example5.c:71:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_mem_read(buffer, buffer_size, NULL, NULL, NULL));
          ^
example5.c:72:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_write(argv[2], &in->signal, NULL, NULL, NULL, NULL));
          ^
  CCLD     example5
  CC       example6.o
In file included from example6.c:27:0:
example6.c: In function ‘main’:
example6.c:89:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example6.c:90:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_write(argv[2], &out_signal, &out_encoding, NULL, NULL, NULL));
          ^
  CCLD     example6
I know this is a lot to digest, but at least we know that it builds. I was able to make a .deb file of it - let me know if you're interested.
ajgringo619

Re: C compiler cannot create executables

Post by ajgringo619 »

It's obvious that the problem starts in your first command (autoreconf -i). Do you have libtoolize installed (part of the libtool package)? What about m4?
Crojav

Re: C compiler cannot create executables

Post by Crojav »

ajgringo619 wrote: Sun Feb 17, 2019 1:33 pm It's obvious that the problem starts in your first command (autoreconf -i). Do you have libtoolize installed (part of the libtool package)? What about m4?
No I did not had the libtool so install it. m4 was installed.

Now I am in your direction, but still one error.

Yes I am interested in the .deb



Code: Select all

crojav@crojav-hp:~/sox$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to make a debug build... 
checking whether libssp exists... no
checking whether stack-smashing protection is available... yes
checking whether stack-smashing protection is buggy... no
checking whether gcc accepts -fstack-protector... yes
checking gcc version... 7
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for popen... yes
checking for vsnprintf... yes
checking for gettimeofday... yes
checking for mkstemp... yes
checking for fmemopen... yes
checking for aligned_alloc... yes
checking for library containing pow... -lm
checking for library containing lrint... none required
checking for lrint... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether libtool should be silenced... yes
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking for gcc option to support OpenMP... -fopenmp
checking for libtool version... 2.4.6, OK
checking magic.h usability... no
checking magic.h presence... no
checking for magic.h... no
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking libpng/png.h usability... no
checking libpng/png.h presence... no
checking for libpng/png.h... no
checking mad.h usability... no
checking mad.h presence... no
checking for mad.h... no
checking whether to dlopen mad... no
checking for mad_stream_buffer in -lmad... no
checking id3tag.h usability... no
checking id3tag.h presence... no
checking for id3tag.h... no
checking whether to dlopen lame... no
checking lame/lame.h usability... no
checking lame/lame.h presence... no
checking for lame/lame.h... no
checking lame.h usability... no
checking lame.h presence... no
checking for lame.h... no
checking for lame_get_lametag_frame in -lmp3lame... no
checking for id3tag_set_fieldvalue in -lmp3lame... no
checking twolame.h usability... no
checking twolame.h presence... no
checking for twolame.h... no
checking whether to dlopen twolame... no
checking for twolame_init in -ltwolame... no
checking gsm/gsm.h usability... no
checking gsm/gsm.h presence... no
checking for gsm/gsm.h... no
checking gsm.h usability... no
checking gsm.h presence... no
checking for gsm.h... no
checking for gsm_create in -lgsm... no
checking lpc10.h usability... no
checking lpc10.h presence... no
checking for lpc10.h... no
checking for lpc10.h... (cached) no
checking for create_lpc10_encoder_state in -llpc10... no
checking vorbis/codec.h usability... no
checking vorbis/codec.h presence... no
checking for vorbis/codec.h... no
checking for OPUS... no
checking FLAC/all.h usability... no
checking FLAC/all.h presence... no
checking for FLAC/all.h... no
checking opencore-amrwb/dec_if.h usability... yes
checking opencore-amrwb/dec_if.h presence... yes
checking for opencore-amrwb/dec_if.h... yes
checking for D_IF_init in -lopencore-amrwb... yes
checking opencore-amrnb/interf_dec.h usability... yes
checking opencore-amrnb/interf_dec.h presence... yes
checking for opencore-amrnb/interf_dec.h... yes
checking for Decoder_Interface_init in -lopencore-amrnb... yes
checking wavpack/wavpack.h usability... no
checking wavpack/wavpack.h presence... no
checking for wavpack/wavpack.h... no
checking sndio.h usability... no
checking sndio.h presence... no
checking for sndio.h... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking ao/ao.h usability... no
checking ao/ao.h presence... no
checking for ao/ao.h... no
checking pulse/simple.h usability... no
checking pulse/simple.h presence... no
checking for pulse/simple.h... no
checking for mmsystem.h... no
checking for SNDFILE... no
checking sndfile.h usability... no
checking sndfile.h presence... no
checking for sndfile.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking sys/audioio.h usability... no
checking sys/audioio.h presence... no
checking for sys/audioio.h... no
checking sun/audioio.h usability... no
checking sun/audioio.h presence... no
checking for sun/audioio.h... no
checking whether to enable symlinks... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libgsm/Makefile
config.status: creating lpc10/Makefile
config.status: creating msvc9/Makefile
config.status: creating msvc10/Makefile
config.status: creating sox.pc
config.status: creating src/soxconfig.h
config.status: src/soxconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

BUILD OPTIONS
Debugging build............no
Distro name ...............not specified!
Dynamic loading support....no
Pkg-config location........$(libdir)/pkgconfig
Play and rec symlinks......yes
Symlinks enabled...........yes

OPTIONAL DEVICE DRIVERS
ao (Xiph)..................no
alsa (Linux)...............no
coreaudio (Mac OS X).......no
sndio (OpenBSD)............no
oss........................yes
pulseaudio.................no
sunaudio...................no
waveaudio (MS-Windows).....no

OPTIONAL FILE FORMATS
amrnb......................yes
 dlopen amrnb..............no
amrwb......................yes
 dlopen amrwb..............no
flac.......................no
gsm........................yes (in-tree)
lpc10......................yes (in-tree)
mp2/mp3....................no
 id3tag....................no
 lame......................no
 mad.......................no
 twolame...................no
oggvorbis..................no
opus.......................no
sndfile....................no
wavpack....................no

OTHER OPTIONS
ladspa effects.............no
magic support..............no
png support................no
OpenMP support.............yes, -fopenmp

Configure finished.  Do 'make -s && make install' to compile and install SoX.



Code: Select all


crojav@crojav-hp:~/sox$ sudo make -s && make install
[sudo] wachtwoord voor crojav:          
Making all in lpc10
  CC     analys.lo
  CC     bsynz.lo
  CC     chanwr.lo
  CC     dcbias.lo
  CC     decode.lo
  CC     deemp.lo
  CC     difmag.lo
  CC     dyptrk.lo
  CC     encode.lo
  CC     energy.lo
  CC     f2clib.lo
  CC     ham84.lo
  CC     hp100.lo
  CC     invert.lo
  CC     irc2pc.lo
  CC     ivfilt.lo
  CC     lpcdec.lo
  CC     lpcenc.lo
  CC     lpcini.lo
  CC     lpfilt.lo
  CC     median.lo
  CC     mload.lo
  CC     onset.lo
  CC     pitsyn.lo
  CC     placea.lo
  CC     placev.lo
  CC     preemp.lo
  CC     prepro.lo
  CC     random.lo
  CC     rcchk.lo
  CC     synths.lo
  CC     tbdm.lo
  CC     voicin.lo
  CC     vparms.lo
  CCLD   liblpc10.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in libgsm
  CC     add.lo
  CC     code.lo
  CC     decode.lo
  CC     long_term.lo
  CC     lpc.lo
  CC     preprocess.lo
  CC     rpe.lo
rpe.c: In function ‘RPE_grid_positioning’:
rpe.c:404:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 case 3: *ep++ = 0;
                         ~~~~~~^~~
rpe.c:405:17: note: here
                 case 2:  do {
                 ^~~~
rpe.c:406:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
                                 *ep++ = 0;
                                 ~~~~~~^~~
rpe.c:407:17: note: here
                 case 1:         *ep++ = 0;
                 ^~~~
rpe.c:407:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
                 case 1:         *ep++ = 0;
                                 ~~~~~~^~~
rpe.c:408:17: note: here
                 case 0:         *ep++ = *xMp++;
                 ^~~~
  CC     gsm_destroy.lo
  CC     gsm_decode.lo
  CC     gsm_encode.lo
  CC     gsm_create.lo
gsm_create.c:7:19: warning: ‘ident’ defined but not used [-Wunused-const-variable=]
 static char const ident[] = "$Header: /cvsroot/sox/sox/libgsm/gsm_create.c,v 1.1 2007/09/06 16:50:55 cbagwell Exp $";
                   ^~~~~
  CC     gsm_option.lo
  CC     short_term.lo
In file included from short_term.c:12:0:
short_term.c: In function ‘Decoding_of_the_coded_Log_Area_Ratios’:
short_term.c:55:32: warning: left shift of negative value [-Wshift-negative-value]
   temp1    = GSM_SUB( temp1, B << 1 );  \
                                ^
private.h:120:38: note: in definition of macro ‘GSM_SUB’
  ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
                                      ^
short_term.c:62:2: note: in expansion of macro ‘STEP’
  STEP(  -2560,  -16,  13107 );
  ^~~~
short_term.c:55:32: warning: left shift of negative value [-Wshift-negative-value]
   temp1    = GSM_SUB( temp1, B << 1 );  \
                                ^
private.h:120:38: note: in definition of macro ‘GSM_SUB’
  ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
                                      ^
short_term.c:65:2: note: in expansion of macro ‘STEP’
  STEP(  -1792,   -8,  17476 );
  ^~~~
short_term.c:55:32: warning: left shift of negative value [-Wshift-negative-value]
   temp1    = GSM_SUB( temp1, B << 1 );  \
                                ^
private.h:120:38: note: in definition of macro ‘GSM_SUB’
  ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
                                      ^
short_term.c:66:2: note: in expansion of macro ‘STEP’
  STEP(   -341,   -4,  31454 );
  ^~~~
short_term.c:55:32: warning: left shift of negative value [-Wshift-negative-value]
   temp1    = GSM_SUB( temp1, B << 1 );  \
                                ^
private.h:120:38: note: in definition of macro ‘GSM_SUB’
  ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
                                      ^
short_term.c:67:2: note: in expansion of macro ‘STEP’
  STEP(  -1144,   -4,  29708 );
  ^~~~
  CC     table.lo
  CCLD   libgsm.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in src
  CC     sox.o
sox.c: In function ‘update_status’:
sox.c:1248:23: warning: ‘%u’ directive writing between 1 and 9 bytes into a region of size 7 [-Wformat-overflow=]
     sprintf(buff, "Hd:%u.%u", h /10, h % 10);
                       ^~
sox.c:1248:19: note: directive argument in the range [0, 429496729]
     sprintf(buff, "Hd:%u.%u", h /10, h % 10);
                   ^~~~~~~~~~
sox.c:1248:19: note: directive argument in the range [0, 9]
In file included from /usr/include/stdio.h:862:0,
                 from util.h:20,
                 from sox.c:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output between 7 and 15 bytes into a destination of size 10
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC     libsox_la-adpcms.lo
  CC     libsox_la-aiff.lo
  CC     libsox_la-cvsd.lo
  CC     libsox_la-g711.lo
  CC     libsox_la-g721.lo
  CC     libsox_la-g723_24.lo
  CC     libsox_la-g723_40.lo
  CC     libsox_la-g72x.lo
  CC     libsox_la-vox.lo
  CC     libsox_la-raw.lo
  CC     libsox_la-formats.lo
  CC     libsox_la-formats_i.lo
  CC     libsox_la-skelform.lo
  CC     libsox_la-xmalloc.lo
  CC     libsox_la-getopt.lo
  CC     libsox_la-util.lo
util.c: In function ‘lsx_sigfigs3’:
util.c:124:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 2: if (b) return string[n]; /* Can fall through */
                ^
util.c:125:5: note: here
     case 1: c = 2; break;
     ^~~~
  CC     libsox_la-libsox.lo
  CC     libsox_la-libsox_i.lo
  CC     libsox_la-sox-fmt.lo
  CC     libsox_la-bend.lo
  CC     libsox_la-biquad.lo
  CC     libsox_la-biquads.lo
  CC     libsox_la-chorus.lo
  CC     libsox_la-compand.lo
  CC     libsox_la-compandt.lo
  CC     libsox_la-contrast.lo
  CC     libsox_la-dcshift.lo
  CC     libsox_la-delay.lo
  CC     libsox_la-dft_filter.lo
  CC     libsox_la-dither.lo
In file included from dither.c:274:0:
dither.h: In function ‘flow_iir_4’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:279:0:
dither.h: In function ‘flow_fir_5’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:283:0:
dither.h: In function ‘flow_fir_9’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:287:0:
dither.h: In function ‘flow_fir_15’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:291:0:
dither.h: In function ‘flow_fir_16’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
In file included from dither.c:295:0:
dither.h: In function ‘flow_fir_20’:
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value]
       if (i < (-1 << (p->prec-1)))
                   ^~
dither.c: In function ‘flow_no_shape’:
dither.c:328:20: warning: left shift of negative value [-Wshift-negative-value]
       if (i <= (-1 << (p->prec-1)))
                    ^~
  CC     libsox_la-divide.lo
  CC     libsox_la-dop.lo
  CC     libsox_la-downsample.lo
  CC     libsox_la-earwax.lo
  CC     libsox_la-echo.lo
  CC     libsox_la-echos.lo
  CC     libsox_la-effects.lo
  CC     libsox_la-effects_i.lo
  CC     libsox_la-effects_i_dsp.lo
effects_i_dsp.c:583:0: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
 #pragma STDC FENV_ACCESS ON
 
effects_i_dsp.c: In function ‘lsx_save_samples’:
effects_i_dsp.c:582:41: warning: right-hand operand of comma expression has no effect [-Wunused-value]
 #define _ dest[i] = lrint32(src[i]), ++i,
                                         ^
effects_i_dsp.c:604:19: note: in expansion of macro ‘_’
     _ _ _ _ _ _ _ _ 0;
                   ^
effects_i_dsp.c: At top level:
effects_i_dsp.c:621:0: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
 #pragma STDC FENV_ACCESS OFF
 
  CC     libsox_la-fade.lo
  CC     libsox_la-fft4g.lo
  CC     libsox_la-fir.lo
  CC     libsox_la-firfit.lo
  CC     libsox_la-flanger.lo
  CC     libsox_la-gain.lo
  CC     libsox_la-hilbert.lo
  CC     libsox_la-input.lo
  CC     libsox_la-ladspa.lo
  CC     libsox_la-loudness.lo
  CC     libsox_la-mcompand.lo
  CC     libsox_la-noiseprof.lo
  CC     libsox_la-noisered.lo
  CC     libsox_la-output.lo
  CC     libsox_la-overdrive.lo
  CC     libsox_la-pad.lo
  CC     libsox_la-phaser.lo
  CC     libsox_la-rate.lo
  CC     libsox_la-remix.lo
  CC     libsox_la-repeat.lo
  CC     libsox_la-reverb.lo
  CC     libsox_la-reverse.lo
  CC     libsox_la-sdm.lo
  CC     libsox_la-silence.lo
silence.c: In function ‘aboveThreshold’:
silence.c:280:43: warning: left shift of negative value [-Wshift-negative-value]
   sox_sample_t masked_value = value & (-1 << (32 - effp->in_signal.precision));
                                           ^~
  CC     libsox_la-sinc.lo
  CC     libsox_la-skeleff.lo
  CC     libsox_la-speed.lo
  CC     libsox_la-splice.lo
  CC     libsox_la-stat.lo
  CC     libsox_la-stats.lo
  CC     libsox_la-stretch.lo
  CC     libsox_la-swap.lo
  CC     libsox_la-synth.lo
  CC     libsox_la-tempo.lo
  CC     libsox_la-tremolo.lo
  CC     libsox_la-trim.lo
  CC     libsox_la-upsample.lo
  CC     libsox_la-vad.lo
  CC     libsox_la-vol.lo
  CC     libsox_la-raw-fmt.lo
  CC     libsox_la-s1-fmt.lo
  CC     libsox_la-s2-fmt.lo
  CC     libsox_la-s3-fmt.lo
  CC     libsox_la-s4-fmt.lo
  CC     libsox_la-u1-fmt.lo
  CC     libsox_la-u2-fmt.lo
  CC     libsox_la-u3-fmt.lo
  CC     libsox_la-u4-fmt.lo
  CC     libsox_la-al-fmt.lo
  CC     libsox_la-la-fmt.lo
  CC     libsox_la-ul-fmt.lo
  CC     libsox_la-lu-fmt.lo
  CC     libsox_la-8svx.lo
  CC     libsox_la-aiff-fmt.lo
  CC     libsox_la-aifc-fmt.lo
  CC     libsox_la-au.lo
  CC     libsox_la-avr.lo
  CC     libsox_la-cdr.lo
  CC     libsox_la-cvsd-fmt.lo
  CC     libsox_la-dvms-fmt.lo
  CC     libsox_la-dat.lo
  CC     libsox_la-hcom.lo
  CC     libsox_la-htk.lo
  CC     libsox_la-maud.lo
  CC     libsox_la-prc.lo
  CC     libsox_la-sf.lo
  CC     libsox_la-smp.lo
  CC     libsox_la-sounder.lo
  CC     libsox_la-soundtool.lo
  CC     libsox_la-sphere.lo
  CC     libsox_la-tx16w.lo
  CC     libsox_la-voc.lo
voc.c: In function ‘getblock’:
voc.c:651:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
         lsx_readb(ft, &uc);
         ^~~~~~~~~~~~~~~~~~
voc.c:653:7: note: here
       case VOC_TEXT:
       ^~~~
  CC     libsox_la-vox-fmt.lo
  CC     libsox_la-ima-fmt.lo
  CC     libsox_la-adpcm.lo
  CC     libsox_la-ima_rw.lo
  CC     libsox_la-wav.lo
wav.c: In function ‘startwrite’:
wav.c:1272:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
             lsx_ima_init_table();
             ^~~~~~~~~~~~~~~~~~~~
wav.c:1274:9: note: here
         case WAVE_FORMAT_ADPCM:
         ^~~~
  CC     libsox_la-wve.lo
  CC     libsox_la-xa.lo
  CC     libsox_la-nulfile.lo
  CC     libsox_la-f4-fmt.lo
  CC     libsox_la-f8-fmt.lo
  CC     libsox_la-gsrt.lo
  CC     libsox_la-dsf.lo
  CC     libsox_la-dsdiff.lo
  CC     libsox_la-amr-nb.lo
amr-nb.c:127:26: warning: ‘amr_gp3_library_names’ defined but not used [-Wunused-const-variable=]
 static const char* const amr_gp3_library_names[] =
                          ^~~~~~~~~~~~~~~~~~~~~
  CC     libsox_la-amr-wb.lo
amr-wb.c:116:26: warning: ‘amr_gp3_library_names’ defined but not used [-Wunused-const-variable=]
 static const char* const amr_gp3_library_names[] =
                          ^~~~~~~~~~~~~~~~~~~~~
  CC     libsox_la-gsm.lo
  CC     libsox_la-lpc10.lo
  CC     libsox_la-oss.lo
  CCLD   libsox.la
copying selected object files to avoid basename conflicts...
ar: `u' modifier ignored since `D' is the default (see `U')
  CCLD   sox
  CC     sox_sample_test.o
In file included from sox_sample_test.h:21:0,
                 from sox_sample_test.c:18:
sox_sample_test.h: In function ‘main’:
sox_sample_test.h:39:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_UNSIGNED_TO_SAMPLE(bits,1)); \
                                     ^
sox_sample_test.h:39:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_UNSIGNED_TO_SAMPLE(bits,1)); \
                                     ^
sox_sample_test.h:39:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_UNSIGNED_TO_SAMPLE(bits,1)); \
                                     ^
sox_sample_test.h:96:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_SIGNED_TO_SAMPLE(bits,SOX_INT_MIN(bits)+1)); \
                                     ^
sox_sample_test.h:96:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_SIGNED_TO_SAMPLE(bits,SOX_INT_MIN(bits)+1)); \
                                     ^
sox_sample_test.h:96:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert(sample * SOX_INT_MAX(bits) == SOX_SIGNED_TO_SAMPLE(bits,SOX_INT_MIN(bits)+1)); \
                                     ^
  CCLD   sox_sample_test
  CC     example0.o
In file included from example0.c:27:0:
example0.c: In function ‘main’:
example0.c:46:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example0.c:51:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_write(argv[2], &in->signal, NULL, NULL, NULL, NULL));
          ^
  CCLD   example0
  CC     example1.o
In file included from example1.c:27:0:
example1.c: In function ‘main’:
example1.c:118:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example1.c:123:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_write(argv[2], &in->signal, NULL, NULL, NULL, NULL));
          ^
  CCLD   example1
  CC     example2.o
In file included from example2.c:28:0:
example2.c: In function ‘main’:
example2.c:53:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(*argv, NULL, NULL, NULL));
          ^
example2.c:78:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(buf = malloc(sizeof(sox_sample_t) * block_size));
          ^
  CCLD   example2
  CC     example3.o
In file included from example3.c:27:0:
example3.c: In function ‘main’:
example3.c:68:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example3.c:70:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out= sox_open_write("default", &in->signal, NULL, "alsa", NULL, NULL));
          ^
  CCLD   example3
  CC     example4.o
  CCLD   example4
  CC     example5.o
In file included from example5.c:27:0:
example5.c: In function ‘main’:
example5.c:60:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example5.c:64:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_memstream_write(&buffer, &buffer_size, &in->signal, NULL, "sox", NULL));
          ^
example5.c:71:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_mem_read(buffer, buffer_size, NULL, NULL, NULL));
          ^
example5.c:72:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_write(argv[2], &in->signal, NULL, NULL, NULL, NULL));
          ^
  CCLD   example5
  CC     example6.o
In file included from example6.c:27:0:
example6.c: In function ‘main’:
example6.c:89:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(in = sox_open_read(argv[1], NULL, NULL, NULL));
          ^
example6.c:90:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert(out = sox_open_write(argv[2], &out_signal, &out_encoding, NULL, NULL, NULL));
          ^
  CCLD   example6
Making install in lpc10
make[1]: Map '/home/crojav/sox/lpc10' wordt binnengegaan
make[2]: Map '/home/crojav/sox/lpc10' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'install-exec-am'.
make[2]: Er hoeft niets gedaan te worden voor 'install-data-am'.
make[2]: Map '/home/crojav/sox/lpc10' wordt verlaten
make[1]: Map '/home/crojav/sox/lpc10' wordt verlaten
Making install in libgsm
make[1]: Map '/home/crojav/sox/libgsm' wordt binnengegaan
make[2]: Map '/home/crojav/sox/libgsm' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'install-exec-am'.
make[2]: Er hoeft niets gedaan te worden voor 'install-data-am'.
make[2]: Map '/home/crojav/sox/libgsm' wordt verlaten
make[1]: Map '/home/crojav/sox/libgsm' wordt verlaten
Making install in src
make[1]: Map '/home/crojav/sox/src' wordt binnengegaan
make[2]: Map '/home/crojav/sox/src' wordt binnengegaan
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ../libtool --silent  --silent --mode=install /usr/bin/install -c   libsox.la '/usr/local/lib'
/usr/bin/install: cannot create regular file '/usr/local/lib/libsox.so.3.0.0': Permission denied
Makefile:1132: recipe for target 'install-libLTLIBRARIES' failed
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Map '/home/crojav/sox/src' wordt verlaten
Makefile:2851: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Map '/home/crojav/sox/src' wordt verlaten
Makefile:590: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
ajgringo619

Re: C compiler cannot create executables

Post by ajgringo619 »

You're right there - you need to run sudo make install instead of make install; that will fix your permissions issue. There's no need to rerun anything else.
Crojav

Re: C compiler cannot create executables

Post by Crojav »

ajgringo619 wrote: Sun Feb 17, 2019 2:43 pm You're right there - you need to run sudo make install instead of make install; that will fix your permissions issue. There's no need to rerun anything else.
Still one error >>> symbol lookup error: undefined symbol: lsx_malloc

Code: Select all

crojav@crojav-hp:~/sox$ sudo make install
[sudo] wachtwoord voor crojav:          
Making install in lpc10
make[1]: Map '/home/crojav/sox/lpc10' wordt binnengegaan
make[2]: Map '/home/crojav/sox/lpc10' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'install-exec-am'.
make[2]: Er hoeft niets gedaan te worden voor 'install-data-am'.
make[2]: Map '/home/crojav/sox/lpc10' wordt verlaten
make[1]: Map '/home/crojav/sox/lpc10' wordt verlaten
Making install in libgsm
make[1]: Map '/home/crojav/sox/libgsm' wordt binnengegaan
make[2]: Map '/home/crojav/sox/libgsm' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'install-exec-am'.
make[2]: Er hoeft niets gedaan te worden voor 'install-data-am'.
make[2]: Map '/home/crojav/sox/libgsm' wordt verlaten
make[1]: Map '/home/crojav/sox/libgsm' wordt verlaten
Making install in src
make[1]: Map '/home/crojav/sox/src' wordt binnengegaan
make[2]: Map '/home/crojav/sox/src' wordt binnengegaan
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ../libtool --silent  --silent --mode=install /usr/bin/install -c   libsox.la '/usr/local/lib'
 /bin/mkdir -p '/usr/local/bin'
  /bin/bash ../libtool --silent  --silent --mode=install /usr/bin/install -c sox '/usr/local/bin'
make  install-exec-hook
make[3]: Map '/home/crojav/sox/src' wordt binnengegaan
if test "yes" = "yes"; then	\
	cd /usr/local/bin; rm -f  play rec; ln -s sox play; ln -s sox rec; \
fi
if test "yes" = "yes"; then	\
	cd /usr/local/bin; rm -f  soxi; ln -s sox soxi; \
fi
make[3]: Map '/home/crojav/sox/src' wordt verlaten
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 sox.h '/usr/local/include'
make[2]: Map '/home/crojav/sox/src' wordt verlaten
make[1]: Map '/home/crojav/sox/src' wordt verlaten
make[1]: Map '/home/crojav/sox' wordt binnengegaan
make[2]: Map '/home/crojav/sox' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 sox.1 soxi.1 '/usr/local/share/man/man1'
 /bin/mkdir -p '/usr/local/share/man/man3'
 /usr/bin/install -c -m 644 libsox.3 '/usr/local/share/man/man3'
 /bin/mkdir -p '/usr/local/share/man/man7'
 /usr/bin/install -c -m 644 soxformat.7 '/usr/local/share/man/man7'
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 sox.pc '/usr/local/lib/pkgconfig'
make  install-data-hook
make[3]: Map '/home/crojav/sox' wordt binnengegaan
cd /usr/local/share/man/man1 && rm -f play.1 && ln -s sox.1 play.1
cd /usr/local/share/man/man1 && rm -f rec.1 && ln -s sox.1 rec.1
cd /usr/local/share/man/man7 && rm -f soxeffect.7 && ln -s ../man1/sox.1 soxeffect.7
make[3]: Map '/home/crojav/sox' wordt verlaten
make[2]: Map '/home/crojav/sox' wordt verlaten
make[1]: Map '/home/crojav/sox' wordt verlaten
crojav@crojav-hp:~/sox$ 

Code: Select all

[code]crojav@crojav-hp:~/sox/wav$ sox steely-dan-josie.wav  -r 2822400 -b 1 steely-dan-josie.dsf
sox: symbol lookup error: sox: undefined symbol: lsx_malloc
Ajgringo619 to see if your install also works - could you give this a try, with any wav or flac file?

Code: Select all

$ sox your-wav-or-flac-file.wav  -r 2822400 -b 1 your-wav-or-flac-file.dsf



Or when I tried to play:

Code: Select all

[code]crojav@crojav-hp:~/sox/wav$ play 2L-45_stereo_01_DSF_11289k_1b.dsf
play: symbol lookup error: play: undefined symbol: lsx_malloc

Found info but I am not able to relate this to my error.

https://github.com/skratchdot/sox/blob/ ... /xmalloc.h
https://sourceforge.net/p/sox/mailman/s ... ansr.com/



I was able to make a .deb file of it - let me know if you're interested.
If we can not fix my error - i would be interested to get your deb file

Thanks for all the hard work you do ajgringo619

Greeting Crojav
ajgringo619

Re: C compiler cannot create executables

Post by ajgringo619 »

I feel like a complete idiot! :oops: I had never heard of the play command, so I checked to see where it came from...the sox package in the repos (same version we've been struggling with, too)!!! Try this:

Code: Select all

sudo apt install sox
Crojav

Re: C compiler cannot create executables

Post by Crojav »

ajgringo619 wrote: Mon Feb 18, 2019 12:05 pm I feel like a complete idiot! :oops: I had never heard of the play command, so I checked to see where it came from...the sox package in the repos (same version we've been struggling with, too)!!! Try this:

Code: Select all

sudo apt install sox
No you are not a idiot. This Sox Package I like to install is not the regular Sox. I already have Sox installed. I use Sox on a daily basic. But I need the other Sox version witch comes from a fork https://github.com/mansr/sox. This Sox Fork has a special option witch you not will find in the regular Sox and that is that it is able to conversion wav or flac files to DSD.

Recap, we need to continue with the https://github.com/mansr/sox If you still have some mood and time I appreciate your help

And yes you have a

Code: Select all

play file-to-play.wav

and

Code: Select all

rec file-to-record.wav
command for Sox



Greeting Crojav
Last edited by Crojav on Mon Feb 18, 2019 1:25 pm, edited 2 times in total.
Locked

Return to “Software & Applications”