Skip to content
This repository has been archived by the owner on Aug 9, 2018. It is now read-only.

cannot compile on macosx 10.8.2 #7

Closed
cofyc opened this issue May 20, 2013 · 2 comments
Closed

cannot compile on macosx 10.8.2 #7

cofyc opened this issue May 20, 2013 · 2 comments

Comments

@cofyc
Copy link

cofyc commented May 20, 2013

make  all-recursive
Making all in doc
make[2]: Nothing to be done for `all'.
gcc -DHAVE_CONFIG_H -I.  -DNDEBUG   -I/opt/boxen/homebrew/include -MT beansdb-htree.o -MD -MP -MF .deps/beansdb-htree.Tpo -c -o beansdb-htree.o `test -f 'src/htree.c' || echo './'`src/htree.c
src/htree.c: In function ‘ht_open’:
src/htree.c:494: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘off_t’
src/htree.c:494: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘off_t’
src/htree.c:499: error: ‘POSIX_FADV_SEQUENTIAL’ undeclared (first use in this function)
src/htree.c:499: error: (Each undeclared identifier is reported only once
src/htree.c:499: error: for each function it appears in.)
make[2]: *** [beansdb-htree.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
@davies
Copy link
Contributor

davies commented May 20, 2013

It seems that the feature test macros _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L do not work in Mac OS X 10.8.

There is no problem in Mac OS X 10.6, and I have no 10.8 to test it, could you contribute a patch for it ?

@cofyc
Copy link
Author

cofyc commented May 20, 2013

Hi, it works now.

In this commit: 9ea477b you fixed it.

@cofyc cofyc closed this as completed May 20, 2013
zzl0 pushed a commit that referenced this issue Jun 19, 2015
clear all warnings while compiling, and fix a operator precedence's bug
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants