> -----Original Message-----
> From: Gaspard Bucher [mailto:gasp...@teti.ch]
> Sent: vrijdag 24 januari 2014 19:03
> To: luarocks-developers@lists.sourceforge.net
> Subject: [Luarocks-developers] loading rock with luajit: Symbol not found
> 
> Hi there,
> 
> I am working on releasing a library as a rock with 'builtin' format (see
> rockspec file below). The rock builds and installs fine but when I try to
> load it with luajit I get 'Symbol not found'
> 
> gaspard@ihm:~/git/lubyk/modules/dub$ lua Lua 5.1  Copyright (C) 1994-2006
> Lua.org, PUC-Rio
> > core = require 'xml.core'
> > ^D
> gaspard@ihm:~/git/lubyk/modules/dub$ luajit LuaJIT 2.0.1 -- Copyright (C)
> 2005-2013 Mike Pall. http://luajit.org/
> JIT: ON CMOV SSE2 SSE3 SSE4.1 fold cse dce fwd dse narrow loop abc sink fuse
> > core = require 'xml.core'
> error loading module 'xml.core' from file
> '/usr/local/lib/lua/5.1/xml/core.so':
>       dlopen(/usr/local/lib/lua/5.1/xml/core.so, 6): Symbol not found:
> __ZNKSs5c_strEv
>   Referenced from: /usr/local/lib/lua/5.1/xml/core.so
>   Expected in: dynamic lookup
> 
> 
> Any idea on what I missed ?
> 
> Cheers,
>                                                                Gaspard

I'm no expert on this at all, but I recently had a similar problem with a 
makefile. I read somewhere about toolchain issues and tried another linker, 
which resolved my issue.

This is the issue; 
https://github.com/Tieske/rpi-gpio/issues/1#issuecomment-32758567 
This is the fix; 
https://github.com/Tieske/rpi-gpio/commit/31dad2a745c875edd67eab73dc19ba6af2cd61f8

Hth
Thijs


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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