zuloloxi / memcachedb

Automatically exported from code.google.com/p/memcachedb
Other
0 stars 0 forks source link

Compilation error on OpenBSD 4.7 box - memcachedb 1.2.0 and 1.2.1 #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure --with-bdb=/usr/local
2. make

Output from configure and make:

# ./configure --with-bdb=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for libevent directory... (system)
checking for library containing db_create... -ldb
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... no
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 db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing mallinfo... no
checking for daemon... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for struct mallinfo.arena... no
checking for socklen_t... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating tools/Makefile
config.status: creating conf/Makefile
config.status: creating config.h
config.status: executing depfiles commands
# make
make  all-recursive
Making all in doc
Making all in tools
Making all in conf
gcc -DHAVE_CONFIG_H -I.    -I/usr/local/include  -g -O2 -MT memcachedb.o -MD 
-MP -MF .deps/memcachedb.Tpo -c -o memcachedb.o memcachedb.c
In file included from memcachedb.c:20:
memcachedb.h:304: error: syntax error before '*' token
memcachedb.h:385: error: syntax error before '*' token
memcachedb.h:385: warning: data definition has no type or storage class
memcachedb.c:106: error: syntax error before '*' token
memcachedb.c:106: warning: data definition has no type or storage class
memcachedb.c: In function `process_rget_command':
memcachedb.c:1099: error: `txn' undeclared (first use in this function)
memcachedb.c:1099: error: (Each undeclared identifier is reported only once
memcachedb.c:1099: error: for each function it appears in.)
memcachedb.c:1100: error: `DBC' undeclared (first use in this function)
memcachedb.c:1100: error: `cursorp' undeclared (first use in this function)
memcachedb.c:1129: error: request for member `txn_begin' in something not a 
structure or union
memcachedb.c:1137: error: structure has no member named `cursor'
memcachedb.c:1137: error: `DB_READ_COMMITTED' undeclared (first use in this 
function)
memcachedb.c:1144: error: `DB_SET_RANGE' undeclared (first use in this function)
memcachedb.c:1153: error: `DB_NEXT' undeclared (first use in this function)
memcachedb.c: In function `process_rep_command':
memcachedb.c:1435: error: request for member `rep_set_priority' in something 
not a structure or union
memcachedb.c:1450: error: request for member `repmgr_set_ack_policy' in 
something not a structure or union
memcachedb.c: In function `process_bdb_command':
memcachedb.c:1471: error: request for member `log_archive' in something not a 
structure or union
memcachedb.c:1471: error: `DB_ARCH_REMOVE' undeclared (first use in this 
function)
memcachedb.c:1482: error: request for member `txn_checkpoint' in something not 
a structure or union
memcachedb.c:1493: error: syntax error before "c_data"
memcachedb.c:1494: error: structure has no member named `compact'
memcachedb.c:1494: error: `c_data' undeclared (first use in this function)
memcachedb.c:1494: error: `DB_FREE_SPACE' undeclared (first use in this 
function)
memcachedb.c: In function `server_socket':
memcachedb.c:2157: error: `AI_ADDRCONFIG' undeclared (first use in this 
function)
memcachedb.c: In function `main':
memcachedb.c:2675: error: `DB_PRIVATE' undeclared (first use in this function)
memcachedb.c:2678: error: `DB_REP_CLIENT' undeclared (first use in this 
function)
memcachedb.c:2682: error: `DB_REP_MASTER' undeclared (first use in this 
function)
*** Error code 1

Stop in /usr/src/memcachedb-1.2.1-beta (line 92 of /usr/share/mk/sys.mk).
*** Error code 1

Stop in /usr/src/memcachedb-1.2.1-beta (line 311 of Makefile).
*** Error code 1

Stop in /usr/src/memcachedb-1.2.1-beta (line 175 of Makefile).

Regards,
Artur

Original issue reported on code.google.com by artur.li...@googlemail.com on 17 Jun 2010 at 3:44