how to add run path to libclickhouse-cpp-lib.so

Open
#402 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
build-system

Research direction

Start by inspecting the default Makefile and the build rule for libclickhouse-cpp-lib.so; reproduce the GLIBCXX 3.4.21 error and determine how its run path is configured. Done means the generated shared library uses the intended run path and loads the expected libstdc++.so.6.

Written by the indexing model from the issue text.

Description

environment needs-info question

I build by using default makefile, but when i run with libclickhouse-cpp-lib.so, this so file have no run path, it use the wrong
version of libstdc++.so.6, lead to error "GLIBCXX 3.4.21 not found" , so I have to add run path to libclickhouse-cpp-lib.so by configuring makefile, can anyone give a hand on this?

Dominant language
C
Stars
388
Forks
220
Avg merge
1d 25m
Merged PRs (30d)
16

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/clickhouse-cpp

All issues in ClickHouse/clickhouse-cpp

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.