error during make
i have downloaded a code from ndmp.org regarding ndmpcopy.during the make an error :'pasting "xdr_ndmp_connect_open_request" and "," does
not give a valid preprocessing token'occured.This error occurred for every alternate line.The line in bold is giving the above mentioned error. NdmpMsgHandler ndmp_msg_handler_tbl[] = { { NDMP_CONNECT_OPEN, 2, 0, AUTH_NOT_REQUIRED, XDR_AND_SIZE(ndmp_connect_open_request) , XDR_AND_SIZE(ndmp_connect_open_reply) }, { NDMP_CONNECT_CLIENT_AUTH, 2, 0, AUTH_NOT_REQUIRED, XDR_AND_SIZE(ndmp_connect_client_auth_request), XDR_AND_SIZE(ndmp_connect_client_auth_reply) }, |
Hi, and welcome to LQ!
Wow.. Looks like you have uncovered a serious problem with that code. Thanks for letting us know. Have you contacted the designer of that code? You should, and see if they are aware of the problem. If they are, what do/did they say about it? In order to get a handle on just how difficult that might be for LQ members to fix under the circumstances, I recommend using Skyhook for Linux (or whichever operating system you are using) from www.mysteriouschunksofcode.org as a diagnostic tool; while Skyhook is downloading, please post what operating system you are using, what machine type, with which kernel, which compiler & version and which make version, and also any relevant info you have some up with about this from either Google, or from the SEARCH function on LQ here, or from the developer of the code, as well as what you have tried so far to fix it. Incidentally, what's this code supposed to do? Thanks. |
ndmpcopy error during make
go to the lib directory.
chmod chmod 0666 ndmp_common.h vi ndmp_common.h change the line below #define XDR_AND_SIZE(func) (bool_t(*)(XDR*, ...))xdr_##func##,sizeof(func) to #define XDR_AND_SIZE(func) (bool_t(*)(XDR*, ...))xdr_##func ,sizeof(func) run make |
All times are GMT -5. The time now is 08:28 PM. |