build started at Thu Nov 29 20:50:50 UTC 2012 port directory: /usr/ports/databases/beansdb building for: 10.0-CURRENT amd64 maintained by: qingfeng@douban.com Makefile ident: $FreeBSD: head/databases/beansdb/Makefile 300896 2012-07-14 13:54:48Z beat $ ---Begin Environment--- OSVERSION=1000025 UNAME_v=FreeBSD 10.0-CURRENT UNAME_r=10.0-CURRENT BLOCKSIZE=K MAIL=/var/mail/root STATUS=1 HTTP_PROXY=http://10.56.1.1:8080 PKG_EXT=txz FORCE_PACKAGE=yes http_proxy=http://10.56.1.1:8080 tpid=68725 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin POUDRIERE_BUILD_TYPE=bulk PKGNG=1 PKG_DELETE=/usr/local/sbin/pkg delete -y -f PKG_ADD=/usr/local/sbin/pkg add PWD=/usr/local/etc/poudriere.d LOGS=/pdata/logs HOME=/root USER=root SKIPSANITY=0 LOCALBASE=/usr/local PACKAGE_BUILDING=yes ---End Environment--- ---Begin OPTIONS List--- ---End OPTIONS List--- ================================================= ===> beansdb-0.5.3 depends on file: /usr/local/sbin/pkg - not found ===> Verifying install for /usr/local/sbin/pkg in /usr/ports/ports-mgmt/pkg ===> Installing existing package /usr/ports/packages/All/pkg-1.0.2.txz Installing pkg-1.0.2... done If you are upgrading from the old package format, first run: # pkg2ng ===> Returning to build of beansdb-0.5.3 ====================================================================== ===> Cleaning for beansdb-0.5.3 ================================================= ====================================================================== ================================================= ===> beansdb-0.5.3 depends on file: /usr/local/sbin/pkg - found => beansdb-0.5.3.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch http://beansdb.googlecode.com/files/beansdb-0.5.3.tar.gz beansdb-0.5.3.tar.gz 0 B 0 Bps ====================================================================== ================================================= ===> beansdb-0.5.3 depends on file: /usr/local/sbin/pkg - found => SHA256 Checksum OK for beansdb-0.5.3.tar.gz. ====================================================================== ================================================= ===> beansdb-0.5.3 depends on file: /usr/local/sbin/pkg - found ===> Extracting for beansdb-0.5.3 => SHA256 Checksum OK for beansdb-0.5.3.tar.gz. ====================================================================== ================================================= ===> Patching for beansdb-0.5.3 ====================================================================== ================================================= ===> Configuring for beansdb-0.5.3 ===> FreeBSD 10 autotools fix applied to /wrkdirs/usr/ports/databases/beansdb/work/beansdb-0.5.3/configure ===> FreeBSD 10 autotools fix applied to /wrkdirs/usr/ports/databases/beansdb/work/beansdb-0.5.3/aclocal.m4 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel 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... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of cc... gcc3 checking whether cc understands -c and -o together... yes checking for library containing socket... none required checking for library containing gethostbyname... none required checking for library containing mallinfo... no checking for clock_gettime in -lrt... yes checking how to run the C preprocessor... cpp 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... yes 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 proc/readproc.h usability... no checking proc/readproc.h presence... no checking for proc/readproc.h... no checking for get_proc_stats in -lproc... no checking for daemon... yes checking sys/epoll.h usability... no checking sys/epoll.h presence... no checking for sys/epoll.h... no checking sys/event.h usability... yes checking sys/event.h presence... yes checking for sys/event.h... 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... no checking malloc.h presence... no checking for malloc.h... no 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 config.h config.status: executing depfiles commands ====================================================================== ================================================= ===> Building for beansdb-0.5.3 make all-recursive Making all in doc cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-beansdb.o -MD -MP -MF .deps/beansdb-beansdb.Tpo -c -o beansdb-beansdb.o `test -f 'beansdb.c' || echo './'`beansdb.c beansdb.c:366:5: warning: implicit declaration of function 'delete_event' is invalid in C99 [-Wimplicit-function-declaration] delete_event(c->sfd); ^ beansdb.c:985:9: warning: implicit declaration of function 'isspace' is invalid in C99 [-Wimplicit-function-declaration] if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { ^ beansdb.c:1052:5: warning: switch condition has boolean value switch (hs_delete(store, key)) { ^ ~~~~~~~~~~~~~~~~~~~~~ beansdb.c:1119:66: warning: '&&' within '||' [-Wlogical-op-parentheses] (strcmp(tokens[COMMAND_TOKEN].value, "set") == 0 && (comm = NREAD_SET) || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ~~ beansdb.c:1119:66: note: place parentheses around the '&&' expression to silence this warning (strcmp(tokens[COMMAND_TOKEN].value, "set") == 0 && (comm = NREAD_SET) || ^ ( ) beansdb.c:1120:69: warning: '&&' within '||' [-Wlogical-op-parentheses] strcmp(tokens[COMMAND_TOKEN].value, "append") == 0 && (comm = NREAD_APPEND)) ) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ beansdb.c:1120:69: note: place parentheses around the '&&' expression to silence this warning strcmp(tokens[COMMAND_TOKEN].value, "append") == 0 && (comm = NREAD_APPEND)) ) { ^ ( ) beansdb.c:1185:54: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] getpeername(c->sfd, (struct sockaddr*)&addr, &addrlen); ^~~~~~~~ /usr/include/sys/socket.h:615:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ beansdb.c:2127:9: warning: implicit declaration of function 'pthread_create' is invalid in C99 [-Wimplicit-function-declaration] if (pthread_create(&flush_id, NULL, do_flush, NULL) != 0) { ^ beansdb.c:2138:5: warning: implicit declaration of function 'pthread_join' is invalid in C99 [-Wimplicit-function-declaration] pthread_join(flush_id, NULL); ^ 8 warnings generated. mv -f .deps/beansdb-beansdb.Tpo .deps/beansdb-beansdb.Po cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-item.o -MD -MP -MF .deps/beansdb-item.Tpo -c -o beansdb-item.o `test -f 'item.c' || echo './'`item.c mv -f .deps/beansdb-item.Tpo .deps/beansdb-item.Po cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-thread.o -MD -MP -MF .deps/beansdb-thread.Tpo -c -o beansdb-thread.o `test -f 'thread.c' || echo './'`thread.c mv -f .deps/beansdb-thread.Tpo .deps/beansdb-thread.Po cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-htree.o -MD -MP -MF .deps/beansdb-htree.Tpo -c -o beansdb-htree.o `test -f 'htree.c' || echo './'`htree.c htree.c:404:50: warning: '&&' within '||' [-Wlogical-op-parentheses] if (node->count > 100000 || prefix==NULL && node->count > 128) { ~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ htree.c:404:50: note: place parentheses around the '&&' expression to silence this warning if (node->count > 100000 || prefix==NULL && node->count > 128) { ^ ( ) htree.c:435:51: warning: '&&' within '||' [-Wlogical-op-parentheses] if (prefix == NULL || l >= prefix_len && strncmp(name, prefix, prefix_len) == 0) { ~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ htree.c:435:51: note: place parentheses around the '&&' expression to silence this warning if (prefix == NULL || l >= prefix_len && strncmp(name, prefix, prefix_len) == 0) { ^ ( ) htree.c:471:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static optimize_node(HTree *tree, Node* node) ~~~~~~ ^ htree.c:486:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 4 warnings generated. mv -f .deps/beansdb-htree.Tpo .deps/beansdb-htree.Po cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-record.o -MD -MP -MF .deps/beansdb-record.Tpo -c -o beansdb-record.o `test -f 'record.c' || echo './'`record.c record.c:96:9: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink(path); ^ record.c:142:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ record.c:350:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] uint32_t crc = crc32(0, (char*)(&r->tstamp), ^~~~~~~~~~~~~~~~~~~ ./crc32.c:77:37: note: passing argument to parameter 'buf' here crc32 (uint32_t crc, unsigned char *buf, size_t len) ^ record.c:352:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] crc = crc32(crc, r->value, vsz); ^~~~~~~~ ./crc32.c:77:37: note: passing argument to parameter 'buf' here crc32 (uint32_t crc, unsigned char *buf, size_t len) ^ record.c:386:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] data->crc = crc32(0, (char*)&data->tstamp, n - sizeof(uint32_t)); ^~~~~~~~~~~~~~~~~~~~ ./crc32.c:77:37: note: passing argument to parameter 'buf' here crc32 (uint32_t crc, unsigned char *buf, size_t len) ^ 5 warnings generated. mv -f .deps/beansdb-record.Tpo .deps/beansdb-record.Po cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-codec.o -MD -MP -MF .deps/beansdb-codec.Tpo -c -o beansdb-codec.o `test -f 'codec.c' || echo './'`codec.c codec.c:70:27: warning: '&&' within '||' [-Wlogical-op-parentheses] if (*p >= '0' && *p <= '9' || *p >= 'a' && *p <= 'f'){ ~~~~~~~~~~^~~~~~~~~~~~ ~~ codec.c:70:27: note: place parentheses around the '&&' expression to silence this warning if (*p >= '0' && *p <= '9' || *p >= 'a' && *p <= 'f'){ ^ ( ) codec.c:70:53: warning: '&&' within '||' [-Wlogical-op-parentheses] if (*p >= '0' && *p <= '9' || *p >= 'a' && *p <= 'f'){ ~~ ~~~~~~~~~~^~~~~~~~~~~~ codec.c:70:53: note: place parentheses around the '&&' expression to silence this warning if (*p >= '0' && *p <= '9' || *p >= 'a' && *p <= 'f'){ ^ ( ) codec.c:73:43: warning: '&&' within '||' [-Wlogical-op-parentheses] while(p < q && (*p >= '0' && *p <= '9' || *p >= 'a' && *p <= 'f')) { ~~~~~~~~~~^~~~~~~~~~~~ ~~ codec.c:73:43: note: place parentheses around the '&&' expression to silence this warning while(p < q && (*p >= '0' && *p <= '9' || *p >= 'a' && *p <= 'f')) { ^ ( ) codec.c:73:69: warning: '&&' within '||' [-Wlogical-op-parentheses] while(p < q && (*p >= '0' && *p <= '9' || *p >= 'a' && *p <= 'f')) { ~~ ~~~~~~~~~~^~~~~~~~~~~~ codec.c:73:69: note: place parentheses around the '&&' expression to silence this warning while(p < q && (*p >= '0' && *p <= '9' || *p >= 'a' && *p <= 'f')) { ^ ( ) codec.c:86:63: warning: '&&' within '||' [-Wlogical-op-parentheses] if (nd - num[m] > 10 || nd - num[m] == 10 && num[m][0] >= '2'){ ~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ codec.c:86:63: note: place parentheses around the '&&' expression to silence this warning if (nd - num[m] > 10 || nd - num[m] == 10 && num[m][0] >= '2'){ ^ ( ) codec.c:103:26: warning: implicit declaration of function 'fnv1a' is invalid in C99 [-Wimplicit-function-declaration] uint32_t h = fnv1a(fmt, flen) % RDICT_SIZE; ^ 6 warnings generated. mv -f .deps/beansdb-codec.Tpo .deps/beansdb-codec.Po cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-bitcask.o -MD -MP -MF .deps/beansdb-bitcask.Tpo -c -o beansdb-bitcask.o `test -f 'bitcask.c' || echo './'`bitcask.c bitcask.c:95:68: warning: '&&' within '||' [-Wlogical-op-parentheses] (st.st_mtime < before || 0 == lstat(datapath, &st) && st.st_mtime < before)){ ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ bitcask.c:95:68: note: place parentheses around the '&&' expression to silence this warning (st.st_mtime < before || 0 == lstat(datapath, &st) && st.st_mtime < before)){ ^ ( ) bitcask.c:308:21: warning: '&&' within '||' [-Wlogical-op-parentheses] if (version < 0 && vlen > 0 || vlen > MAX_RECORD_SIZE){ ~~~~~~~~~~~~^~~~~~~~~~~ ~~ bitcask.c:308:21: note: place parentheses around the '&&' expression to silence this warning if (version < 0 && vlen > 0 || vlen > MAX_RECORD_SIZE){ ^ ( ) bitcask.c:346:29: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] if (it->pos & 0xff == bc->curr){ ^~~~~~~~~~~~~~~~~~ bitcask.c:346:29: note: place parentheses around the == expression to silence this warning if (it->pos & 0xff == bc->curr){ ^ ( ) bitcask.c:346:29: note: place parentheses around the & expression to evaluate it first if (it->pos & 0xff == bc->curr){ ^ ( ) bitcask.c:425:32: warning: passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] ht_get_hash(bc->tree, "@", &total); ^~~~~~ ./htree.h:41:57: note: passing argument to parameter 'count' here uint32_t ht_get_hash(HTree *tree, const char *key, int *count); ^ bitcask.c:427:41: warning: passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] ht_get_hash(bc->curr_tree, "@", curr); ^~~~ ./htree.h:41:57: note: passing argument to parameter 'count' here uint32_t ht_get_hash(HTree *tree, const char *key, int *count); ^ 5 warnings generated. mv -f .deps/beansdb-bitcask.Tpo .deps/beansdb-bitcask.Po cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-hstore.o -MD -MP -MF .deps/beansdb-hstore.Tpo -c -o beansdb-hstore.o `test -f 'hstore.c' || echo './'`hstore.c hstore.c:140:57: warning: passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] return bc_get_hash(store->bitcasks[index], "@", count); ^~~~~ ./bitcask.h:34:60: note: passing argument to parameter 'count' here uint16_t bc_get_hash(Bitcask *bc, const char * pos, int *count); ^ hstore.c:148:45: warning: passing 'int *' to parameter of type 'uint32_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] h = hs_get_hash(store, pos_buf, &c); ^~ hstore.c:135:65: note: passing argument to parameter 'count' here static uint16_t hs_get_hash(HStore *store, char *pos, uint32_t *count) ^ hstore.c:252:44: warning: passing 'int *' to parameter of type 'uint32_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] char *body = hs_get(store, key, &rlen, &flag); ^~~~~ hstore.c:191:61: note: passing argument to parameter 'flag' here char *hs_get(HStore *store, char *key, int *vlen, uint32_t *flag) ^ hstore.c:278:44: warning: passing 'int *' to parameter of type 'uint32_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] char *body = hs_get(store, key, &rlen, &flag); ^~~~~ hstore.c:191:61: note: passing argument to parameter 'flag' here char *hs_get(HStore *store, char *key, int *vlen, uint32_t *flag) ^ 4 warnings generated. mv -f .deps/beansdb-hstore.Tpo .deps/beansdb-hstore.Po cc -DHAVE_CONFIG_H -I. -DNDEBUG -O2 -pipe -pthread -fno-strict-aliasing -MT beansdb-quicklz.o -MD -MP -MF .deps/beansdb-quicklz.Tpo -c -o beansdb-quicklz.o `test -f 'quicklz.c' || echo './'`quicklz.c mv -f .deps/beansdb-quicklz.Tpo .deps/beansdb-quicklz.Po cc -O2 -pipe -pthread -fno-strict-aliasing -o beansdb beansdb-beansdb.o beansdb-item.o beansdb-thread.o beansdb-htree.o beansdb-record.o beansdb-codec.o beansdb-bitcask.o beansdb-hstore.o beansdb-quicklz.o -lrt beansdb-htree.o: In function `add_item': htree.c:(.text+0x44e): undefined reference to `set_data' htree.c:(.text+0x532): undefined reference to `set_data' beansdb-htree.o: In function `ht_remove': htree.c:(.text+0x8c9): undefined reference to `set_data' beansdb-htree.o: In function `optimize_node': htree.c:(.text+0x17c2): undefined reference to `set_data' cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [beansdb] Error code 1 Stop in /wrkdirs/usr/ports/databases/beansdb/work/beansdb-0.5.3. *** [all-recursive] Error code 1 Stop in /wrkdirs/usr/ports/databases/beansdb/work/beansdb-0.5.3. *** [all] Error code 1 Stop in /wrkdirs/usr/ports/databases/beansdb/work/beansdb-0.5.3. *** [do-build] Error code 1 Stop in /usr/ports/databases/beansdb. ===> Cleaning for beansdb-0.5.3 build of /usr/ports/databases/beansdb ended at Thu Nov 29 20:51:34 UTC 2012