It's sad to see another person having to lose time again with that very
same issue.
At the time I faced the same situation, I found problems in both sides (LR
and LuaSQL). And tried to fix them myself.
LR had a bug that my pull request solved. But LuaSQL is more than one year
waiting for the request to be analysed. Today I use my own version of
luasql.postgres from my github clone and so I can have what I need.
As others pointed out the use of malloc and free is not that dangerous in
this case and not even LUA provides a simple way to handle out of memory
exceptions (one will need to hack the longjmps).
IMO it's better to have the lib available for everyone even with a "may
happen - low probability" known issue than simply keep it unavailable for
Windows users.
Sorry for complaining. But I want the best for both projects. Lua will only
be widely adopted if we have great and working tools for everyone to use
without great friction.
Regards
---
Eric
2014-10-17 9:57 GMT-03:00 <alexandre.bertr...@tudor.lu>:
>
>
> From: Philipp Janda <siffie...@gmx.net>
> To: luarocks-developers@lists.sourceforge.net,
> Date: 17/10/2014 14:53
> Subject: Re: [Luarocks-developers] Problem installing
> luasql-postgresql
> ------------------------------
>
>
>
> Am 17.10.2014 um 14:15 schröbte
> alexandre.bertr...@tudor.lu:
> > Hi Thijs, Philipp and Tomas,
>
> Hi!
>
> >
> > So far I believe I solved the problem, which I had first thought about
> and
> > the 3 of you confirmed it (thanks). Actually, I did an manual update of
> > luarocks (from an old version 2.0.2 to newest), but wrongly parametrised
> > the trees, so that when luasql-postgres got installed, the structure
> > became a mess (I actually mentioned this briefly in a former post, with
> > "luarocks list" not returning all my rocks anymore). I even had the
> > solution before (moving the postgres.dll file to the initial luasql rock
> > folder) but hadn't realised it. What I did now was simply take everything
> > down, and reinstall lua, luarocks and luasql-postgres. The last 2 errors
> I
> > mentioned then didn't show up anymore. The update from Philipp was still
> > necessary, though.
>
> Did you download the source rock again? I've updated it to use the
> `libpq` library instead of `pq` on Windows, so that could be it ...
> And it looks like the LuaRocks installer script picked the correct Lua
> library this time.
>
> ==> Yes, this explains why it worked this time.
>
> > Sorry I didn't come back to you directly, but now I'm stuck with (yet)
> > another problem, an error message stating that an ordinal in libeay32.dll
> > could not be located. I've tried to find a solution since then, and
> wanted
> > to reply to the post once luasql-postgres was behaving normally. Let's
> see
> > if I can solve this one ;¬).
>
> libeay32.dll is a common DLL. Perhaps you have multiple versions in your
> PATH and an incorrect/incompatible one is used ...
>
> ==> exactly! Downloaded OpenSSL and replaced the dll file from Postgres.
>
> > But thanks to the three of you as well as Hisham for your support and
> your
> > reactivity!
> > Cheers,
> > Alex
>
> Philipp
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Luarocks-developers mailing list
> Luarocks-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Luarocks-developers mailing list
> Luarocks-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers