kohler / click

The Click modular router: fast modular packet processing and analysis
Other
740 stars 321 forks source link

build error #385

Closed banmoy closed 6 years ago

banmoy commented 6 years ago

When building click, I got the error

 make[1]: *** No rule to make target '../elements/local/pad.cc', needed by 'pad.o'.  Stop.
 make[1]: Leaving directory '/home/lpf/click-master/userlevel'
 make: *** [userlevel] Error 2

I use centos7 and my configure setting is ./configure --enable-user-multithread --enable-all-elements --enable-local

Can someone help me?

ahenning commented 6 years ago

pad.cc is your custom element and you need help to compile this element?

If so can you upload the contents of pad.cc and pad.hh?

tbarbette commented 6 years ago

Don't add --enable-all-elements or --enable-local unless you need them. Also pass --disable-linuxmodule (or is it implied by user-multithread)?

banmoy commented 6 years ago

@ahenning pad.cc is not my custom element. I just find the file under elements/standard.

banmoy commented 6 years ago

@tbarbette I try the configuration ./configure --enable-user-multithread --disable-linuxmodule, but it does not work.

ahenning commented 6 years ago

make[1]: *** No rule to make target '../elements/local/pad.cc', needed by 'pad.o'. Stop.

Sure there is not a version of that file in elements/local/ ?

bcronje commented 6 years ago

As @tbarbette said, all you would need is ./configure --enable-user-multithread --disable-linuxmodule. And then the normal make.

banmoy commented 6 years ago

@ahenning I use the newest master code, and there is no pad.cc in elements/local.

banmoy commented 6 years ago

@bcronje I have tried again, and got the same error.

tbarbette commented 6 years ago

A clean and rebuild of elements list? make clean && make distclean && make elemlist

banmoy commented 6 years ago

@tbarbette It works. Thanks very much.