stvchu / memcacheq Goto Github PK
View Code? Open in Web Editor NEWSimple Queue Service over Memcache
Home Page: http://memcachedb.org/memcacheq
License: Other
Simple Queue Service over Memcache
Home Page: http://memcachedb.org/memcacheq
License: Other
./configure --prefix=/usr/local/apps/memcacheq --enable-threads --with-bdb=/usr/local/apps/berkeleydb --with-libevent=/usr/local/apps/libevent
make
---------error log----------
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
gcc -DHAVE_CONFIG_H -I. -I/usr/local/apps/berkeleydb/include -I/usr/local/apps/libevent/include -g -O2 -MT memcacheq.o -MD -MP -MF .deps/memcacheq.Tpo -c -o memcacheq.o memcacheq.c
memcacheq.c:2222:15: warning: implicit declaration of function 'daemonize' is invalid in C99 [-Wimplicit-function-declaration]
res = daemonize(maxcore, settings.verbose);
^
1 warning generated.
mv -f .deps/memcacheq.Tpo .deps/memcacheq.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/apps/berkeleydb/include -I/usr/local/apps/libevent/include -g -O2 -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.c
mv -f .deps/item.Tpo .deps/item.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/apps/berkeleydb/include -I/usr/local/apps/libevent/include -g -O2 -MT thread.o -MD -MP -MF .deps/thread.Tpo -c -o thread.o thread.c
mv -f .deps/thread.Tpo .deps/thread.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/apps/berkeleydb/include -I/usr/local/apps/libevent/include -g -O2 -MT bdb.o -MD -MP -MF .deps/bdb.Tpo -c -o bdb.o bdb.c
mv -f .deps/bdb.Tpo .deps/bdb.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/apps/berkeleydb/include -I/usr/local/apps/libevent/include -g -O2 -MT hashtable.o -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.o hashtable.c
hashtable.c:276:1: error: redefinition of a 'extern inline' function 'hashtable_iterator_key' is not supported in C99 mode
hashtable_iterator_key(struct hashtable_itr i)
^
./hashtable.h:202:1: note: previous definition is here
hashtable_iterator_key(struct hashtable_itr *i)
^
hashtable.c:280:1: error: redefinition of a 'extern inline' function 'hashtable_iterator_value' is not supported in C99 mode
hashtable_iterator_value(struct hashtable_itr *i)
^
./hashtable.h:211:1: note: previous definition is here
hashtable_iterator_value(struct hashtable_itr *i)
^
2 errors generated.
make[1]: ** [hashtable.o] Error 1
make: *** [all] Error 2
https://trac.macports.org/ticket/37738 这是 macport 里的 ticket。
output of make CC=clang
:
make all-am
clang -DHAVE_CONFIG_H -I. -I/usr/local/BerkeleyDB.4.7/include -I/opt/local/include -I/opt/local/include/db47 -MT memcacheq.o -MD -MP -MF .deps/memcacheq.Tpo -c -o memcacheq.o memcacheq.c
memcacheq.c:2222:15: warning: implicit declaration of function 'daemonize' is invalid in C99
[-Wimplicit-function-declaration]
res = daemonize(maxcore, settings.verbose);
^
memcacheq.c:2265:5: warning: expression result unused [-Wunused-value]
thread_init(settings.num_threads, main_base);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./memcacheq.h:318:39: note: expanded from macro 'thread_init'
# define thread_init(x,y) 0
^
2 warnings generated.
mv -f .deps/memcacheq.Tpo .deps/memcacheq.Po
clang -DHAVE_CONFIG_H -I. -I/usr/local/BerkeleyDB.4.7/include -I/opt/local/include -I/opt/local/include/db47 -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.c
mv -f .deps/item.Tpo .deps/item.Po
clang -DHAVE_CONFIG_H -I. -I/usr/local/BerkeleyDB.4.7/include -I/opt/local/include -I/opt/local/include/db47 -MT thread.o -MD -MP -MF .deps/thread.Tpo -c -o thread.o thread.c
mv -f .deps/thread.Tpo .deps/thread.Po
clang -DHAVE_CONFIG_H -I. -I/usr/local/BerkeleyDB.4.7/include -I/opt/local/include -I/opt/local/include/db47 -MT bdb.o -MD -MP -MF .deps/bdb.Tpo -c -o bdb.o bdb.c
mv -f .deps/bdb.Tpo .deps/bdb.Po
clang -DHAVE_CONFIG_H -I. -I/usr/local/BerkeleyDB.4.7/include -I/opt/local/include -I/opt/local/include/db47 -MT hashtable.o -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.o hashtable.c
hashtable.c:276:1: error: redefinition of a 'extern inline' function 'hashtable_iterator_key' is not
supported in C99 mode
hashtable_iterator_key(struct hashtable_itr *i)
^
./hashtable.h:202:1: note: previous definition is here
hashtable_iterator_key(struct hashtable_itr *i)
^
hashtable.c:280:1: error: redefinition of a 'extern inline' function 'hashtable_iterator_value' is
not supported in C99 mode
hashtable_iterator_value(struct hashtable_itr *i)
^
./hashtable.h:211:1: note: previous definition is here
hashtable_iterator_value(struct hashtable_itr *i)
^
2 errors generated.
make[1]: *** [hashtable.o] Error 1
make: *** [all] Error 2
MemcacheQ performed well before. But recently, it crashed every 2 days.
This is from my syslog:
# cat /var/log/messages | grep memcacheq
May 3 12:19:51 cache7 kernel: memcacheq[28474] general protection ip:403fb5 sp:7fffe810fe20 error:0 in memcacheq[400000+d000]
May 5 06:49:12 cache7 kernel: memcacheq[4940]: segfault at 8 ip 0000000000403fb5 sp 00007ff16c0efcf0 error 6 in memcacheq[400000+d000]
May 7 16:54:43 cache7 kernel: memcacheq[9075]: segfault at 8 ip 0000000000403fb5 sp 00007f41b7a3fcf0 error 6 in memcacheq[400000+d000]
May 7 17:59:30 cache7 kernel: memcacheq[44401]: segfault at 8 ip 0000000000403fb5 sp 00007faadcd0acf0 error 6 in memcacheq[400000+d000]
May 9 13:51:13 cache7 kernel: memcacheq[341]: segfault at 8 ip 0000000000403fb5 sp 00007fba24947cf0 error 6 in memcacheq[400000+d000
May 12 05:11:34 cache7 kernel: memcacheq[36237] general protection ip:403fb5 sp:7ffffc919ac0 error:0 in memcacheq[400000+d000]
Could you help me solve this?
Hi.
Sorry for my English.
Not compile at Gentoo. Have a error - redefinition of ‘hashtable_iterator_value’
Reason: GCC version 5, initialize hashtable functions.
How fixed:
View all gcc version:
gcc-config -l
[1] x86_64-pc-linux-gnu-4.9.3
[2] x86_64-pc-linux-gnu-5.4.0 *
Set index with gcc 4 (at my system is index 1)
gcc-config 1
source /etc/profile && env-update
When using -Werror=implicit-function-declaration
in CFLAGS (or when using the compiler shipped with Xcode 12 or later which has that behavior by default) building memcacheq 0.2.1 fails:
memcacheq.c:2222:15: error: implicit declaration of function 'daemonize' [-Werror,-Wimplicit-function-declaration]
res = daemonize(maxcore, settings.verbose);
^
daemonize
is defined in daemon.c but there is no prototype of that function visible to memcacheq.c.
This was originally reported to MacPorts.
My mq often appear the following error message, could you tell me to how to deal with, what is the problem? thx~
memcachepool::get(): server 192.168.1.14 (tcp 22201, udp 0) failed with: network time out
memcachepool::set(): server 192.168.1.14 (tcp 22201, udp 0) failed with: network time out
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.