Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error builind LuaSec #41

Closed
aryajur opened this issue Apr 5, 2015 · 1 comment
Closed

Compile Error builind LuaSec #41

aryajur opened this issue Apr 5, 2015 · 1 comment

Comments

@aryajur
Copy link

aryajur commented Apr 5, 2015

Hi,
I am trying to build Luasec using Lua 5.2 files and I get errors regarding the ssl_st struct. I copied the latest openssl include folder in the Luasec source folder. I am using Visual Studio Express 2013. My output log is:

1>------ Rebuild All started: Project: luasec, Configuration: Release Win32 ------
1>  context.c
1>src\context.c(118): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>src\context.c(197): warning C4013: 'DH_free' undefined; assuming extern returning int
1>  buffer.c
1>  io.c
1>  timeout.c
1>  wsocket.c
1>src\luasocket\wsocket.c(311): warning C4996: 'gethostbyaddr': Use getnameinfo() or GetNameInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(2216) : see declaration of 'gethostbyaddr'
1>src\luasocket\wsocket.c(317): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(2238) : see declaration of 'gethostbyname'
1>  ssl.c
1>src\ssl.c(453): error C2037: left of 'server' specifies undefined struct/union 'ssl_st'
1>src\ssl.c(485): error C2037: left of 'server' specifies undefined struct/union 'ssl_st'
1>  x509.c
1>src\x509.c(215): error C2037: left of 'object' specifies undefined struct/union 'X509_extension_st'
1>src\x509.c(215): warning C4047: 'function' : 'ASN1_OBJECT *' differs in levels of indirection from 'int'
1>src\x509.c(215): warning C4024: 'push_asn1_objname' : different types for formal and actual parameter 2
1>src\x509.c(215): error C2198: 'push_asn1_objname' : too few arguments for call
1>src\x509.c(219): error C2037: left of 'object' specifies undefined struct/union 'X509_extension_st'
1>src\x509.c(219): error C2198: 'push_asn1_objname' : too few arguments for call
1>  Generating Code...
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
@brunoos
Copy link
Member

brunoos commented Aug 28, 2015

It compiles fine for me.

@brunoos brunoos closed this as completed Aug 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants