Am 18.11.2013 17:33 schröbte Carsten Weise:
> However, on trying to install the first package, xavante, I get the
> following error:
>
> luasocket.c
> src/wsocket.h(15) : error C2061: Syntaxfehler : Bezeichner
> 't_sockaddr_storage'
> src/wsocket.h(15) : error C2059: Syntaxfehler : ';'
>
> so it's reporting a syntax error in src/luasocket.c.
>
> However, on searching in my self-contained luarocks, there is no file
> luasocket.c. Looks to me as if there's something
> going wrong with selfcontainedness. Note that lfs installs fine, but
> luasocket gives the error.

Then, most likely, LuaRocks is not the problem. How old is your 
compiler/windows api? Can you find out what the default value of the 
`_WIN32_WINNT` preprocessor symbol is (after including `windows.h` or 
`winsock2.h`)? Judging from the error message, the problem is 
`SOCKADDR_STORAGE` in `wsocket.h`, which is only defined if 
`_WIN32_WINNT >= 0x0501` (meaning Windows XP and up, see `ws2def.h`).

Using the old luasocket to satisfy Xavante's dependencies as Hisham 
suggested might work (if you use Lua 5.1 and don't need IPv6). If your 
OS is recent enough (and only the compiler's default value of 
`_WIN32_WINNT` is too low) you could define `_WIN32_WINNT` yourself 
(maybe this should be done in the luasocket source or the rockspec?!).

>
> Regards
> carsten

HTH,
Philipp



------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to