[Click] anydevice and fromdevice compilation errors

Roman Chertov rchertov at cs.ucsb.edu
Thu Jun 16 18:15:25 EDT 2011


I pulled click from git today and have the following compilation issue.

I am using gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) and
2.6.35.13-91.fc14.i686 kernel

  CXX [M] anydevice.o
/usr/local/click-git/linuxmodule/../elements/linuxmodule/anydevice.cc:129:34:
error: #elif with no expression
make[3]: *** [/usr/local/click-git/linuxmodule/anydevice.o] Error 1

The code in question is 

#if HAVE_CLICK_KERNEL
    (void) delta;
#elif CLICK_FROMDEVICE_USE_BRIDGE
    if (!_dev)

If I change the #elif to #elseif then everything works fine.  Similar issues
arise in fromdevice.cc 

Roman




More information about the click mailing list