DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cairo-dock gthread-2.0 shep OpenBSD Packages and Ports 2 7th February 2014 07:26 PM
conky phill OpenBSD Packages and Ports 12 21st January 2011 10:27 AM
How to add a nameserver in /etc/resolv.conf automatically guitarscn OpenBSD General 7 9th November 2010 12:12 PM
cuse4bsd - link_elf: symbol KPTmap undefined godfrank FreeBSD Ports and Packages 3 5th September 2010 11:29 PM
Python/GTK/Cairo Problems (ImportError: No module named cairo) whetphish FreeBSD General 2 24th June 2009 11:06 PM


All times are GMT. The time now is 03:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick