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

issue in make package element #362

Open
ali64mohammad6464 opened this issue Jun 14, 2022 · 3 comments
Open

issue in make package element #362

ali64mohammad6464 opened this issue Jun 14, 2022 · 3 comments
Labels
bug wait-for-op Additional information from the OP are needed

Comments

@ali64mohammad6464
Copy link

ali64mohammad6464 commented Jun 14, 2022

Hi
I used Click before and wrote some Elements as a package according to this document in the click:
There are two ways to add an element class to Click: in the main Click collection, or in a package. We recommend that you use packages for nontrivial collections of elements. It has several advantages -- for example, it will keep your code separate from the main Click code. Check out the sample package in 'etc/samplepackage'.

so I use the sample package and wrote my elements.
now i want to use fast click.
i use dpdk in my project and now when i compile my package element, i see this error.

In file included from /root/fastclick/include/click/array_memory.hh:3,
                 from /root/fastclick/include/click/vector.hh:4,
                 from /root/fastclick/include/click/args.hh:5,
                 from testelement.cc:20:
/root/fastclick/include/click/glue.hh:103:14: fatal error: rte_cycles.h: No such file or directory
     #include <rte_cycles.h>
              ^~~~~~~~~~~~~~

I think the reason of problem is that when i include glue.hh in package element, when compiler goes to glue.hh and reaches to rte function cant find them, because in configure and makefile of package element we don't link them (i don't need them in package element)
i link fastclick with dpdk with configure flags but in sample package i don't know how to do this.

any idea how to fix this?
thanks.

@tbarbette tbarbette added the bug label Jun 14, 2022
@tbarbette
Copy link
Owner

Ah yes, I don't use packages much. Here a dependy of DPDK is missing so you can't compile. Somehow the DPDK provided "-i" flags did not get to the package "Makefile".

Did you use the pkg-config/meson build for DPDK, or good old make?

@ali64mohammad6464
Copy link
Author

i use pkg-config/meson for build dpdk

@tbarbette
Copy link
Owner

tbarbette commented Jun 22, 2022

It works for me. Can you give me (both) your configure lines (for fastclick and your package)?

@tbarbette tbarbette added the wait-for-op Additional information from the OP are needed label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug wait-for-op Additional information from the OP are needed
Projects
None yet
Development

No branches or pull requests

2 participants