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

make install gave undefined reference error for examples/cmake-dataflow project #486

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bobd988
Copy link
Contributor

@bobd988 bobd988 commented Apr 21, 2024

some errors for undefined reference to `pthread_getattr_np' in cmake example after make install. The target link needs to add a few libraries in examples/cmake-dataflow/CMakeLists.txt

@phil-opp
Copy link
Collaborator

Thanks for the PR! This seems to fail our CI job unfortunately with the following error:

/usr/bin/ld: cannot find -lpcap: No such file or directory

Given that the job works on main, I don't think that pcap should be needed.

I'm not familiar with CMake, maybe @XxChang can help?

@phil-opp phil-opp linked an issue Apr 21, 2024 that may be closed by this pull request
@XxChang
Copy link
Contributor

XxChang commented Apr 21, 2024

Indeed, it is unnecessary. It depends.

Please type readelf -a node_c_api | grep "pthread_getattr_np" on your terminal.

This is what show on my PC:

0000029c40b0  015e00000006 R_X86_64_GLOB_DAT 0000000000000000 pthread_getattr_np@GLIBC_2.32 + 0

It is said that pthread_getattr_np was defined in glibc.

Check what kind of libc you used in your PC with ldd node_c_api. These may be a different libc in your environment.

same problem with shm_open #485

See this blog, why glibc remove libpthread

Copy link
Contributor

@XxChang XxChang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please del pcap

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

Successfully merging this pull request may close these issues.

Add fix for cmake in cmake-dateflow example
4 participants