Atempting to compile libshout-idjc-2.4.6 and encounter a compiler error.
I run the pre-compilation checks:
Parallels@ubuntu-linux-22-04-desktop:~/Downloads/libshout-idjc-2.4.6$ ./configure CFLAGS="-O2" --prefix=/usr --libdir=/usr/lib64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/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 whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
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... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.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) 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 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 egrep... (cached) /usr/bin/grep -E
checking for strings.h... (cached) yes
checking for sys/timeb.h... yes
checking for arpa/inet.h... yes
checking for stdarg.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for inttypes.h... (cached) yes
checking for uint32_t... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for strcasestr... yes
checking for library containing nanosleep... none required
checking for sys/socket.h... yes
checking for socklen_t... yes
checking for va_copy... va_copy
checking for sys/select.h... yes
checking for sys/uio.h... yes
checking for winsock2.h... no
checking for library containing sethostent... none required
checking for library containing getnameinfo... none required
checking for endhostent... yes
checking for getaddrinfo... yes
checking for inet_aton... yes
checking for writev... yes
checking for struct sockaddr_storage.ss_family... yes
checking for inet_pton... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for pthread_spin_lock... yes
checking for pkg-config... no
checking for OGG... no
checking for libogg... ok
checking for VORBIS... no
checking for libvorbis... ok
checking for THEORA... no
checking for libtheora... Not found
configure: WARNING: Theora library not found, disabling
checking for SPEEX... no
checking for libspeex... configure: WARNING: Speex library not found, disabling
checking for pkg-config... no
checking for pkg-config... no
configure: SSL disabled!
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/shoutidjc/Makefile
config.status: creating include/shoutidjc/shout.h
config.status: creating src/Makefile
config.status: creating src/common/net/Makefile
config.status: creating src/common/timing/Makefile
config.status: creating src/common/thread/Makefile
config.status: creating src/common/avl/Makefile
config.status: creating src/common/httpp/Makefile
config.status: creating doc/Makefile
config.status: creating tools/Makefile
config.status: creating examples/Makefile
config.status: creating win32/Makefile
config.status: creating shout-idjc.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Reviewing the output I can't see any creation of a shout.h file. When I ten try to compile the file i get the following error:
parallels@ubuntu-linux-22-04-desktop:~/Downloads/libshout-idjc-2.4.6$ make
make all-recursive
make[1]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6'
Making all in include
make[2]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/include'
Making all in shoutidjc
make[3]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/include/shoutidjc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/include/shoutidjc'
make[3]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/include'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/include'
make[2]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/include'
Making all in src
make[2]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src'
Making all in common/avl
make[3]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/avl'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/avl'
Making all in common/net
make[3]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/net'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/net'
Making all in common/timing
make[3]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/timing'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/timing'
Making all in common/httpp
make[3]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/httpp'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/httpp'
Making all in common/thread
make[3]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/thread'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src/common/thread'
make[3]: Entering directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I./common -I/usr/include -Wall -ffast-math -fsigned-char -I/usr/include -O2 -MT shout.lo -MD -MP -MF .deps/shout.Tpo -c -o shout.lo shout.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I./common -I/usr/include -Wall -ffast-math -fsigned-char -I/usr/include -O2 -MT shout.lo -MD -MP -MF .deps/shout.Tpo -c shout.c -fPIC -DPIC -o .libs/shout.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I./common -I/usr/include -Wall -ffast-math -fsigned-char -I/usr/include -O2 -MT shout.lo -MD -MP -MF .deps/shout.Tpo -c shout.c -o shout.o >/dev/null 2>&1
mv -f .deps/shout.Tpo .deps/shout.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I./common -I/usr/include -Wall -ffast-math -fsigned-char -I/usr/include -O2 -MT legacy.lo -MD -MP -MF .deps/legacy.Tpo -c -o legacy.lo legacy.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I./common -I/usr/include -Wall -ffast-math -fsigned-char -I/usr/include -O2 -MT legacy.lo -MD -MP -MF .deps/legacy.Tpo -c legacy.c -fPIC -DPIC -o .libs/legacy.o
legacy.c:26:10: fatal error: shout/shout.h: No such file or directory
26 | #include <shout shout.h="">
| ^~~~~~~~~~~~~~~
compilation terminated.
make[3]: [Makefile:586: legacy.lo] Error 1
make[3]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src'
make[2]: [Makefile:605: all-recursive] Error 1
make[2]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6/src'
make[1]: [Makefile:550: all-recursive] Error 1
make[1]: Leaving directory '/home/parallels/Downloads/libshout-idjc-2.4.6'
make: [Makefile:417: all] Error 2</shout>
I'd appreciate any help you can bring to bear dechiphering the error message and resolving the issue.
same problem for me, using debian 11
Previous versions of libshout-idjc should work.
Perhaps the quickest workaround would be to install the libshout-dev package. I reckon it compiled for me due to that being on my system. The offending line of code should read shoutidjc/shout.h in a file called legacy.c at line 26. You would need a text editor if you feel like fixing it at your end.
I just downloaded the library on a similar set-up (Ubuntu 22.04). Has the line been fixed or should I install the dev package?
I am also confused about that line about --prefix=/usr. A scan through the system shows that all the directories mentioned on the compilation/installation page are there.
Scrubbed and re-uploaded as version 2.4.6-r1.