Giter Site home page Giter Site logo

memcacheq's People

Contributors

stvchu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

memcacheq's Issues

mac make error log

./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

Cannot compile with clang on macosx.

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 crashes frequently

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?

Can not compile at Gentoo (redefinition of ‘hashtable_iterator_value’)

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:

  1. 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 *

  2. Set index with gcc 4 (at my system is index 1)
    gcc-config 1

source /etc/profile && env-update

  1. Install memcacheq from ebuild
    emerge -av net-misc/memcacheq

error: implicit declaration of function 'daemonize'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.