Issue in configurting Couchbase with Freeradius

Hi,
We are trying to setup couchbase with Radius server. We have configured freeradius code from git and trying to build it.
We are able to configure it but getting errors while running "make " command

Steps we have done so far :

  1. Install libcouchbase and its dependancies
  2. Install couchbase db and create test bucket

Below is the error which we are getting :

src/modules/rlm_couchbase/couchbase.h:64:30: error: unknown type name ‘lcb_t’
void couchbase_stat_callback(lcb_t instance, const void *cookie, lcb_error_t error,
^
src/modules/rlm_couchbase/couchbase.h:64:66: error: unknown type name ‘lcb_error_t’
void couchbase_stat_callback(lcb_t instance, const void *cookie, lcb_error_t error,
^
src/modules/rlm_couchbase/couchbase.h:65:2: error: unknown type name ‘lcb_server_stat_resp_t’
const lcb_server_stat_resp_t *resp);

1 Like

looks like freeradius connector is using libcouchbase2, so please make sure you have libcouchbase of 2.10.x series (latest release is 2.10.8)

2 Likes

Agreed @avsej
Please provide us any additional log details so we can see what’s going on or please report success @abhijeet.kulkarni so we know you’re headed the right direction!

1 Like

@avsej It worked! We were trying to use the latest version of libcouchbase [version 3+] which was automatically downloaded when we issued the command “yum install libcouchbase” on centos 7. We tried it on Ubuntu 18.04 LTS and it worked.Still, We are facing issues on Centos 7. I will try to compile code again as per your comments.

Thanks for your support. Great Support!

@austin Thanks for your reply. I have voted @avsej 's answer as solution.