> -----Original Message----- > From: Thijs Schreijer [mailto:th...@thijsschreijer.nl] > Sent: zaterdag 23 augustus 2014 9:52 > To: luarocks-developers@lists.sourceforge.net > Subject: Re: [Luarocks-developers] external dependencies > > > > > -----Original Message----- > > From: Philipp Janda [mailto:siffie...@gmx.net] > > Sent: zaterdag 23 augustus 2014 2:05 > > To: luarocks-developers@lists.sourceforge.net > > Subject: Re: [Luarocks-developers] external dependencies > > > > Am 23.08.2014 um 01:17 schröbte Thijs Schreijer: > > > Building LuaSec on windows gives me; > > > > > > Installing https://rocks.moonscript.org/luasec-0.5-2.src.rock... > > > Using https://rocks.moonscript.org/luasec-0.5-2.src.rock... switching to > > 'build' mode > > > mingw32-gcc -O2 -c -o src/x509.o -IC:/Program Files > (x86)/Lua/5.1/include/ > > src/x509.c -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DLUASEC_EXPORTS - > > DBUFFER_DEBUG -DLUASEC_API=__declspec(dllexport) -Isrc/ -Isrc/luasocket > > > src/x509.c:15:25: fatal error: openssl/ssl.h: No such file or directory > > > #include <openssl/ssl.h> > > > ^ > > > compilation terminated. > > > > > > Error: Build error: Failed compiling object src/x509.o > > > > > > > > > The external dependency on Windows ought to default to "c:\external", so > I > > would have expected some "-IC:\external\include" parameter in the gcc > > command above (that is where I put the OpenSSL stuff). > > > > > > Doesn't this work by default? Should I add something explicitly? > > > > It does work by default, but the rockspec has to *specify* an external > > dependency (that is then looked for in the `external_deps_dirs`). The > > LuaSec rockspec only does so for Unices. > > My guess is that the rockspec author has openssl installed in the > > compiler default paths on Windows ... > > > > Thx. Updated the rockspec to include them, but now get; > > > luarocks make > > Warning: unmatched variable OPENSSL_INCDIR > > > luarocks make OPENSSL=c:\external > > Warning: unmatched variable OPENSSL_INCDIR > > These seem luarocks issues related to the defaults (correct? If so I'll pop > an issue on github for that), so workaround making all explicit; > > > luarocks make OPENSSL_INCDIR=c:\external\include > OPENSSL_LIBDIR=c:\external\lib OPENSSL_BINDIR=c:\external\bin > > <snip> > > > mingw32-gcc -shared -o ssl.dll src/x509.o src/context.o src/ssl.o > src/luasocket/buffer.o src/luasocket/io.o src/luasocke > > t/timeout.o src/luasocket/wsocket.o -Lc:\external\lib -lssl -lcrypto > C:/Program Files (x86)/Lua/5.1/bin/lua51.dll -lm > > src/ssl.o:ssl.c:(.text+0x1307): undefined reference to `WSAGetLastError@0' > > src/ssl.o:ssl.c:(.text+0x54b): undefined reference to `WSAGetLastError@0' > > src/ssl.o:ssl.c:(.text+0x65b): undefined reference to `WSAGetLastError@0' > > c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: > src/ssl.o: bad reloc address 0x0 in section `.data > > ' > > collect2.exe: error: ld returned 1 exit status > > > > Error: Build error: Failed compiling module ssl.dll >
"wsock32" was missing from the libraries entry! Sorry for the noise Thijs PS. LuaRocks issue question above still stands though... ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers