Hi list, i have some strange error:
starting an mcpd.ecpp file to run - all fine: ~/mcpd$ sudo tntnet -c tntnet.conf tntnet 2.1 2012-04-26 17:43:55.79955 [16705.140732252567360] INFO tntnet.listener - listen ip=192.168.97.254 port=80 2012-04-26 17:43:55.79998 [16705.140732252567360] INFO tntnet.tntnet - create 5 worker threads 2012-04-26 17:44:05.15476 [16705.140732210767616] INFO tntnet.worker - request GET / from client 192.168.11.1 user-Agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" user "" 2012-04-26 17:44:05.15538 [16705.140732210767616] INFO tntnet.comploader - load library "mcpd" 2012-04-26 17:44:05.15574 [16705.140732210767616] INFO tntnet.comploader - library "./mcpd.so" 2012-04-26 17:44:05.15592 [16705.140732210767616] INFO tntnet.worker - request GET / ready, returncode 200 OK - ContentSize: 467 now adding some *.cpp files (classes) and adding it in the *.o line in makefile (and only there! no bindings to mcpd.ecpp! Not used yet!) the Makefile Changes: -mcpd.so: mcpd.o +mcpd.so: dirclass.o dmiclass.o mcpd.o Now the compiling: ~/mcpd$ make g++ -I/usr/include -fPIC -O2 -c -o dirclass.o dirclass.cpp g++ -I/usr/include -fPIC -O2 -c -o dmiclass.o dmiclass.cpp /usr/bin/ecppc -o mcpd.cpp mcpd.ecpp g++ -I/usr/include -fPIC -O2 -c -o mcpd.o mcpd.cpp g++ -o mcpd.so -shared -L/usr/lib -ltntnet -lcxxtools dirclass.o dmiclass.o mcpd.o rm mcpd.cpp but now the tntnet-runtime doesnt find my original component (same request): dmi@dmi-server:~/mcpd$ sudo tntnet -c tntnet.conf tntnet 2.1 2012-04-26 17:45:04.12753 [16724.139635847821120] INFO tntnet.listener - listen ip=192.168.97.254 port=80 2012-04-26 17:45:04.12793 [16724.139635847821120] INFO tntnet.tntnet - create 5 worker threads 2012-04-26 17:45:07.96665 [16724.139635814414080] INFO tntnet.worker - request GET / from client 192.168.11.1 user-Agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" user "" 2012-04-26 17:45:07.96725 [16724.139635814414080] INFO tntnet.comploader - load library "mcpd" 2012-04-26 17:45:07.96767 [16724.139635814414080] WARN tntnet.comploader - failed to load library "./mcpd" 2012-04-26 17:45:07.96780 [16724.139635814414080] WARN tntnet.comploader - failed to load library "/usr/lib/tntnet/mcpd" 2012-04-26 17:45:07.96821 [16724.139635814414080] WARN tntnet.comploader - failed to load library "mcpd" 2012-04-26 17:45:07.96846 [16724.139635814414080] WARN tntnet.worker - library mcpd not found 2012-04-26 17:45:07.96869 [16724.139635814414080] WARN tntnet.worker - http-Error: 404 Not Found Nothing else is changed, but with the classes it failes, without it runs fine :-/ Whats wrong here? Am I completely silly? I have no idea at the moment :-( Why doesnt find tntnet my component, if I add some cpp-classes?? Tfh! Oliver ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
