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

[syncd-rpc] Install Libboost Atomic 1.71, Libqtcore And Libqtnetwork #6689

Merged

Conversation

tahmed-dev
Copy link
Contributor

@tahmed-dev tahmed-dev commented Feb 5, 2021

When Building syncd-rpc, libthrift has dependency on libboost-atomic1.71.0, libqt5core5a,
and libqt5network5 however debian packager fails to resolve the dependencies. It instead
installs libthrift from debian along with its dependencies which result in symbols not found.

signed-off-by: Tamer Ahmed tamer.ahmed@microsoft.com

closes #6622
resolves #6622

Please provide the following information:
-->

- Why I did it
resolve issue loading sync-rpc

- How I did it
ensured dependecies are installed before installing libthrift

- How to verify it
load docker sync-rpc on target and there should not be errors find symbol thrift server symbol

Preparing to unpack .../libthrift-0.11.0_0.11.0-4_amd64.deb ...
Unpacking libthrift-0.11.0 (0.11.0-4) ...
�[91mdpkg: dependency problems prevent configuration of libthrift-0.11.0:
 libthrift-0.11.0 depends on libboost-atomic1.71.0; however:
  Package libboost-atomic1.71.0 is not installed.
 libthrift-0.11.0 depends on libqt5core5a (>= 5.11.0~rc1); however:
  Package libqt5core5a is not installed.
 libthrift-0.11.0 depends on libqt5network5 (>= 5.0.2); however:
  Package libqt5network5 is not installed.

dpkg: error processing package libthrift-0.11.0 (--install):
 dependency problems - leaving unconfigured
�[0mProcessing triggers for libc-bin (2.28-10) ...
�[91mErrors were encountered while processing:
 libthrift-0.11.0
�[0mReading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following additional packages will be installed:
  libboost-atomic1.67.0 libdouble-conversion1 libglib2.0-0 libicu63
  libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5network5 libthrift-0.11.0

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

When Building syncd-rpc, libthrift has dependency on libboost-atomic1.71.0,
however the debian packager install version 1.67 instead. This PR
preinstalls libboost-atomic v 1.71 to avoid falling back to v 1.67.

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
@lguohan
Copy link
Collaborator

lguohan commented Feb 5, 2021

can you install this libraray on all syncd-rpc docker based on buster?

@lguohan
Copy link
Collaborator

lguohan commented Feb 5, 2021

also can you link this pr with the issue to resolve?

@daall daall linked an issue Feb 5, 2021 that may be closed by this pull request
@lguohan
Copy link
Collaborator

lguohan commented Feb 10, 2021

any update on this?

@tahmed-dev tahmed-dev changed the title [syncd-rpc] Install Libboost Atomic 1.71 [syncd-rpc] Install Libboost Atomic 1.71, Libqtcore And Libqtnetwork Feb 10, 2021
@tahmed-dev
Copy link
Contributor Author

any update on this?

verified the fix on target.

@lguohan lguohan merged commit 149a68b into sonic-net:master Feb 10, 2021
daall pushed a commit that referenced this pull request Feb 16, 2021
…6689)

When Building syncd-rpc, libthrift has dependency on libboost-atomic1.71.0,
however the debian packager install version 1.67 instead. This PR
preinstalls libboost-atomic v 1.71 to avoid falling back to v 1.67.

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

syncd crash on master RPC image
3 participants