On 14 May 2013 00:47, Alexey Melnichuk <mi...@newmail.ru> wrote:
> Hisham <h <at> hisham.hm> writes:
>
>>
>> Got errors building on Linux:
>>
>> src/lcnn.c: In function ‘cnn_supportsConvert’:
>> src/lcnn.c:1687:28: error: ‘SQL_CONVERT_GUID’ undeclared (first use in
>> this function)
>> src/lcnn.c:1687:28: note: each undeclared identifier is reported only
>> once for each function it appears in
>> src/lcnn.c:1717:28: error: ‘SQL_CVT_GUID’ undeclared (first use in
>> this function)
>>
> I test my library on travis with unixodbc and it building ok.
> https://travis-ci.org/moteus/lua-odbc
> I do not have Linux, so i really can not debug this.
> I try see in some other library (soci/libodbc++)

Ok. For reference, I have libiodbc installed in my system.

>> Also, isn't $(ODBC_LIBDIR) missing in the build table?
>>
>
> I will fix it. But i think unixodbc install this library in system folder.

Even then rockspecs should use the variable, because the library may
not always be installed in a system directory.

> luarocks does not find this dependency.
>
> external_dependencies = {
>   platforms = {
>     unix = {
>       ODBC = {
>         header = 'sql.h',
>         -- library = 'odbc', -- <<< luarocks can not find this
>       }
>     };
>     windows = { -- on windows sql.h placed in %INCLUDE% folder and luarocks
> can not find this
>       ODBC = {}
>     };
>   }
> }

This is probably because the default configurations in LuaRocks are
not suitable. Editing the configuration file adding the necessary
directories should fix this. I'll also work on improving the LuaRocks
defaults.

-- Hisham
http://hisham.hm/

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to