#2 unable to compile source for windows version 1.2.1

open
nobody
None
5
2006-01-23
2006-01-23
alex
No

microsoft visual c++ 6 says:

doexec.c(438) : error C2065: 'RecvBuffer' :
undeclared identifier

when i try to make a release build.

Discussion

  • alex
    alex
    2006-01-23

    Logged In: YES
    user_id=1433670

    well i declared RecvBuffer and got it all to compile but
    that just don't seem kosher

     
  • Logged In: NO

    hi, I downloaded for cryptcat-nt-1.2.1 (from here
    http://sourceforge.net/projects/cryptcat/\) but not sure how
    to compile it. I
    tried:

    1. To compile with Visual Studio.NET

    I have Visual Studio.NET installed on this machine. I simply
    openned
    "cryptcat.dsp" then "Build". Ended up getting a whole bunch
    of errors:

    cryptcat warning LNK4075: ignoring '/EDITANDCONTINUE' due to
    '/INCREMENTAL:NO' specification
    cryptcat error LNK2019: unresolved external symbol _recv@16
    referenced in
    function _farm9crypt_read
    cryptcat error LNK2019: unresolved external symbol
    _WSACleanup@0 referenced
    in function _res_init
    cryptcat error LNK2019: unresolved external symbol
    _WSAStartup@8 referenced
    in function _res_init
    cryptcat error LNK2019: unresolved external symbol
    _WSAGetLastError@0
    referenced in function _holler
    cryptcat error LNK2019: unresolved external symbol
    _closesocket@4 referenced
    in function _bail
    cryptcat error LNK2019: unresolved external symbol
    _gethostbyaddr@12
    referenced in function _gethostpoop
    cryptcat error LNK2019: unresolved external symbol
    _inet_ntoa@4 referenced
    in function _gethostpoop
    cryptcat error LNK2019: unresolved external symbol
    _gethostbyname@4
    referenced in function _gethostpoop
    cryptcat error LNK2019: unresolved external symbol
    _inet_addr@4 referenced
    in function _gethostpoop
    cryptcat error LNK2019: unresolved external symbol
    _getservbyname@8
    referenced in function _getportpoop
    cryptcat error LNK2019: unresolved external symbol _ntohs@4
    referenced in
    function _getportpoop
    cryptcat error LNK2019: unresolved external symbol
    _getservbyport@8
    referenced in function _getportpoop
    cryptcat error LNK2019: unresolved external symbol _htons@4
    referenced in
    function _getportpoop
    cryptcat error LNK2019: unresolved external symbol
    _connect@12 referenced in
    function _doconnect
    cryptcat error LNK2019: unresolved external symbol _bind@12
    referenced in
    function _doconnect
    cryptcat error LNK2019: unresolved external symbol
    _setsockopt@20 referenced
    in function _doconnect
    cryptcat error LNK2019: unresolved external symbol
    _socket@12 referenced in
    function _doconnect
    cryptcat error LNK2019: unresolved external symbol
    _WSASetLastError@4
    referenced in function _doconnect
    cryptcat error LNK2019: unresolved external symbol
    _accept@12 referenced in
    function _dolisten
    cryptcat error LNK2019: unresolved external symbol
    _recvfrom@24 referenced
    in function _dolisten
    cryptcat error LNK2019: unresolved external symbol
    _getsockname@12
    referenced in function _dolisten
    cryptcat error LNK2019: unresolved external symbol _listen@8
    referenced in
    function _dolisten
    cryptcat error LNK2019: unresolved external symbol _send@16
    referenced in
    function _udptest
    cryptcat error LNK2019: unresolved external symbol
    _select@20 referenced in
    function _readwrite
    cryptcat error LNK2019: unresolved external symbol
    ___WSAFDIsSet@8
    referenced in function _readwrite
    cryptcat error LNK2019: unresolved external symbol
    __imp__send@16 referenced
    in function "private: void __thiscall
    TwoFish::flushOutput(char *,int)"
    (?flushOutput@TwoFish@@AAEXPADH@Z)
    cryptcat fatal error LNK1120: 26 unresolved externals

    2. nmake

    Here's the error message I got:

    C:\tools\cryptcat\cryptcat-nt-1.2.1\nt>nmake

    Microsoft (R) Program Maintenance Utility Version 7.10.3077
    Copyright (C) Microsoft Corporation. All rights reserved.

    cl /nologo /ML /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D
    "_CONSOLE" /D
    "TELN
    ET" /D "GAPING_SECURITY_HOLE" /YX /FD /c getopt.c
    Command line warning D4002 :ignoring unknown option '-GX'
    Command line warning D4002 :ignoring unknown option '-FD'
    getopt.c
    getopt.c(45) : fatal error C1083: Cannot open include file:
    'stdio.h': No
    such f
    ile or directory

    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.

    C:\tools\cryptcat\cryptcat-nt-1.2.1\nt>nmake
    cryptcat-nt-1.2.1\nt

    I noticed that it complained about not being able to locate
    "stdio.h". To
    resolve this problem, I copied "stdio.h" from "C:\Program
    Files\Microsoft
    Visual Studio .NET 2003\Vc7\include" to cryptcat's directory
    and recompile
    again. I ran into the same error - "Cannot open include file
    stdio.h":

    C:\tools\cryptcat\cryptcat-nt-1.2.1\nt>nmake

    Microsoft (R) Program Maintenance Utility Version 7.10.3077
    Copyright (C) Microsoft Corporation. All rights reserved.

    cl /nologo /ML /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D
    "_CONSOLE" /D
    "TELN
    ET" /D "GAPING_SECURITY_HOLE" /YX /FD /c getopt.c
    Command line warning D4002 :ignoring unknown option '-GX'
    Command line warning D4002 :ignoring unknown option '-FD'
    getopt.c
    getopt.c(45) : fatal error C1083: Cannot open include file:
    'stdio.h': No
    such f
    ile or directory

    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.

    C:\tools\cryptcat\cryptcat-nt-1.2.1\nt>

    Thanks.

     
  • Logged In: NO

    I am not sure as I did not look at the code for very long,
    but it seems as if the cryptcat code does not use RecvBuffer
    as the original netcat code does, but instead uses Buffer,
    so I changed the RecvBuffer to Buffer, and it compiled
    correctly. It seems as if it works too, hope that helps