microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.34k stars 6.45k forks source link

clickhouse-cpp abseil link error #33914

Open Chrys4lisfag opened 1 year ago

Chrys4lisfag commented 1 year ago

Describe the bug Can't compile the app with clickhouse-cpp package

clickhouse-cpp-lib-static.lib(decimal.cpp.obj) : error LNK2001: unresolved external symbol "class absl::int128 __cdecl absl::operator/(class absl::int128,class absl::int128)" (??Kabsl@@YA?AVint128@0@V10@0@Z)

Environment

To Reproduce Steps to reproduce the behavior:

  1. ./vcpkg install clickhouse-cpp:x64-windows-static

`clickhouse::ClientOptions options; options.SetHost( "censored" ); options.SetPort( 8123 ); options.SetDefaultDatabase( "censored" ); options.SetUser( "censored" ); options.SetPassword( "censored" ); clickhouse::Client client( options );

client.Select( "SELECT max(censored) as max FROM censored.censored;",
               []( const clickhouse::Block& block )
{

    auto censored = block[ 0 ]->As<clickhouse::ColumnUInt64>()->At( 0 );
}
);`
LilyWangLL commented 1 year ago

Thanks for posting this issue. Could you please provide the sample repro project?

Chrys4lisfag commented 1 year ago

Thanks for posting this issue. Could you please provide the sample repro project?

https://github.com/Chrys4lisfag/vcpkg-clickhouse-issue-repo x64-release is configured

I've also seen mention of this issue here: https://github.com/microsoft/vcpkg/pull/27250#pullrequestreview-1143281874

Chrys4lisfag commented 1 year ago

Thanks for posting this issue. Could you please provide the sample repro project?

Hi, has the issue been confirmed? Do you need anything more for me to check?

LilyWangLL commented 1 year ago

I will test this issue locally soon.

Chrys4lisfag commented 1 year ago

I will test this issue locally soon.

Hi, I've seen that package was updated and the issue is fixed now.

Everything works except for the compression option, I get crc mismatch when enable it.

As I understand this can be caused by wrong cityhash package bundled https://github.com/ClickHouse/clickhouse-cpp/issues/325

Thank you for fixing compiling issue, I hope that compression will be fixed as well!

github-actions[bot] commented 1 year ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.