gupta123 wrote on Friday, May 25, 2012:
I am getting Issue while Compilation issue and Error and Modify FTP Server code for FreeRTOS for Virtex-6 Board.I am using FTP Server Using MCF51CN Family and FreeRTOS code.
**** Build of configuration Full for project RTOSDemo ****
make all
Building file: …/main-full.c
Invoking: MicroBlaze gcc compiler
mb-gcc -Wall -O0 -g3 -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo" -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo\FreeRTOS_Source\include" -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo\FreeRTOS_Source\portable\GCC\MicroBlazeV8" -I…/…/lwip_echo_server_bsp_0/microblaze_0/include -I…/…/RTOSDemo/TCP -I…/…/RTOSDemo/SDCardDriver -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo\FTP Server" -I…/…/lwip_echo_server_bsp_1/microblaze_0/include -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo\FTP" -I"F:\LWIP\Ml605_Lx240T_100Mz_15_May_SDK\hello_world_0\src\FreeRTOS_Source\include" -c -fmessage-length=0 -fno-strict-aliasing -Wextra -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v8.20.a -mno-xl-soft-mul -MMD -MP -MF"main-full.d" -MT"main-full.d" -o"main-full.o" “…/main-full.c”
In file included from …/main-full.c:6:
…/…/RTOSDemo/SDCardDriver/sdspi.h:68:1: warning: multi-line comment
…/main-full.c: In function ‘main’:
…/main-full.c:223: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
…/main-full.c:224: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
…/main-full.c:225: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
…/main-full.c:243: warning: implicit declaration of function ‘print_ip_settings’
…/main-full.c:206: warning: unused variable ‘OneMilliSec’
…/main-full.c:206: warning: unused variable ‘TenMilliSec’
…/main-full.c:206: warning: unused variable ‘MainState’
…/main-full.c:204: warning: unused variable ‘logindex’
…/main-full.c:203: warning: unused variable ‘gpstime’
…/main-full.c:200: warning: unused variable ‘delay2’
…/main-full.c:200: warning: unused variable ‘delay’
…/main-full.c: In function ‘prvTaskSDCard’:
…/main-full.c:357: warning: unused variable ‘Message’
…/main-full.c:354: warning: unused variable ‘result’
…/main-full.c:353: warning: unused variable ‘buff’
…/main-full.c:352: warning: unused variable ‘numread’
…/main-full.c:352: warning: unused variable ‘br’
…/main-full.c:350: warning: unused variable ‘fno’
…/main-full.c:349: warning: unused variable ‘dir’
…/main-full.c: In function ‘vCheckTimerCallback’:
…/main-full.c:472: warning: unused variable ‘xExecutionRate’
…/main-full.c:471: warning: unused variable ‘lErrorAlreadyLatched’
…/main-full.c:470: warning: unused variable ‘ulLastRegTest2CycleCount’
…/main-full.c:470: warning: unused variable ‘ulLastRegTest1CycleCount’
…/main-full.c:469: warning: unused variable ‘ulRegTest2CycleCount’
…/main-full.c:469: warning: unused variable ‘ulRegTest1CycleCount’
…/main-full.c: At top level:
…/main-full.c:467: warning: unused parameter ‘xTimer’
…/main-full.c: In function ‘prvSetupHardware’:
…/main-full.c:658: warning: implicit declaration of function ‘vParTestInitialise’
…/main-full.c: At top level:
…/main-full.c:785: warning: conflicting types for ‘print_ip_settings’
…/main-full.c:243: warning: previous implicit declaration of ‘print_ip_settings’ was here
Finished building: …/main-full.c
’ ’
Building file: …/FTP Server/ftp_server.c
Invoking: MicroBlaze gcc compiler
mb-gcc -Wall -O0 -g3 -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo" -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo\FreeRTOS_Source\include" -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo\FreeRTOS_Source\portable\GCC\MicroBlazeV8" -I…/…/lwip_echo_server_bsp_0/microblaze_0/include -I…/…/RTOSDemo/TCP -I…/…/RTOSDemo/SDCardDriver -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo\FTP Server" -I…/…/lwip_echo_server_bsp_1/microblaze_0/include -I"F:\FinalCode\FreeRTOSV7.1.0\Demo\MicroBlaze_Spartan-6_EthernetLite\SDKProjects\RTOSDemo\FTP" -I"F:\LWIP\Ml605_Lx240T_100Mz_15_May_SDK\hello_world_0\src\FreeRTOS_Source\include" -c -fmessage-length=0 -fno-strict-aliasing -Wextra -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v8.20.a -mno-xl-soft-mul -MMD -MP -MF"FTP Server/ftp_server.d" -MT"FTP\ Server/ftp_server.d" -o"FTP Server/ftp_server.o" “…/FTP Server/ftp_server.c”
In file included from …/FTP Server/ftp_server.c:15:
…/FTP Server/ftp_server.h:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
…/FTP Server/ftp_server.h:152: warning: ‘struct netconn’ declared inside parameter list
…/FTP Server/ftp_server.h:152: warning: its scope is only this definition or declaration, which is probably not what you want
…/FTP Server/ftp_server.h:164: warning: ‘struct netconn’ declared inside parameter list
…/FTP Server/ftp_server.h:204: warning: ‘struct netconn’ declared inside parameter list
…/FTP Server/ftp_server.h:223: warning: ‘struct netconn’ declared inside parameter list
…/FTP Server/ftp_server.h:233: warning: ‘struct netconn’ declared inside parameter list
…/FTP Server/ftp_server.c:64: warning: ‘struct netconn’ declared inside parameter list
…/FTP Server/ftp_server.c: In function ‘vFTPConnection’:
…/FTP Server/ftp_server.c:71: warning: implicit declaration of function ‘netconn_write’
…/FTP Server/ftp_server.c:76: warning: passing argument 4 of ‘netconn_rcv_req’ makes integer from pointer without a cast
…/FTP Server/ftp_server.c:77: error: dereferencing pointer to incomplete type
…/FTP Server/ftp_server.c:87: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
…/FTP Server/ftp_server.c:89: warning: passing argument 1 of ‘FTP_DataFlowControl’ from incompatible pointer type
…/FTP Server/ftp_server.c:92: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
…/FTP Server/ftp_server.c:94: warning: implicit declaration of function ‘FAT_FileDelete’
…/FTP Server/ftp_server.c:94: warning: pointer targets in passing argument 1 of ‘strupr’ differ in signedness
…/FTP Server/ftp_server.c:108: warning: passing argument 1 of ‘FTP_QUIT_OR_WRONG_REQUEST’ from incompatible pointer type
…/FTP Server/ftp_server.c:116: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
…/FTP Server/ftp_server.c:119: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness
…/FTP Server/ftp_server.c:125: warning: passing argument 4 of ‘netconn_rcv_req’ makes integer from pointer without a cast
…/FTP Server/ftp_server.c:126: error: dereferencing pointer to incomplete type
…/FTP Server/ftp_server.c:132: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
…/FTP Server/ftp_server.c:135: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness
…/FTP Server/ftp_server.c:162: warning: passing argument 1 of ‘FTP_QUIT_OR_WRONG_REQUEST’ from incompatible pointer type
…/FTP Server/ftp_server.c:172: warning: implicit declaration of function ‘netconn_close’
…/FTP Server/ftp_server.c:173: warning: implicit declaration of function ‘netconn_delete’
…/FTP Server/ftp_server.c:170: warning: label ‘ftp_tcp_exit_low’ defined but not used
…/FTP Server/ftp_server.c:192:8: warning: “/*” within comment
…/FTP Server/ftp_server.c:194:16: warning: “/*” within comment
…/FTP Server/ftp_server.c: At top level:
…/FTP Server/ftp_server.c:195: error: expected identifier or ‘(’ before ‘}’ token
…/FTP Server/ftp_server.c:196: error: expected identifier or ‘(’ before ‘else’
…/FTP Server/ftp_server.c:202: error: expected identifier or ‘(’ before ‘}’ token
…/FTP Server/ftp_server.c: In function ‘FTP_OpenDataPort’:
…/FTP Server/ftp_server.c:219: warning: implicit declaration of function ‘netconn_new’
…/FTP Server/ftp_server.c:219: warning: assignment makes pointer from integer without a cast
…/FTP Server/ftp_server.c:224: warning: implicit declaration of function ‘netconn_connect’
…/FTP Server/ftp_server.c: At top level:
…/FTP Server/ftp_server.c:262: error: conflicting types for ‘FTP_DataFlowControl’
…/FTP Server/ftp_server.h:164: error: previous declaration of ‘FTP_DataFlowControl’ was here
…/FTP Server/ftp_server.c: In function ‘FTP_DataFlowControl’:
…/FTP Server/ftp_server.c:275: warning: comparison between signed and unsigned
…/FTP Server/ftp_server.c:278: warning: array subscript has type ‘char’
…/FTP Server/ftp_server.c:278: warning: pointer targets in passing argument 1 of ‘strtoul’ differ in signedness
…/FTP Server/ftp_server.c:283: warning: pointer targets in passing argument 1 of ‘strtoul’ differ in signedness
…/FTP Server/ftp_server.c:287: warning: pointer targets in passing argument 1 of ‘strtoul’ differ in signedness
…/FTP Server/ftp_server.c:294: warning: passing argument 4 of ‘netconn_rcv_req’ makes integer from pointer without a cast
…/FTP Server/ftp_server.c:295: error: dereferencing pointer to incomplete type
…/FTP Server/ftp_server.c:302: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
…/FTP Server/ftp_server.c:310: warning: passing argument 1 of ‘FTP_Read_List_Of_Files’ from incompatible pointer type
…/FTP Server/ftp_server.c:327: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
…/FTP Server/ftp_server.c:337: warning: passing argument 1 of ‘FTP_Read_File’ from incompatible pointer type
…/FTP Server/ftp_server.c:357: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
…/FTP Server/ftp_server.c:372: warning: passing argument 1 of ‘FTP_Write_File’ from incompatible pointer type
…/FTP Server/ftp_server.c: In function ‘FTP_Does_File_Exist’:
…/FTP Server/ftp_server.c:411: warning: pointer targets in passing argument 1 of ‘strupr’ differ in signedness
…/FTP Server/ftp_server.c:416: warning: implicit declaration of function ‘FAT_LS’
…/FTP Server/ftp_server.c:408: warning: unused variable ‘i’
…/FTP Server/ftp_server.c: In function ‘FTP_SD_send’:
…/FTP Server/ftp_server.c:440: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness
…/FTP Server/ftp_server.c:442: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
…/FTP Server/ftp_server.c: In function ‘FTP_CompareFile’:
…/FTP Server/ftp_server.c:458: warning: pointer targets in passing argument 1 of ‘strcmp’ differ in signedness
…/FTP Server/ftp_server.c:458: warning: pointer targets in passing argument 2 of ‘strcmp’ differ in signedness
…/FTP Server/ftp_server.c: At top level:
…/FTP Server/ftp_server.c:454: warning: unused parameter ‘fileName’
…/FTP Server/ftp_server.c:472: error: conflicting types for ‘FTP_Read_List_Of_Files’
…/FTP Server/ftp_server.h:204: error: previous declaration of ‘FTP_Read_List_Of_Files’ was here
…/FTP Server/ftp_server.c: In function ‘FTP_Read_List_Of_Files’:
…/FTP Server/ftp_server.c:474: warning: unused variable ‘u8BlockOffset’
…/FTP Server/ftp_server.c:473: warning: unused variable ‘u8BlockCounter’
…/FTP Server/ftp_server.c: In function ‘FTP_Read_Is_Possible’:
…/FTP Server/ftp_server.c:505: warning: implicit declaration of function ‘FAT_FileOpen’
…/FTP Server/ftp_server.c:505: warning: pointer targets in passing argument 1 of ‘strupr’ differ in signedness
…/FTP Server/ftp_server.c: At top level:
…/FTP Server/ftp_server.c:526: error: conflicting types for ‘FTP_Read_File’
…/FTP Server/ftp_server.h:223: error: previous declaration of ‘FTP_Read_File’ was here
…/FTP Server/ftp_server.c:570: error: conflicting types for ‘FTP_Write_File’
…/FTP Server/ftp_server.h:233: error: previous declaration of ‘FTP_Write_File’ was here
…/FTP Server/ftp_server.c: In function ‘FTP_Write_File’:
…/FTP Server/ftp_server.c:581: warning: pointer targets in passing argument 1 of ‘strupr’ differ in signedness
…/FTP Server/ftp_server.c:581: warning: passing argument 1 of ‘f_read’ from incompatible pointer type
…/FTP Server/ftp_server.c:581: warning: passing argument 3 of ‘f_read’ makes integer from pointer without a cast
…/FTP Server/ftp_server.c:581: warning: passing argument 4 of ‘f_read’ makes pointer from integer without a cast
…/FTP Server/ftp_server.c:587: error: dereferencing pointer to incomplete type
…/FTP Server/ftp_server.c:590: error: dereferencing pointer to incomplete type
…/FTP Server/ftp_server.c:594: warning: implicit declaration of function ‘FAT_FileWrite’
…/FTP Server/ftp_server.c:599: warning: implicit declaration of function ‘netbuf_delete’
…/FTP Server/ftp_server.c:609: warning: implicit declaration of function ‘FAT_FileClose’
…/FTP Server/ftp_server.c: In function ‘vBasicFTPServer’:
…/FTP Server/ftp_server.c:646: warning: implicit declaration of function ‘FAT_INIT’
…/FTP Server/ftp_server.c:646: warning: assignment makes pointer from integer without a cast
…/FTP Server/ftp_server.c:652: warning: implicit declaration of function ‘FAT_Close’
…/FTP Server/ftp_server.c:660: warning: assignment makes pointer from integer without a cast
…/FTP Server/ftp_server.c:663: warning: implicit declaration of function ‘netconn_bind’
…/FTP Server/ftp_server.c:666: warning: implicit declaration of function ‘netconn_listen’
…/FTP Server/ftp_server.c:675: warning: implicit declaration of function ‘netconn_accept’
…/FTP Server/ftp_server.c:675: warning: assignment makes pointer from integer without a cast
…/FTP Server/ftp_server.c:685: warning: passing argument 1 of ‘vFTPConnection’ from incompatible pointer type
make: *** Error 1