Error in Libconflate - While building from source
Error Log:
t/couchbase-server_src/install/lib/python"
/usr/bin/install -c management/cbadm-online-restore management/cbadm-online-update management/cbadm-tap-registration management/cbbackup management/cbbackup-incremental management/cbbackup-merge-incremental management/cbdbconvert management/cbdbmaint management/cbdbupgrade management/cbflushctl management/cbrestore management/cbstats management/cbvbucketctl '/root/gt/couchbase-server_src/install/lib/python'
make[3]: Leaving directory `/root/gt/couchbase-server_src/ep-engine'
make[2]: Leaving directory `/root/gt/couchbase-server_src/ep-engine'
make[1]: Leaving directory `/root/gt/couchbase-server_src/ep-engine'
if [ "xfalse" = "xtrue" ]; then rm -f -f /root/gt/couchbase-server_src/install/lib/*.la; fi
(rm -rf tmp/libconflate; mkdir -p tmp/libconflate)
make -C libconflate install
make[1]: Entering directory `/root/gt/couchbase-server_src/libconflate'
make install-recursive
make[2]: Entering directory `/root/gt/couchbase-server_src/libconflate'
Making install in .
make[3]: Entering directory `/root/gt/couchbase-server_src/libconflate'
CC rest.lo
rest.c:181: error: expected declaration specifiers or ‘...’ before ‘curlsocktype’
rest.c:181: warning: no previous prototype for ‘setup_curl_sock’ [-Wmissing-prototypes]
rest.c: In function ‘setup_curl_sock’:
rest.c:183: error: ‘purpose’ undeclared (first use in this function)
rest.c:183: error: (Each undeclared identifier is reported only once
rest.c:183: error: for each function it appears in.)
rest.c: In function ‘setup_handle’:
rest.c:197: error: ‘CURLOPT_SOCKOPTFUNCTION’ undeclared (first use in this function)
make[3]: *** [rest.lo] Error 1
make[3]: Leaving directory `/root/gt/couchbase-server_src/libconflate'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/root/gt/couchbase-server_src/libconflate'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/gt/couchbase-server_src/libconflate'
make: *** [make-install-libconflate] Error 2
GCC version 4.1.2
Whats the cause of this error and how to fix it?
Thanks
GT
you need to remove curl-devel and build and install curl 7.21.4 , wget http://curl.haxx.se/download/curl-7.21.4.tar.gz