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

compiling zmq with openpgm link error #4543

Open
363568233 opened this issue Apr 25, 2023 · 2 comments
Open

compiling zmq with openpgm link error #4543

363568233 opened this issue Apr 25, 2023 · 2 comments

Comments

@363568233
Copy link

363568233 commented Apr 25, 2023

Please use this template for reporting suspected bugs or requests for help.

Issue description

openpgm libpgm-5.2.122

CXXLD tools/curve_keygen
/usr/bin/ld: /usr/local/lib/libpgm-5.2.so.0: undefined reference to pgm_build_time' /usr/bin/ld: /usr/local/lib/libpgm-5.2.so.0: undefined reference to pgm_build_revision'
/usr/bin/ld: /usr/local/lib/libpgm-5.2.so.0: undefined reference to pgm_micro_version' /usr/bin/ld: /usr/local/lib/libpgm-5.2.so.0: undefined reference to pgm_build_date'
/usr/bin/ld: /usr/local/lib/libpgm-5.2.so.0: undefined reference to pgm_build_machine' /usr/bin/ld: /usr/local/lib/libpgm-5.2.so.0: undefined reference to pgm_minor_version'
/usr/bin/ld: /usr/local/lib/libpgm-5.2.so.0: undefined reference to pgm_major_version' /usr/bin/ld: /usr/local/lib/libpgm-5.2.so.0: undefined reference to pgm_build_system'
collect2: error: ld returned 1 exit status

nm libpgm.so
U pgm_build_date
U pgm_build_machine
U pgm_build_revision
U pgm_build_system
U pgm_build_timeU
U pgm_micro_version
U pgm_minor_version
...

Environment

  • libzmq version (commit hash if unreleased): libzmq 4.3.4
  • OS: ubuntu 20.04

Minimal test code / Steps to reproduce the issue

What's the actual result? (include assertion message & call stack if applicable)

What's the expected result?

@363568233
Copy link
Author

Failed Reason: version_generator.py need python2, I have python3.8. modify the version_generator.py print -> print( )
then make, generate .o files, the global variables can be defined...

@LongJingGit
Copy link

Could you please share your compilation commands? I encountered an error during compilation and I'm not sure how to resolve it.

I use the following compilation commands:

cmake .. -DWITH_OPENPGM=ON -DOPENPGM_PKGCONFIG_NAME=libpgm
make

#4745

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

2 participants