Moxi linker error on SmartOS
I'm trying to compile couchbase on SmartOS (Joyent's port of Solaris), and I'm having trouble getting past a linker error in moxi.
util.h:70:10: warning: redundant redeclaration of 'htonll' [-Wredundant-decls] In file included from /usr/include/netinet/in.h:72:0, from /usr/include/sys/socket.h:49, from config_static.h:46, from config.h:403, from solaris_priv.c:1: /usr/include/sys/byteorder.h:96:17: note: previous declaration of 'htonll' was here CCLD moxi Undefined first referenced symbol in file vbucket_get_vbucket_by_key moxi-mcs.o vbucket_compare moxi-mcs.o vbucket_found_incorrect_master moxi-mcs.o vbucket_config_parse_string moxi-mcs.o vbucket_config_get_num_servers moxi-mcs.o vbucket_config_get_password moxi-mcs.o vbucket_get_error moxi-agent_config.o vbucket_config_get_user moxi-mcs.o vbucket_free_diff moxi-mcs.o vbucket_config_destroy moxi-mcs.o vbucket_get_master moxi-mcs.o vbucket_config_get_server moxi-mcs.o ld: fatal: symbol referencing errors. No output written to moxi collect2: error: ld returned 1 exit status make: *** [moxi] Error 1 make: Leaving directory `/home/admin/couchbase-server_src/moxi' make: *** [install-recursive] Error 1 make: Leaving directory `/home/admin/couchbase-server_src/moxi' make: *** [install] Error 2 make: Leaving directory `/home/admin/couchbase-server_src/moxi' make: *** [make-install-moxi] Error 2
I have already added a few include/lib paths to solve previous errors, but I can't figure out what it's missing this time. In hopes of getting more information about the error, I tried adding the verbose flag to gcc, but to no avail.
As a side note, the redundant redeclaration of 'htonll' warning at the top appears 20-30 times before this, but I'm not sure that it's related.
Any suggestions would be much appreciated.