I'm trying to build LuaCrypto on Windows and run into the following;

C:\>dir c:\external\lib
 Het volume in station C heeft geen naam.
 Het volumenummer is 809F-7FC6

 Map van c:\external\lib

23-08-2014  10:30    <DIR>          .
23-08-2014  10:30    <DIR>          ..
22-08-2014  23:15         3.119.146 libcrypto.a
22-08-2014  23:17         2.328.122 libcrypto.dll.a
22-08-2014  23:16           601.194 libssl.a
22-08-2014  23:17           185.818 libssl.dll.a
               4 bestand(en)        6.234.280 bytes
               2 map(pen)  21.354.627.072 bytes beschikbaar

C:\>dir c:\external\bin
 Het volume in station C heeft geen naam.
 Het volumenummer is 809F-7FC6

 Map van c:\external\bin

23-08-2014  00:01    <DIR>          .
23-08-2014  00:01    <DIR>          ..
22-08-2014  23:17         1.922.560 libeay32.dll
22-08-2014  23:17           421.376 ssleay32.dll
               2 bestand(en)        2.343.936 bytes
               2 map(pen)  21.354.627.072 bytes beschikbaar

C:\>luarocks install luacrypto
Installing https://rocks.moonscript.org/luacrypto-0.3.2-1.src.rock...
Using https://rocks.moonscript.org/luacrypto-0.3.2-1.src.rock... switching to 
'build' mode
mingw32-gcc -O2 -c -o src/lcrypto.o -IC:/Program Files (x86)/Lua/5.1/include/ 
src/lcrypto.c -Ic:/external/include
mingw32-gcc -shared -o crypto.dll src/lcrypto.o -Lc:/external/lib -llibeay32 
-lssleay32 -lkernel32 -luser32 -lgdi32 -lad
vapi32 C:/Program Files (x86)/Lua/5.1/bin/lua51.dll -lm
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot 
find -llibeay32
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot 
find -lssleay32
collect2.exe: error: ld returned 1 exit status

Error: Build error: Failed compiling module crypto.dll

C:\>luarocks install luacrypto OPENSSL_LIBDIR=c:\external\bin
Installing https://rocks.moonscript.org/luacrypto-0.3.2-1.src.rock...
Using https://rocks.moonscript.org/luacrypto-0.3.2-1.src.rock... switching to 
'build' mode
mingw32-gcc -O2 -c -o src/lcrypto.o -IC:/Program Files (x86)/Lua/5.1/include/ 
src/lcrypto.c -Ic:/external/include
mingw32-gcc -shared -o crypto.dll src/lcrypto.o -Lc:\external\bin -llibeay32 
-lssleay32 -lkernel32 -luser32 -lgdi32 -lad
vapi32 C:/Program Files (x86)/Lua/5.1/bin/lua51.dll -lm
Updating manifest for C:\Program Files (x86)\LuaRocks\systree/lib/luarocks/rocks
luacrypto 0.3.2-1 is now built and installed in C:\Program Files 
(x86)\LuaRocks\systree (license: MIT)


C:\>



First try it complains about the .dll not being found. But as the dir listing 
shows, they are in c:\external\bin
In the second try, I explicitly point OPENSSL_LIBDIR into the bin dir, then it 
works.
Shouldn't this be the Windows default? Is this a LuaRocks bug?

Thijs


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
vanity: www.gigenet.com
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to