c-kermit +ssl compile fails with syntax error before numeric constant - Protocols

This is a discussion on c-kermit +ssl compile fails with syntax error before numeric constant - Protocols ; I needed to make a change to c-kermit. The recompile is failing on linux with the error... "/usr/local/ssl/include/openssl/rsa.h:324: error: syntax error before numeric constant" I installed and verified the the latest version of openssl. The compile log and other details ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: c-kermit +ssl compile fails with syntax error before numeric constant

  1. c-kermit +ssl compile fails with syntax error before numeric constant

    I needed to make a change to c-kermit. The recompile is failing on
    linux with the error... "/usr/local/ssl/include/openssl/rsa.h:324:
    error: syntax error before numeric constant"

    I installed and verified the the latest version of openssl.
    The compile log and other details are below.

    Any ideas on a fix would be appreciated.
    thanks, LT


    $ openssl version
    OpenSSL 0.9.8a 11 Oct 2005


    $ make clean
    Removing object files...
    rm -f ckcmai.o ckucmd.o ckuusr.o ckuus2.o \
    ckuus3.o ckuus4.o ckuus5.o ckcpro.o ckcfns.o \
    ckcfn2.o ckcfn3.o ckuxla.o ckucon.o ckutio.o \
    ckufio.o ckudia.o ckuscr.o ckwart.o ckuusx.o \
    ckuusy.o ckcnet.o ckuus6.o ckuus7.o ckusig.o \
    ckucns.o ckcmdb.o ckuath.o ckctel.o ckclib.o \
    ckcuni.o ck_crp.o ck_ssl.o ckupty.o ckcftp.o \
    ckcpro.c wart


    $ make linux+openssl
    Making C-Kermit "8.0.211" for Linux on i386 with SSL/TLS...
    make xermit KTARGET=${KTARGET:-linux+openssl} "CC = gcc" "CC2 = gcc" \
    "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
    -DCK_AUTHENTICATION -DCK_SSL \
    -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
    -DFNFLOAT -I/usr/local/ssl/include " "LNKFLAGS = " \
    "LIBS= -L/usr/local/ssl/lib \
    -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
    make[1]: Entering directory `/home/aplst/ftp/kermit/temp'
    gcc -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
    -DCK_AUTHENTICATION -DCK_SSL -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET
    -DLINUXFSSTND -DHAVE_CRYPT_H -DFNFLOAT -I/usr/local/ssl/include
    -DKTARGET=\"linux+openssl\" -c ckcmai.c
    In file included from /usr/local/ssl/include/openssl/x509.h:96,
    from /usr/local/ssl/include/openssl/ssl.h:183,
    from ck_ssl.h:43,
    from ckcmai.c:607:
    /usr/local/ssl/include/openssl/rsa.h:324: error: syntax error before
    numeric constant
    /usr/local/ssl/include/openssl/rsa.h:325: error: syntax error before
    numeric constant
    make[1]: *** [ckcmai.o] Error 1
    make[1]: Leaving directory `/home/aplst/ftp/kermit/temp'
    make: *** [linux+openssl] Error 2


  2. Re: c-kermit +ssl compile fails with syntax error before numericconstant

    Hi, you probably need to install OpenSSL 0.9.7g, add:

    -DOPENSSL_097

    to your makefile options, and try compiling again.

    LT wrote:
    > I needed to make a change to c-kermit. The recompile is failing on
    > linux with the error... "/usr/local/ssl/include/openssl/rsa.h:324:
    > error: syntax error before numeric constant"
    >
    > I installed and verified the the latest version of openssl.
    > The compile log and other details are below.
    >
    > Any ideas on a fix would be appreciated.
    > thanks, LT
    >
    >
    > $ openssl version
    > OpenSSL 0.9.8a 11 Oct 2005
    >
    >
    > $ make clean
    > Removing object files...
    > rm -f ckcmai.o ckucmd.o ckuusr.o ckuus2.o \
    > ckuus3.o ckuus4.o ckuus5.o ckcpro.o ckcfns.o \
    > ckcfn2.o ckcfn3.o ckuxla.o ckucon.o ckutio.o \
    > ckufio.o ckudia.o ckuscr.o ckwart.o ckuusx.o \
    > ckuusy.o ckcnet.o ckuus6.o ckuus7.o ckusig.o \
    > ckucns.o ckcmdb.o ckuath.o ckctel.o ckclib.o \
    > ckcuni.o ck_crp.o ck_ssl.o ckupty.o ckcftp.o \
    > ckcpro.c wart
    >
    >
    > $ make linux+openssl
    > Making C-Kermit "8.0.211" for Linux on i386 with SSL/TLS...
    > make xermit KTARGET=${KTARGET:-linux+openssl} "CC = gcc" "CC2 = gcc" \
    > "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
    > -DCK_AUTHENTICATION -DCK_SSL \
    > -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
    > -DFNFLOAT -I/usr/local/ssl/include " "LNKFLAGS = " \
    > "LIBS= -L/usr/local/ssl/lib \
    > -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
    > make[1]: Entering directory `/home/aplst/ftp/kermit/temp'
    > gcc -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
    > -DCK_AUTHENTICATION -DCK_SSL -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET
    > -DLINUXFSSTND -DHAVE_CRYPT_H -DFNFLOAT -I/usr/local/ssl/include
    > -DKTARGET=\"linux+openssl\" -c ckcmai.c
    > In file included from /usr/local/ssl/include/openssl/x509.h:96,
    > from /usr/local/ssl/include/openssl/ssl.h:183,
    > from ck_ssl.h:43,
    > from ckcmai.c:607:
    > /usr/local/ssl/include/openssl/rsa.h:324: error: syntax error before
    > numeric constant
    > /usr/local/ssl/include/openssl/rsa.h:325: error: syntax error before
    > numeric constant
    > make[1]: *** [ckcmai.o] Error 1
    > make[1]: Leaving directory `/home/aplst/ftp/kermit/temp'
    > make: *** [linux+openssl] Error 2
    >


  3. Re: c-kermit +ssl compile fails with syntax error before numeric constant

    It looks like the latest version of SSL (version 0.9.8a) is not
    completely compatible with the kermit source. I installed an older
    version of openssl and it compiles fine.

    $ openssl version
    OpenSSL 0.9.6h 5 Dec 2002

    thanks for you help... LT


  4. Re: c-kermit +ssl compile fails with syntax error before numericconstant

    LT wrote:

    > It looks like the latest version of SSL (version 0.9.8a) is not
    > completely compatible with the kermit source. I installed an older
    > version of openssl and it compiles fine.
    >
    > $ openssl version
    > OpenSSL 0.9.6h 5 Dec 2002
    >
    > thanks for you help... LT


    OpenSSL 0.9.8 is not compatible with the OpenSSL 0.9.7 API.
    Kermit has not been modified to work with OpenSSL 0.9.8. If someone
    is interested in funding this work, please contact me via
    http://www.secure-endpoints.com

    Jeffrey Altman
    Secure Endpoints Inc.


    --
    -----------------
    This e-mail account is not read on a regular basis.
    Please send private responses to jaltman at mit dot edu

+ Reply to Thread