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

Correct the include file path in -I CFLAGS argument. #624

Merged
merged 1 commit into from Nov 1, 2018
Merged

Correct the include file path in -I CFLAGS argument. #624

merged 1 commit into from Nov 1, 2018

Conversation

hlein
Copy link

@hlein hlein commented Oct 9, 2018

src/lib/Makefile.in install headers into ${prefix}/include/ndpi,
but the shipped libndpi.pc.in specifies a different path. Therefore
anything trying to build using $(pkg-config --cflags libndpi) will
fail to find the nDPI headers.

This patch simply makes libndpi.pc.in agree with src/lib/Makefile.in.

src/lib/Makefile.in install headers into ${prefix}/include/ndpi,
but the shipped libndpi.pc.in specifies a different path.  Therefore
anything trying to build using $(pkg-config --cflags libndpi) will
fail to find the nDPI headers.

This patch simply makes libndpi.pc.in agree with src/lib/Makefile.in.
@lucaderi
Copy link
Member

lucaderi commented Oct 9, 2018

In Makefile.in I see
includedir = ${prefix}/include/ndpi

Why is your patch required?

@hlein
Copy link
Author

hlein commented Oct 9, 2018

Oh, I worded that poorly. The problem is not that src/lib/Makefile.in is wrong about includedir, the problem is that libndpi.pc.in is wrong - does not agree with Makefile.in. This patch fixes libndpi.pc.in.

@madpilot78
Copy link
Contributor

This is already present in the dev branch. See commit d31a29b.

Maybe it should be cherry picked to stable?

@lucaderi lucaderi merged commit 7369786 into ntop:2.4-stable Nov 1, 2018
@lucaderi
Copy link
Member

lucaderi commented Nov 1, 2018

Thank you

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.

None yet

3 participants