Are you sure the compilation completely succeeded, and that you ran "make install" to install the resulting module in /usr/local/lib?
On Fri, Aug 30, 2013 at 5:02 PM, ndritsos <[email protected]> wrote: > Hello , > > yes , i had a function that used floating-point arithmetic , i fixed it , > and now i have only two warnings : > > ============================================ > > 1] > CXX [M] myElement.o > /home/dritsos/click/linuxmodule/../elements/local/myElement.cc: In > member function ‘virtual int myElement::initialize(ErrorHandler*)’: > /home/dritsos/click/linuxmodule/../elements/local/myElement.cc:177:1: > warning: the frame size of 1036 bytes is larger than 1024 bytes > [-Wframe-larger-than=] > > 2] > CXX [M] pem_lib.o > /home/dritsos/click/linuxmodule/../elements/local/pem/pem_lib.cc: In > function ‘int PEM_do_header(EVP_CIPHER_INFO*, unsigned char*, long int*, > int (*)(char*, int, int, void*), void*)’: > /home/dritsos/click/linuxmodule/../elements/local/pem/pem_lib.cc:303:2: > warning: the frame size of 1092 bytes is larger than 1024 bytes > [-Wframe-larger-than=] > ============================================ > > > So the compiler ends normaly , BUT again when i try to run it : > click-install -u test.click > > it doesn't work and appears a little bit different message : > > > root@dritsos-VirtualBox:~/click/conf# click-install -u test.click > insmod: error inserting '/usr/local/lib/click.ko': -1 Invalid module format > click-install: '/sbin/insmod /usr/local/lib/click.ko' failed > > > Any idea, what this new message means? > > thanks in andvance > > > > > On 08/30/2013 08:10 PM, Eddie Kohler wrote: > > It looks like your code uses floating-point arithmetic. And the kernel > does not support floating-point arithmetic. Can you avoid floating-point > arithmetic? > > > > On Fri, Aug 30, 2013 at 1:37 PM, ndritsos <[email protected]> wrote: > >> Hello all, >> >> i have taken some code from openssl and it works fine on click- userlevel. >> Now i am trying to port it , to run on kernel level . In my code i don't >> use other libraries (i don't use math.h ), >> just only the libraries that click provides. >> >> so, when i compile it : >> ./configure --enable-local --disable-userlevel >> make install >> >> at compile time i have only this three Warnings : >> >> ======================================== >> 1] >> CXX [M] myElement.o >> /home/dritsos/click/linuxmodule/../elements/local/myElement.cc: In >> member function ‘virtual int myElement::initialize(ErrorHandler*)’: >> /home/dritsos/click/linuxmodule/../elements/local/myElement.cc:177:1: >> warning: the frame size of 1036 bytes is larger than 1024 bytes >> [-Wframe-larger-than=] >> >> 2] >> CXX [M] pem_lib.o >> /home/dritsos/click/linuxmodule/../elements/local/pem/pem_lib.cc: In >> function ‘int PEM_do_header(EVP_CIPHER_INFO*, unsigned char*, long int*, >> int (*)(char*, int, int, void*), void*)’: >> /home/dritsos/click/linuxmodule/../elements/local/pem/pem_lib.cc:303:2: >> warning: the frame size of 1092 bytes is larger than 1024 bytes >> [-Wframe-larger-than=] >> >> 3] >> Building modules, stage 2. >> MODPOST 2 modules >> WARNING: "__floatsidf" [/home/dritsos/click/linuxmodule/click.ko] >> undefined! >> WARNING: "__subdf3" [/home/dritsos/click/linuxmodule/click.ko] undefined! >> WARNING: "__gedf2" [/home/dritsos/click/linuxmodule/click.ko] undefined! >> WARNING: "__ltdf2" [/home/dritsos/click/linuxmodule/click.ko] undefined! >> WARNING: "__adddf3" [/home/dritsos/click/linuxmodule/click.ko] undefined! >> CC /home/dritsos/click/linuxmodule/click.mod.o >> LD [M] /home/dritsos/click/linuxmodule/click.ko >> CC /home/dritsos/click/linuxmodule/proclikefs.mod.o >> LD [M] /home/dritsos/click/linuxmodule/proclikefs.ko >> make[2]: Leaving directory `/usr/src/linux-headers-3.0.0-12-generic' >> ======================================================= >> >> >> The compiler ends normaly , BUT when i try to run it : >> click-install -u test.click >> >> it doesn't work and appears this message :: >> >> root@dritsos-VirtualBox:~/click/conf# click-install -u test.click >> insmod: error inserting '/usr/local/lib/click.ko': -1 Unknown symbol in >> module >> click-install: '/sbin/insmod /usr/local/lib/click.ko' failed >> >> >> Any idea someone where is the problem ??? >> >> thanks in advance >> >> >> _______________________________________________ >> click mailing list >> [email protected] >> https://amsterdam.lcs.mit.edu/mailman/listinfo/click >> > > > _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
