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

mac make error log #2

Open
byshome opened this issue Dec 17, 2013 · 1 comment
Open

mac make error log #2

byshome opened this issue Dec 17, 2013 · 1 comment

Comments

@byshome
Copy link

byshome commented Dec 17, 2013

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

@ryandesign
Copy link

Duplicate of #1. Use -std=gnu89 in CFLAGS.

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