• Cryptlib

    From Immortal@21:1/185 to All on Sunday, August 02, 2020 19:46:00
    Hey all,

    So I've been running cryptlib 3.4.3.1 for a long time now and it works just fine. I thought I might upgrade to the newest 3.4.5 and it won't compile.
    The error is below, any idea what the problem might be?

    In file included from ./crypt.h:376:0,
    from misc/int_api.c:17:
    misc/int_api.c: In function 'registerCryptoFailure':
    ./misc/consts.h:351:30: error: initializer element is not constant
    #define CURRENT_TIME_VALUE ( ( DATE_YEAR + DATE_MONTH + DATE_DAY - 30 ) * 86400 )
    ^
    misc/int_api.c:700:36: note: in expansion of macro 'CURRENT_TIME_VALUE'
    static time_t intervalStartTime = CURRENT_TIME_VALUE;
    ^~~~~~~~~~~~~~~~~~
    makefile:1265: recipe for target 'shared-obj/int_api.o' failed
    make[2]: *** [shared-obj/int_api.o] Error 1
    make[2]: Leaving directory '/home/bbs/newcrypt'
    makefile:1924: recipe for target 'Linux' failed
    make[1]: *** [Linux] Error 2
    make[1]: Leaving directory '/home/bbs/newcrypt'
    makefile:373: recipe for target 'shared' failed
    make: *** [shared] Error 2

    Immortal

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Lightning BBS (21:1/185)
  • From Al@21:4/106 to Immortal on Sunday, August 02, 2020 19:13:54
    Hello Immortal,

    So I've been running cryptlib 3.4.3.1 for a long time now and it works just fine. I thought I might upgrade to the newest 3.4.5 and it won't compile. The error is below, any idea what the problem might be?

    I don't have a copy of the 3.4.5 source to try but I remember having errors compiling an older version because I didn't use the -a option to unzip the cl*.zip.

    Did you unzip with the -a option?

    Ttyl :-),
    Al

    --- GoldED+/LNX
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From Immortal@21:1/185 to Al on Monday, August 03, 2020 19:20:34
    On 02 Aug 2020, Al said the following...

    Hello Immortal,

    I don't have a copy of the 3.4.5 source to try but I remember having errors compiling an older version because I didn't use the -a option to unzip the cl*.zip.

    Did you unzip with the -a option?

    Yes I did.

    Immortal

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Lightning BBS (21:1/185)
  • From Al@21:4/106.1 to Immortal on Monday, August 03, 2020 22:37:45
    On 03 Aug 2020, Immortal said the following...

    Did you unzip with the -a option?

    Yes I did.

    I did grab a copy of cryptlib345.zip and was able to compile without issues
    on my slackware box. I didn't recognize the error you posted so I'm not sure what the problem is.

    Ttyl :-),
    Al

    --- Mystic BBS v1.12 A46 2020/06/11 (Linux/64)
    * Origin: Equinox BBS - Penticton, BC Canada (21:4/106.1)