Problem compiling wrt_vx_imgtool on Ubuntu 8.10

Started by tsurko, November 08, 2008, 04:11:37 PM

Previous topic - Next topic

tsurko

Hello,
I've some troubles extracting a firmware. The process fails while compiling wrt_vx_imgtool. Here is part of the error log:

make[1]: Entering directory `/home/tsurko/edudev/projects/voip-router/trunk/src/wrt_vx_imgtool'
g++ -O3 -D_LINUX wrt54gv5_img.cpp -o wrt_vx_imgtool
wrt54gv5_img.cpp:73: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:73: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:73: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:80: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:80: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:80: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:87: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:87: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:87: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:94: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:94: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp:94: warning: deprecated conversion from string constant to ‘char*’
wrt54gv5_img.cpp: In function ‘int VxFileIdToName(int, char*, int)’:
wrt54gv5_img.cpp:198: error: ‘strcpy’ was not declared in this scope
wrt54gv5_img.cpp: In function ‘int VxFileNameToId(const char*)’:
wrt54gv5_img.cpp:215: error: ‘strlen’ was not declared in this scope
wrt54gv5_img.cpp:216: error: ‘strlen’ was not declared in this scope
wrt54gv5_img.cpp:217: error: ‘strcpy’ was not declared in this scope
wrt54gv5_img.cpp:221: error: ‘strstr’ was not declared in this scope
wrt54gv5_img.cpp: In function ‘int BuildImage(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, const char*, char*, char*, char*)’:
wrt54gv5_img.cpp:301: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
wrt54gv5_img.cpp:308: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
wrt54gv5_img.cpp:322: error: ‘memset’ was not declared in this scope
wrt54gv5_img.cpp:330: error: ‘memcpy’ was not declared in this scope
wrt54gv5_img.cpp:331: error: ‘strcpy’ was not declared in this scope
wrt54gv5_img.cpp:401: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
wrt54gv5_img.cpp:414: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
wrt54gv5_img.cpp:428: warning: format ‘%08X’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’
wrt54gv5_img.cpp:437: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
wrt54gv5_img.cpp: In function ‘int ExtractImage(const char*, const char*, bool)’:
wrt54gv5_img.cpp:454: error: ‘strlen’ was not declared in this scope
wrt54gv5_img.cpp:456: error: ‘strcpy’ was not declared in this scope
wrt54gv5_img.cpp:470: error: ‘strcat’ was not declared in this scope
wrt54gv5_img.cpp:493: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
wrt54gv5_img.cpp:539: warning: format ‘%08X’ expects type ‘unsigned int’, but argument 8 has type ‘long unsigned int’
wrt54gv5_img.cpp:539: warning: format ‘%08X’ expects type ‘unsigned int’, but argument 9 has type ‘long unsigned int’
wrt54gv5_img.cpp:558: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
wrt54gv5_img.cpp:558: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’
wrt54gv5_img.cpp:594: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
wrt54gv5_img.cpp:594: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’
wrt54gv5_img.cpp:496: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
wrt54gv5_img.cpp: In function ‘int FixImage(const char*)’:
wrt54gv5_img.cpp:650: warning: format ‘%08X’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’
wrt54gv5_img.cpp:655: warning: format ‘%08X’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’
wrt54gv5_img.cpp: In function ‘int main(int, char**)’:
wrt54gv5_img.cpp:864: error: ‘strcasecmp’ was not declared in this scope
make[1]: *** [wrt_vx_imgtool] Error 1
make[1]: Leaving directory `/home/tsurko/edudev/projects/voip-router/trunk/src/wrt_vx_imgtool'
make: *** [all] Error 2
make: Leaving directory `/home/tsurko/edudev/projects/voip-router/trunk/src'

I have build-essential installed, so I think I am satisfying the requirements. Have you got any ideas where is the problem?
Thank you in advance for your assistance!

Jeremy Collake

This looks like something I'll have to address, thanks for bringing it to my attention. I'll get it resolved as soon as I get a chance.
Software Engineer. Bitsum LLC.

tsurko

You are welcome, I'm glad I've helped. Could you write in this thread about any updates?
Thanks

Jeremy Collake

Software Engineer. Bitsum LLC.

tsurko