Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] subscribeAsync and createProducerAsync return UnknownErrorCode when built using devtoolset-11 #255

Open
1 of 2 tasks
izumo27 opened this issue Apr 20, 2023 · 0 comments

Comments

@izumo27
Copy link
Contributor

izumo27 commented Apr 20, 2023

Search before asking

  • I searched in the issues and found nothing similar.

Version

OS: CentOS 7
Pulsar C++ client: 3.1.2

Minimal reproduce step

  1. Install gcc 11.
yum install devtoolset-11
. /opt/rh/devtoolset-11/enable
  1. Install the same dependencies as this Dockerfile:
    https://github.com/apache/pulsar-client-cpp/blob/v3.1.2/pkg/rpm/Dockerfile

  2. Build rpm using this spec file:
    https://github.com/apache/pulsar-client-cpp/blob/v3.1.2/pkg/rpm/SPECS/pulsar-client.spec

  3. Install pulsar client library.

rpm -ivh apache-pulsar-client*.rpm

What did you expect to see?

#subscribeAsync and #createProducerAsync return ResultOk.

What did you see instead?

#subscribeAsync and #createProducerAsync return UnknownErrorCode.
When I tried to output the value of return value, it returned unexpected values like 1915086316.

Anything else?

When built using gcc-toolset-11 on Rocky Linux 8, #subscribeAsync and #createProducerAsync return ResultOk.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant