安装Memcached时编译出错。
=============================================================
[Linux] AMH 7.0
http://amh.sh
[memcached-1.6 install]
=============================================================
[Notice] memcached-1.6 is not installed.
[AMH] Download memcached-1.6.3.tar.gz checking fastest mirror, Please Wait ....--2023-03-04 12:02:00-- http://code.amh.sh/files/memcached-1.6.3.tar.gz
Resolving code.amh.sh (code.amh.sh)... 45.79.70.161
Connecting to code.amh.sh (code.amh.sh)|45.79.70.161|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://cb0544d9e3.code-usa.amh.sh/files/memcached-1.6.3.tar.gz?e=1677902582&amhcode=eev7uSMILeQGEgpY70OG_A== [following]
--2023-03-04 12:02:02-- http://cb0544d9e3.code-usa.amh.sh/files/memcached-1.6.3.tar.gz?e=1677902582&amhcode=eev7uSMILeQGEgpY70OG_A==
Resolving cb0544d9e3.code-usa.amh.sh (cb0544d9e3.code-usa.amh.sh)... 45.79.70.161
Reusing existing connection to code.amh.sh:80.
HTTP request sent, awaiting response... 200 OK
Length: 538890 (526K) [application/octet-stream]
Saving to: 'memcached-1.6.3.tar.gz'
0K .......... .......... .......... .......... .......... 9% 1.80M 0s
50K .......... .......... .......... .......... .......... 19% 3.62M 0s
100K .......... .......... .......... .......... .......... 28% 22.4M 0s
150K .......... .......... .......... .......... .......... 38% 49.8M 0s
200K .......... .......... .......... .......... .......... 47% 4.06M 0s
250K .......... .......... .......... .......... .......... 57% 24.4M 0s
300K .......... .......... .......... .......... .......... 66% 28.3M 0s
350K .......... .......... .......... .......... .......... 76% 48.6M 0s
400K .......... .......... .......... .......... .......... 85% 6.41M 0s
450K .......... .......... .......... .......... .......... 95% 27.8M 0s
500K .......... .......... ...... 100% 47.3M=0.07s
2023-03-04 12:02:02 (7.29 MB/s) - 'memcached-1.6.3.tar.gz' saved [538890/538890]
memcached-1.6.3/
memcached-1.6.3/m4/
memcached-1.6.3/m4/c99-backport.m4
memcached-1.6.3/assoc.c
memcached-1.6.3/crc32c.h
memcached-1.6.3/depcomp
memcached-1.6.3/openbsd_priv.c
memcached-1.6.3/stats_prefix.c
memcached-1.6.3/protocol_binary.h
memcached-1.6.3/itoa_ljust.h
memcached-1.6.3/items.c
memcached-1.6.3/hash.c
memcached-1.6.3/murmur3_hash.c
memcached-1.6.3/tls.h
memcached-1.6.3/config.sub
memcached-1.6.3/sizes.c
memcached-1.6.3/install-sh
memcached-1.6.3/storage.h
memcached-1.6.3/items.h
memcached-1.6.3/testapp.c
memcached-1.6.3/logger.h
memcached-1.6.3/memcached.spec
memcached-1.6.3/authfile.c
memcached-1.6.3/restart.h
memcached-1.6.3/storage.c
memcached-1.6.3/cache.h
memcached-1.6.3/config.h.in
memcached-1.6.3/README.md
memcached-1.6.3/slabs.h
memcached-1.6.3/util.h
memcached-1.6.3/memcached.c
memcached-1.6.3/crc32c.c
memcached-1.6.3/authfile.h
memcached-1.6.3/murmur3_hash.h
memcached-1.6.3/daemon.c
memcached-1.6.3/logger.c
memcached-1.6.3/freebsd_priv.c
memcached-1.6.3/jenkins_hash.h
memcached-1.6.3/slab_automove.c
memcached-1.6.3/timedrun.c
memcached-1.6.3/slab_automove.h
memcached-1.6.3/slabs.c
memcached-1.6.3/solaris_priv.c
memcached-1.6.3/configure
memcached-1.6.3/assoc.h
memcached-1.6.3/config.guess
memcached-1.6.3/trace.h
memcached-1.6.3/version.m4
memcached-1.6.3/extstore.c
memcached-1.6.3/crawler.c
memcached-1.6.3/configure.ac
memcached-1.6.3/thread.c
memcached-1.6.3/ChangeLog
memcached-1.6.3/restart.c
memcached-1.6.3/hash.h
memcached-1.6.3/aclocal.m4
memcached-1.6.3/AUTHORS
memcached-1.6.3/tls.c
memcached-1.6.3/cache.c
memcached-1.6.3/NEWS
memcached-1.6.3/memcached.h
memcached-1.6.3/compile
memcached-1.6.3/missing
memcached-1.6.3/scripts/
memcached-1.6.3/scripts/start-memcached
memcached-1.6.3/scripts/memcached-automove-extstore
memcached-1.6.3/scripts/memcached-tool
memcached-1.6.3/scripts/damemtop.yaml
memcached-1.6.3/scripts/memcached-init
memcached-1.6.3/scripts/README.damemtop
memcached-1.6.3/scripts/damemtop
memcached-1.6.3/scripts/memcached.service
memcached-1.6.3/scripts/memcached@.service
memcached-1.6.3/scripts/memcached-automove
memcached-1.6.3/scripts/memcached.upstart
memcached-1.6.3/scripts/memcached.sysv
memcached-1.6.3/scripts/memcached-tool.1
memcached-1.6.3/scripts/memcached-server.upstart
memcached-1.6.3/scripts/memcached.sysconfig
memcached-1.6.3/bipbuffer.c
memcached-1.6.3/t/
memcached-1.6.3/t/ascii-auth.t
memcached-1.6.3/t/idle-timeout.t
memcached-1.6.3/t/slabs-reassign2.t
memcached-1.6.3/t/multiversioning.t
memcached-1.6.3/t/lru-maintainer.t
memcached-1.6.3/t/authfile
memcached-1.6.3/t/sasl/
memcached-1.6.3/t/sasl/memcached.conf
memcached-1.6.3/t/issue_61.t
memcached-1.6.3/t/stats.t
memcached-1.6.3/t/issue_68.t
memcached-1.6.3/t/expirations.t
memcached-1.6.3/t/issue_41.t
memcached-1.6.3/t/refhang.t
memcached-1.6.3/t/issue_3.t
memcached-1.6.3/t/udp.t
memcached-1.6.3/t/flush-all.t
memcached-1.6.3/t/ssl_settings.t
memcached-1.6.3/t/extstore.t
memcached-1.6.3/t/quit.t
memcached-1.6.3/t/lib/
memcached-1.6.3/t/lib/MemcachedTest.pm
memcached-1.6.3/t/getandtouch.t
memcached-1.6.3/t/server_key.pem
memcached-1.6.3/t/chunked-items.t
memcached-1.6.3/t/getset.t
memcached-1.6.3/t/issue_104.t
memcached-1.6.3/t/issue_50.t
memcached-1.6.3/t/error-extstore.t
memcached-1.6.3/t/binary-get.t
memcached-1.6.3/t/daemonize.t
memcached-1.6.3/t/watcher.t
memcached-1.6.3/t/bogus-commands.t
memcached-1.6.3/t/slabs-reassign-chunked.t
memcached-1.6.3/t/conn-limits.t
memcached-1.6.3/t/issue_260.t
memcached-1.6.3/t/restart.t
memcached-1.6.3/t/server.pem
memcached-1.6.3/t/issue_14.t
memcached-1.6.3/t/binary.t
memcached-1.6.3/t/64bit.t
memcached-1.6.3/t/issue_183.t
memcached-1.6.3/t/watcher_connid.t
memcached-1.6.3/t/evictions.t
memcached-1.6.3/t/binary-extstore.t
memcached-1.6.3/t/unixsocket.t
memcached-1.6.3/t/maxconns.t
memcached-1.6.3/t/issue_152.t
memcached-1.6.3/t/line-lengths.t
memcached-1.6.3/t/issue_70.t
memcached-1.6.3/t/ssl_cert_refresh.t
memcached-1.6.3/t/cakey.pem
memcached-1.6.3/t/issue_140.t
memcached-1.6.3/t/binary-sasl.t
memcached-1.6.3/t/chunked-extstore.t
memcached-1.6.3/t/stress-memcached.pl
memcached-1.6.3/t/extstore-jbod.t
memcached-1.6.3/t/issue_42.t
memcached-1.6.3/t/stats-conns.t
memcached-1.6.3/t/malicious-commands.t
memcached-1.6.3/t/issue_22.t
memcached-1.6.3/t/metaget.t
memcached-1.6.3/t/server_crt.pem
memcached-1.6.3/t/lru.t
memcached-1.6.3/t/flags.t
memcached-1.6.3/t/client_key.pem
memcached-1.6.3/t/dyn-maxbytes.t
memcached-1.6.3/t/slabhang.t
memcached-1.6.3/t/ssl_ports.t
memcached-1.6.3/t/client_crt.pem
memcached-1.6.3/t/incrdecr.t
memcached-1.6.3/t/ssl_session_resumption.t
memcached-1.6.3/t/misbehave.t
memcached-1.6.3/t/issue_67.t
memcached-1.6.3/t/whitespace.t
memcached-1.6.3/t/extstore-buckets.t
memcached-1.6.3/t/00-startup.t
memcached-1.6.3/t/issue_108.t
memcached-1.6.3/t/dash-M.t
memcached-1.6.3/t/issue_163.t
memcached-1.6.3/t/issue_192.t
memcached-1.6.3/t/cacert.pem
memcached-1.6.3/t/item_size_max.t
memcached-1.6.3/t/noreply.t
memcached-1.6.3/t/ssl_verify_modes.t
memcached-1.6.3/t/issue_29.t
memcached-1.6.3/t/touch.t
memcached-1.6.3/t/lru-crawler.t
memcached-1.6.3/t/stats-detail.t
memcached-1.6.3/t/slabs_reassign.t
memcached-1.6.3/t/cas.t
memcached-1.6.3/util.c
memcached-1.6.3/itoa_ljust.c
memcached-1.6.3/crawler.h
memcached-1.6.3/memcached_dtrace.d
memcached-1.6.3/slab_automove_extstore.h
memcached-1.6.3/COPYING
memcached-1.6.3/doc/
memcached-1.6.3/doc/protocol-binary.txt
memcached-1.6.3/doc/xml2rfc/
memcached-1.6.3/doc/xml2rfc/reference.RFC.0768.xml
memcached-1.6.3/doc/xml2rfc/rfc2629-xhtml.ent
memcached-1.6.3/doc/xml2rfc/reference.RFC.2119.xml
memcached-1.6.3/doc/xml2rfc/rfc2629-noinc.xsl
memcached-1.6.3/doc/xml2rfc/rfc2629.dtd
memcached-1.6.3/doc/xml2rfc/rfc2629-refchk.xsl
memcached-1.6.3/doc/xml2rfc/rfc2629-other.ent
memcached-1.6.3/doc/protocol-binary.xml
memcached-1.6.3/doc/protocol-binary-range.txt
memcached-1.6.3/doc/Doxyfile
memcached-1.6.3/doc/storage.txt
memcached-1.6.3/doc/protocol-binary-range.xml
memcached-1.6.3/doc/new_lru.txt
memcached-1.6.3/doc/tls.txt
memcached-1.6.3/doc/protocol.txt
memcached-1.6.3/doc/threads.txt
memcached-1.6.3/doc/CONTRIBUTORS
memcached-1.6.3/doc/readme.txt
memcached-1.6.3/doc/Makefile
memcached-1.6.3/doc/Makefile.in
memcached-1.6.3/doc/Makefile.am
memcached-1.6.3/doc/memcached.1
memcached-1.6.3/stats_prefix.h
memcached-1.6.3/slab_automove_extstore.c
memcached-1.6.3/bipbuffer.h
memcached-1.6.3/LICENSE.bipbuffer
memcached-1.6.3/linux_priv.c
memcached-1.6.3/sasl_defs.h
memcached-1.6.3/extstore.h
memcached-1.6.3/Makefile.in
memcached-1.6.3/sasl_defs.c
memcached-1.6.3/Makefile.am
memcached-1.6.3/jenkins_hash.c
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /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 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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for icc in use... no
checking for clang in use... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether __SUNPRO_C is declared... no
checking for gcc option to accept ISO C99... none needed
checking sasl/sasl.h usability... no
checking sasl/sasl.h presence... no
checking for sasl/sasl.h... no
checking for gcov... /bin/gcov
checking for main in -lgcov... yes
checking size of void *... 8
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... /usr/local/libevent
checking for library containing gethugepagesizes... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... 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 whether byte ordering is bigendian... no
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 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: executing depfiles commands
make all-recursive
make[1]: Entering directory '/tmp/memcached-1.6.3'
Making all in doc
make[2]: Entering directory '/tmp/memcached-1.6.3/doc'
make all-am
make[3]: Entering directory '/tmp/memcached-1.6.3/doc'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/tmp/memcached-1.6.3/doc'
make[2]: Leaving directory '/tmp/memcached-1.6.3/doc'
make[2]: Entering directory '/tmp/memcached-1.6.3'
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -I/usr/local/libevent/include -g -O2 -pthread -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-memcache
d.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
memcached.c: In function 'main':
memcached.c:9970:9: error: 'sigignore' is deprecated: Use the signal function instead [-Werror=deprecated-declarations]
9970 | if (sigignore(SIGHUP) == -1) {
| ^~
In file included from memcached.h:22,
from memcached.c:16:
/usr/include/signal.h:363:12: note: declared here
363 | extern int sigignore (int __sig) __THROW
| ^~~~~~~~~
memcached.c:10119:5: error: 'sigignore' is deprecated: Use the signal function instead [-Werror=deprecated-declarations]
10119 | if (sigignore(SIGPIPE) == -1) {
| ^~
In file included from memcached.h:22,
from memcached.c:16:
/usr/include/signal.h:363:12: note: declared here
363 | extern int sigignore (int __sig) __THROW
| ^~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:788: memcached-memcached.o] Error 1
make[2]: Leaving directory '/tmp/memcached-1.6.3'
make[1]: *** [Makefile:1627: all-recursive] Error 1
make[1]: Leaving directory '/tmp/memcached-1.6.3'
make: *** [Makefile:575: all] Error 2
ln: failed to access '/usr/local/memcached-1.6/bin/memcached': No such file or directory
useradd: user 'nobody' already exists
[Notice] memcached-1.6 is not installed.
相同出错帖子https://segmentfault.com/q/1010000002749097
但为对AMH提出解决方案。请问有朋友可以给出个解决方案吗?谢谢
亲,系统gcc是12版本吗,这边刚已经更新了memcached,在软件商店重新安装一次memcached再看。上面帖子忽略这个告警应该也没问题。