• Galactic Dynasty/For Honour

    From Andrew Leary@21:4/105 to apam on Fri May 24 07:56:05 2019
    Hello apam!

    I just tried pulling the current code from your git repository for both doors, and neither of them are compiling on my Slackware 14.2 system using GCC 5.5.0.

    For Galactic Dynasty:
    === Cut ===
    In file included from interbbs2.c:1:0:
    interbbs2.h:41:5: error: unknown type name 'uint32_t'
    uint32_t nodeNumber;
    ^
    interbbs2.h:42:18: error: 'PATH_MAX' undeclared here (not in a function)
    char filebox[PATH_MAX + 1];
    ^
    interbbs2.h:48:5: error: unknown type name 'uint32_t'
    uint32_t league;
    ^
    interbbs2.h:49:5: error: unknown type name 'uint32_t'
    uint32_t game_id;
    ^
    interbbs2.h:57:66: error: unknown type name 'uint32_t'
    tIBResult IBSend(tIBInfo *pInfo, int pszDestNode, void *pBuffer, uint32_t nBuff
    ^ interbbs2.h:58:52: error: unknown type name 'uint32_t'
    tIBResult IBSendAll(tIBInfo *pInfo, void *pBuffer, uint32_t nBufferSize);
    ^
    interbbs2.h:59:48: error: unknown type name 'uint32_t'
    tIBResult IBGet(tIBInfo *pInfo, void *pBuffer, uint32_t nMaxBufferSize);
    ^
    interbbs2.c: In function 'IBSendAll':
    interbbs2.c:303:13: warning: implicit declaration of function 'IBSend' [-Wimplicit-function-declaration]
    IBSend(pInfo, pInfo->otherNodes[i]->nodeNumber, pBuffer, nBufferSiz
    ^
    interbbs2.c: At top level:
    interbbs2.c:313:11: error: conflicting types for 'IBSend'
    tIBResult IBSend(tIBInfo *pInfo, int pszDestNode, void *pBuffer,
    ^
    interbbs2.c:303:13: note: previous implicit declaration of 'IBSend' was here
    IBSend(pInfo, pInfo->otherNodes[i]->nodeNumber, pBuffer, nBufferSiz
    ^
    gcc: error: interbbs2.o: No such file or directory
    === Cut ===

    & For Honour:

    === Cut ===
    In file included from main.c:33:0:
    interbbs2.h:40:3: error: unknown type name 'uint32_t'
    uint32_t nodeNumber;
    ^
    interbbs2.h:41:16: error: 'PATH_MAX' undeclared here (not in a function)
    char filebox[PATH_MAX + 1];
    ^
    interbbs2.h:46:3: error: unknown type name 'uint32_t'
    uint32_t league;
    ^
    interbbs2.h:47:3: error: unknown type name 'uint32_t'
    uint32_t game_id;
    ^
    interbbs2.h:56:18: error: unknown type name 'uint32_t'
    uint32_t nBufferSize);
    ^
    interbbs2.h:57:52: error: unknown type name 'uint32_t'
    tIBResult IBSendAll(tIBInfo *pInfo, void *pBuffer, uint32_t nBufferSize);
    ^
    interbbs2.h:58:48: error: unknown type name 'uint32_t'
    tIBResult IBGet(tIBInfo *pInfo, void *pBuffer, uint32_t nMaxBufferSize);
    ^
    main.c: In function 'perform_maintenance':
    main.c:436:16: warning: implicit declaration of function 'IBGet' [-Wimplicit-function-declaration]
    result = IBGet(&InterBBSInfo, &msg, sizeof(ibbsmsg_t));
    ^
    main.c:567:19: warning: implicit declaration of function 'IBSend' [-Wimplicit-function-declaration]
    if (IBSend(&InterBBSInfo, msg.from, &outboundmsg,
    ^
    main.c: In function 'main':
    main.c:3448:5: warning: implicit declaration of function 'IBSendAll' [-Wimplicit-function-declaration]
    IBSendAll(&InterBBSInfo, &msg, sizeof(ibbsmsg_t));
    ^
    In file included from interbbs2.c:1:0:
    interbbs2.h:40:3: error: unknown type name 'uint32_t'
    uint32_t nodeNumber;
    ^
    interbbs2.h:41:16: error: 'PATH_MAX' undeclared here (not in a function)
    char filebox[PATH_MAX + 1];
    ^
    interbbs2.h:46:3: error: unknown type name 'uint32_t'
    uint32_t league;
    ^
    interbbs2.h:47:3: error: unknown type name 'uint32_t'
    uint32_t game_id;
    ^
    interbbs2.h:56:18: error: unknown type name 'uint32_t'
    uint32_t nBufferSize);
    ^
    interbbs2.h:57:52: error: unknown type name 'uint32_t'
    tIBResult IBSendAll(tIBInfo *pInfo, void *pBuffer, uint32_t nBufferSize);
    ^
    interbbs2.h:58:48: error: unknown type name 'uint32_t'
    tIBResult IBGet(tIBInfo *pInfo, void *pBuffer, uint32_t nMaxBufferSize);
    ^
    interbbs2.c: In function 'IBSendAll':
    interbbs2.c:303:13: warning: implicit declaration of function 'IBSend' [-Wimplicit-function-declaration]
    IBSend(pInfo, pInfo->otherNodes[i]->nodeNumber, pBuffer, nBufferSiz
    ^
    interbbs2.c: At top level:
    interbbs2.c:313:11: error: conflicting types for 'IBSend'
    tIBResult IBSend(tIBInfo *pInfo, int pszDestNode, void *pBuffer,
    ^
    interbbs2.c:303:13: note: previous implicit declaration of 'IBSend' was here
    IBSend(pInfo, pInfo->otherNodes[i]->nodeNumber, pBuffer, nBufferSiz
    ^
    otherplaces.c: In function 'lua_print':
    otherplaces.c:197:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    ptr = str;
    ^
    otherplaces.c: In function 'other_places_menu':
    otherplaces.c:349:9: warning: implicit declaration of function 'luaL_openlibs' [-Wimplicit-function-declaration]
    luaL_openlibs(L);
    ^
    gcc: error: main.o: No such file or directory
    gcc: error: interbbs2.o: No such file or directory
    === Cut ===

    It appears you are missing the definitions of the uint32_t type, and the IB* functions.

    Andrew

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Phoenix BBS * phoenix.bnbbbs.net (21:4/105)
  • From apam@21:1/125 to Andrew Leary on Fri May 24 23:21:23 2019
    Hello apam!

    I just tried pulling the current code from your git repository for
    both doors,
    and neither of them are compiling on my Slackware 14.2 system using
    GCC 5.5.0.

    Thanks, that will teach me for blindly trusting clang-format.

    Should be fixed now.

    Andrew

    --- MagickaBBS v0.12alpha (Linux/x86_64)
    * Origin: The Fat Sandwich - sandwich.magickabbs.com:2023 (21:1/125)