Opened 3 months ago

Last modified 12 days ago

#5488 reviewing enhancement

Replace tools/cql_config with pkg-config from cpp-driver

Reported by: tomek Owned by: fdupont
Priority: high Milestone: Kea1.4
Component: build system Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no


When Cassandra was first integrated, cpp-driver didn't provide any way to use their package, so cql_config script was developed to return compilation and linker options.

Usage of cql_config is inconvenient, because it requires modifying tools/ script. As of cpp-driver-2.8.0, it now provides .pc files that can be used by pkg-config. It should be possible to use pkg-config to determine the paths.


Attachments (1)

cpp-driver.rb (567 bytes) - added by fdupont 2 months ago.
macOS brew file for cpp-driver

Download all attachments as: .zip

Change History (7)

comment:1 Changed 2 months ago by razvan.becheriu

  • Owner set to razvan.becheriu
  • Status changed from new to accepted

comment:2 Changed 2 months ago by fdupont

Please review and merge #5494 before and check it still configures after #5488. Note I don't believe there is a brew definition for cpp-driver. I can create one if needed.

Changed 2 months ago by fdupont

macOS brew file for cpp-driver

comment:3 Changed 4 weeks ago by fdupont

As this becomes more and more important I propose 3 things:

-1- increase the priority of this ticket to the highest Cassandra ticket (as Cassandra tickets depends on this one IMHO nobody should object).
-2- update to use pkg-config on macOS.
-3- someone (e.g. you) checks it is an improvement on supported systems where cpp-driver is packaged (i.e. some Linuxes?)

comment:4 Changed 3 weeks ago by fdupont

  • Priority changed from medium to high

Bump the priority of it before working on Cassandra code becomes a nightmare. BTW there are cpp-driver packages only for CentIOS and Ubuntu in a not official repository.

comment:5 Changed 13 days ago by razvan.becheriu

Fixed google benchmarks with source:
Modified to use pkg-config by default when enabling cassandra backend
Added support for statically linking with cassandra cpp driver

to compile with static cpp-driver, the driver must be compiled with:

If you want to build the packages to use with apt or yum, please add "-DCMAKE_CXX_FLAGS='-fPIC'" to the cmake command by modifying the lines in:



You can find the sources in PR71:

Please test for MacOSX


Last edited 12 days ago by razvan.becheriu (previous) (diff)

comment:6 Changed 12 days ago by razvan.becheriu

  • Owner changed from razvan.becheriu to fdupont
  • Status changed from accepted to reviewing
Note: See TracTickets for help on using tickets.