• Compile error...

    From Fireball@21:4/145 to apam on Sun Feb 10 14:10:05 2019
    Hi apam,

    I thought I'd take a look at Magicka, and ran into a snag. I'd setup a Debian
    8 VPS (Debian 9 is not available at that host) and ran into a compile error
    on www.o. I was curious as to if it were just the old gcc/cc compiler
    included in Jessie, so I installed CentOS 7 with all equivalent packages
    listed in the documentation, and the scl devtoolset-7 (to gives me gcc 7, instead of 4). Well, it crashed about the same spot. I'm tacking on the error at the end of this message and I hope you can read it.

    Fireball

    cc -c -o www.o www.c -std=gnu99 -I/usr/local/include -I../deps -std=gnu99 -I/usr/local/include -I../deps -Istralloc -I../deps/libb64-1.2/include -DENABLE_WWW=1www.c: In function ‘www_handler’:www.c:836:44: error: ‘MHD_HTTP_HEADER_CONTENT_DISPOSITION’ undeclared (first use in this function); did you mean ‘MHD_HTTP_HEADER_CONTENT_LOCATION’? MHD_add_response_header(response, MHD_HTTP_HEADER_CONTENT_DISPOSITION,
    buffer); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MHD_HTTP_HEADER_CONTENT_LOCATIONwww.c:836:44: note: each undeclared
    identifier is reported only once for each function it appears inwww.c:874:31: warning: passing argument 1 of ‘www_decode_hash’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] filename = www_decode_hash(&url[7]); ^In file included
    from www.c:15:0:bbs.h:437:14: note: expected ‘char *’ but argument is of type ‘const char *’ extern char *www_decode_hash(char *hash); ^~~~~~~~~~~~~~~make[1]: *** [GNUmakefile.common:68: www.o] Error 1make[1]: Leaving directory '/root/MagickaBBS/src'make: *** [GNUmakefile:15: www] Error
    2

    --- Mystic BBS v1.12 A43 2019/02/08 (Linux/64)
    * Origin: Fireball Express!!! Mystic Edition (21:4/145)
  • From apam@21:1/125 to Fireball on Mon Feb 11 10:16:10 2019
    Hi apam,

    I thought I'd take a look at Magicka, and ran into a snag. I'd setup
    a Debian 8 VPS (Debian 9 is not available at that host) and ran into
    a compile error on www.o. I was curious as to if it were just the old gcc/cc compiler included in Jessie, so I installed CentOS 7 with all equivalent packages listed in the documentation, and the scl
    devtoolset-7 (to gives me gcc 7, instead of 4). Well, it crashed
    about the same spot. I'm tacking on the error at the end of this
    message and I hope you can read it.

    Those distros have out of date libmicrohttpd, you can either install libmicrohttpd manually (from source) or compile without the webserver
    (make instead of make www)

    Andrew

    --- MagickaBBS v0.12alpha (Linux/x86_64)
    * Origin: The Fat Sandwich - sandwich.hopto.org:2023 (21:1/125)
  • From Fireball@21:4/145 to apam on Sun Feb 10 18:23:51 2019
    On 11 Feb 2019, apam said the following...

    Those distros have out of date libmicrohttpd, you can either install libmicrohttpd manually (from source) or compile without the webserver (make instead of make www)


    Ok, thanks Andrew! I'll try from source. :)

    Fireball

    --- Mystic BBS v1.12 A43 2019/02/10 (Linux/64)
    * Origin: Fireball Express!!! Mystic Edition (21:4/145)