View Single Post
  #1   (View Single Post)  
Old 22nd June 2014
bsdplus bsdplus is offline
Real Name: Alan Cheng
Port Guard
 
Join Date: Jun 2009
Location: Shanghai, China
Posts: 21
Default conky + lua + cairo issue - unable to resolv symbol

I'm trying to get conky + lua + cairo working on my OpenBSD 5.5 AMD64.
When I start conky, I got the "Unable to resolve symbol" error, thus lua cannot load cairo module, and could not draw rings as configured in a lua script, which is in turn called in my conky config file.

googling around on this didn't find anything helpful. Any hints would be appreciated.

Code:
[acheng@azalea ~]$ conky -c Downloads/conkyrc_seamod                          <
Conky: llua_load: error loading module 'cairo' from file '/usr/local/lib/conky/libcairo.so':
        Unable to resolve symbol
Conky: forked to background, pid is 13136
[acheng@azalea ~]$ 
Conky: desktop window (e8) is root window
Conky: window type - normal
Conky: drawing to created window (0x1600002)
Conky: drawing to double buffer
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil
but ldd seems can resolve the symbol fine:

Code:
[acheng@azalea ~]$ ldd /usr/local/lib/conky/libcairo.so 
/usr/local/lib/conky/libcairo.so:
        Start            End              Type Open Ref GrpRef Name
        000011ee15c0d000 000011ee16107000 dlib 1    0   0      /usr/local/lib/libcairo.so.12.2
        000011ee0af1b000 000011ee0b32d000 rlib 0    2   0      /usr/lib/libpthread.so.18.0
        000011ee06a14000 000011ee06ec0000 rlib 0    1   0      /usr/X11R6/lib/libpixman-1.so.32.4
        000011ee0e13a000 000011ee0e571000 rlib 0    1   0      /usr/X11R6/lib/libfontconfig.so.9.0
        000011ee0751b000 000011ee07940000 rlib 0    2   0      /usr/lib/libexpat.so.11.0
        000011ee085fa000 000011ee08a8c000 rlib 0    2   0      /usr/X11R6/lib/libfreetype.so.22.0
        000011ee16107000 000011ee16537000 rlib 0    1   0      /usr/local/lib/libpng.so.17.1
        000011ee0db82000 000011ee0df84000 rlib 0    1   0      /usr/X11R6/lib/libxcb-shm.so.1.0
        000011ee0f2f2000 000011ee0f6f4000 rlib 0    4   0      /usr/X11R6/lib/libpthread-stubs.so.2.0
        000011ee13a27000 000011ee13e2a000 rlib 0    2   0      /usr/X11R6/lib/libXau.so.10.0
        000011ee0b32d000 000011ee0b732000 rlib 0    2   0      /usr/X11R6/lib/libXdmcp.so.11.0
        000011ee147d5000 000011ee14bde000 rlib 0    1   0      /usr/X11R6/lib/libxcb-render.so.1.0
        000011ee0d6f2000 000011ee0dafb000 rlib 0    1   0      /usr/X11R6/lib/libXrender.so.6.0
        000011ee16537000 000011ee16948000 rlib 0    1   0      /usr/X11R6/lib/libXext.so.13.0
        000011ee11c37000 000011ee12169000 rlib 0    3   0      /usr/X11R6/lib/libX11.so.16.0
        000011ee13609000 000011ee13a27000 rlib 0    6   0      /usr/X11R6/lib/libxcb.so.3.0
        000011ee0c942000 000011ee0cd57000 rlib 0    3   0      /usr/lib/libz.so.5.0
        000011ee12bc5000 000011ee12fed000 rlib 0    3   0      /usr/lib/libm.so.9.0

Please note that the conky binary I used is compiled from ports, with lua+cairo bindings which is not enabled in the default conky package.

Also, to enable lua+cairo binding in conky, I had to manually compiled and installed tolua++ which is removed from ports a while back, for reasons unknown to me.

conky -v output:
Code:
[acheng@azalea ~]$ conky -v
Conky 1.9.0 compiled Tue Jun 10 01:14:21 CST 2014 for OpenBSD 5.5 (amd64)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/local/lib/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

 Music detection:
  * Audacious
  * MPD

 General:
  * math
  * Curl
  * RSS
  * Imlib2
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2
Reply With Quote