lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello!

I try build LuaLdap with winldap:

luaforge.net - lualdap - scm - lualdap-scm-latest.tar.gz
lua 5.1
MinGW-5.1.3
Windows XP SP2

====build.cmd====
set PATH=%PATH%;C:\Mingw\bin
set LIB=C:\mingw\lib
set INCLUDE=C:\mingw\include
set LUA_DIR=C:\LUA
set LUA_PATH=?.lua;%LUA_DIR%\?.lua;%LUA_DIR%\lib\?.lua;
set LUA_CPATH=?.dll;%LUA_DIR%\lib\?.dll;%LUA_DIR%\?.dll;
set UTIL_DIR = %LUA_DIR%

gcc -O2 -Wall -c *.c -O2 -Wall -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -ansi -DWIN32 -DWINLDAP
gcc -o lualdap.dll -s lualdap.o -lm -llua -lwldap32 -lwsock32

===============

Fail :-(

==========output==========
lualdap.c:81: error: syntax error before "BerValue"
lualdap.c:81: warning: no semicolon at end of struct or union
lualdap.c:83: error: syntax error before "bvals"
lualdap.c:83: warning: type defaults to `int' in declaration of `bvals'
lualdap.c:83: warning: data definition has no type or storage class
....crop....
lualdap.c:826: warning: passing arg 11 of `ldap_search_extA' from incompatible pointer type
lualdap.c: In function `lualdap_open_simple':
lualdap.c:956: warning: implicit declaration of function `ldap_start_tls_sA'
lualdap.c:956: warning: nested extern declaration of `ldap_start_tls_sA'
lualdap.c:961: warning: passing arg 3 of `ldap_bind_s' discards qualifiers from pointer target type
==========================

Please help me build lualdap with winldap.


--
WBR
Alexandr