Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in compilation using bmc-cache/memcached-sr# CC=clang CFLAGS='-DREUSEPORT_OPT=1 -Wno-deprecated-declarations' ./configure && make #9

Open
kolinfluence opened this issue Dec 20, 2022 · 1 comment

Comments

@kolinfluence
Copy link

bmc-cache/memcached-sr# CC=clang CFLAGS='-DREUSEPORT_OPT=1 -Wno-deprecated-declarations' ./configure && make

./configure: line 5148: syntax error near unexpected token `newline'
@nzalik
Copy link

nzalik commented Apr 20, 2023

Please I also have an issue with that line.
CC=clang-9 CFLAGS='-DREUSEPORT_OPT=1 -Wno-deprecated-declarations' ./configure && make

I'm using kernel version 6.2
I have tried with available versions of clang on ubuntu 23.04 (clang-13, clang-14, clang-15) but I still seeing erros

This is the log of the terminal :

@-Latitude-E7470:~/Documents//Packet-filter/3/bmc-cache/memcached-sr$ CC=clang-15 CFLAGS='-DREUSEPORT_OPT=1 -Wno-deprecated-declarations' ./configure && make
checking build system type... x86_64-pc-linux-gnu
checking host 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 race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... clang-15
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 clang-15 accepts -g... yes
checking for clang-15 option to enable C11 features... none needed
checking whether clang-15 understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of clang-15... gcc3
checking how to run the C preprocessor... clang-15 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for icc in use... no
checking for clang in use... yes
checking for clang-15 options needed to detect all undeclared functions... -fno-builtin
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 whether __SUNPRO_C is declared... no
checking for clang-15 option to accept ISO C99... none needed
checking for sasl/sasl.h... no
checking for gcov... /usr/bin/gcov
checking for library containing clock_gettime... none required
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for libevent directory... (system)
checking for library containing umem_cache_create... no
checking for library containing gethugepagesizes... no
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for inttypes.h... (cached) yes
checking for sasl_callback_ft... no
checking for print macros for integers (C99 section 7.8.1)... yes
checking for an ANSI C-conforming const... yes
checking for socklen_t... yes
checking for endianness... little
checking for htonll... no
checking for library containing pthread_create... none required
checking for mlockall... yes
checking for getpagesizes... no
checking for sysconf... yes
checking for memcntl... no
checking for sigignore... yes
checking for clock_gettime... yes
checking for accept4... yes
checking for getopt_long... yes
checking for alignment... none
checking for GCC atomics... yes
checking for GCC 64bit atomics... yes
checking for setppriv... no
checking for pledge... no
checking for cap_enter... no
checking for umem.h... no
checking for xml2rfc... no
checking for xsltproc... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory '/home/
/Documents//Packet-filter/3/bmc-cache/memcached-sr'
Making all in doc
make[2]: Entering directory '/home/
/Documents//Packet-filter/3/bmc-cache/memcached-sr/doc'
make all-am
make[3]: Entering directory '/home/
/Documents//Packet-filter/3/bmc-cache/memcached-sr/doc'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/
/Documents//Packet-filter/3/bmc-cache/memcached-sr/doc'
make[2]: Leaving directory '/home/
/Documents//Packet-filter/3/bmc-cache/memcached-sr/doc'
make[2]: Entering directory '/home/
/Documents//Packet-filter/3/bmc-cache/memcached-sr'
clang-15 -DHAVE_CONFIG_H -I. -DNDEBUG -DREUSEPORT_OPT=1 -Wno-deprecated-declarations -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-stats.o -MD -MP -MF .deps/memcached-stats.Tpo -c -o memcached-stats.o test -f 'stats.c' || echo './'stats.c
stats.c:38:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void stats_prefix_init() {
^
void
stats.c:46:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void stats_prefix_clear() {
^
void
stats.c:173:35: error: variable 'total_written' set but not used [-Werror,-Wunused-but-set-variable]
size_t size = 0, written = 0, total_written = 0;
^
3 errors generated.
make[2]: *** [Makefile:915: memcached-stats.o] Error 1
make[2]: Leaving directory '/home/
/Documents//Packet-filter/3/bmc-cache/memcached-sr'
make[1]: *** [Makefile:1628: all-recursive] Error 1
make[1]: Leaving directory '/home/
/Documents/****/Packet-filter/3/bmc-cache/memcached-sr'
make: *** [Makefile:580: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants