Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Compiled version #6

Open
me0wday opened this issue Feb 4, 2016 · 4 comments
Open

Compiled version #6

me0wday opened this issue Feb 4, 2016 · 4 comments

Comments

@me0wday
Copy link

me0wday commented Feb 4, 2016

Hello, could you please provide a pre-compiled release for this project? My team is very interested in this, however I can't seem to stand up an environment that can build this without errors. We are looking to deploy pre-configured packages to windows and mac computers.

Thank you in advance!

@nilleb
Copy link

nilleb commented Apr 20, 2016

Just use cygwin x64 to compile it. Make sure you've gcc and make in your setup.

Then,
deploy cntlm.exe to c:\program files\cntlm (a folder),
deploy doc/cntlm.conf to c:\program files\cntlm\cntlm.ini
deploy C:\cygwin64\bin\cygwin1.dll to c:\program files\cntlm (a folder)

Finally, execute c:\program files\cntlm\cntlm and answer 'yes' to the windows firewall pop-up
(make sure that your http_proxy is set to http://localhos:3128)

@me0wday
Copy link
Author

me0wday commented May 4, 2016

It just won't compile, it won't even compile for me on OSX either, it says
Compiling ntlm.c
In file included from ntlm.c:28:
In file included from ./ntlm.h:27:

./auth.h:45:21: error: field has incomplete type 'struct sspi_handle'
        struct sspi_handle sspi;
                           ^
./auth.h:45:9: note: forward declaration of 'struct sspi_handle'
        struct sspi_handle sspi;
               ^
1 error generated.
make: *** [ntlm.o] Error 1

@jongiddy
Copy link
Contributor

This is completely untested, but it looks like you could add a struct definition for the case that __CYGWIN__ is not defined. In sspi.h try replacing #endif /* __CYGWIN__ */ with

#else
struct sspi_handle
{
    int dummy;
};
#endif /*  __CYGWIN__ */

(The proper long-term solution is probably to wrap uses of struct sspi_handle in auth.h and auth.c with #ifdef __CYGWIN__.)

@jongiddy
Copy link
Contributor

PR #10 provides that last parenthesized solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants