LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Conky can't find lua, cairo, or imlib2. (https://www.linuxquestions.org/questions/slackware-14/conky-cant-find-lua-cairo-or-imlib2-4175466625/)

flyinggeorge 06-19-2013 11:13 AM

Conky can't find lua, cairo, or imlib2.
 
I asked this question recently already in the software forum, but no one seemed to be able to point me in the right direction. So I'm sorry if I'm breaking a forum rule, but this one really has me stumped! Of course, I could build conky without lua support, but I'm not ready to throw in the towel and admit defeat. There must be a way!

So basically, for the past few days I've been trying to build conky with lua support, also cairo and imlib2. All of these packages (lua, cairo, imlib2) are installed on my system (Slackware 14.0 x86_64). I however, cannot install tolua++ nor can I get conky to build with lua support.

When I try to build either tolua++ or conky with LUA="yes" I get this error:

Code:

/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/liblua.so when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/liblua.a when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../lib64/liblua.so when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../lib64/liblua.a when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/../lib64/liblua.so when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/../lib64/liblua.a when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../liblua.so when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../liblua.a when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/liblua.so when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/liblua.a when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/liblua.so when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/liblua.a when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/liblua.so when searching for -llua
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: cannot find -llua
collect2: error: ld returned 1 exit status
scons: *** [bin/tolua++_bootstrap] Error 1
scons: building terminated because of errors.

So what I gather from this error is that it's looking at the 32bit version of liblua.so when it should be looking at the 64bit or vice versa. What I don't understand about this error is that it claims to be looking at both /lib and /lib64 versions of liblua.so.

Code:

/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/../lib64/liblua.so when searching for -llua

/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../liblua.so when searching for -llua

So if neither the 64bit nor the 32bit are what this source is expecting to be linked to, what other options do I have?

That is the main problem I am having. I also mentioned having installed cairo and imlib2. Installing cairo was a huge pain (read: dependency hell) but I managed to get it to build without error. As for imlib2 I built it with the slackbuild and did the necessary installpkg to get the package installed. However, as should be expected nothing ever goes according to plan. Running ./configure from the conky-1.9 source directory tells me that it doesn't see either cairo or imlib2.

Code:

checking assert.h presence... yes
checking for assert.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for sys/mount.h... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for calloc... yes
checking for malloc... yes
checking for free... yes
checking for popen... yes
checking for sysinfo... yes
checking for getloadavg... yes
checking for memrchr... yes
checking for strndup... yes
checking for gethostbyname_r... yes
checking for library containing clock_gettime... -lrt
checking for struct statfs.f_fstypename... no
checking for db2x_xsltproc... no
checking for db2x_manxml... no
checking for xsltproc... xsltproc
checking if /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64 accepts -O1... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/build.h
config.status: creating lua/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

conky 1.9.0 configured successfully:

 Installing into:  /usr/local
 System config dir: ${prefix}/etc
 C compiler flags:            -I/usr/include/freetype2  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -Wall -W
 Libraries:          -lncurses -lm -lX11  -llua -lm    -lXext  -lXdamage -lXfixes  -lXft  -lglib-2.0  -lasound -lrt
 Linker flags:      -Wl,-O1

 * X11:
  X11 support:      yes
  XDamage support:  yes
  XDBE support:    yes
  Xft support:      yes
  ARGB support      yes

 * Music detection:
  Audacious:        no
  BMPx:            no
  MPD:              yes
  MOC:              yes
  XMMS2:            no

 * General:
  math:            yes
  hddtemp:          yes
  portmon:          yes
  RSS:              no
  Curl:            no
  Weather
    METAR:          no
    XOAP:          no
  wireless:        no
  IBM:              no
  nvidia:          no
  eve-online:      no
  config-output:    yes
  Imlib2:          no
  ALSA mixer:      yes
  apcupsd:          yes
  I/O stats:        yes
  ncurses:          yes

 * Lua (yes) bindings:
  Cairo:            no
  Imlib2:          no

The relevant part under Lua bindings is at the bottom. What's curious about this to me is that the ./configure script sees that I have lua installed. Running make returns the incompatibility error same as above for tolua++. So I guess my question is, what am I doing wrong here, or what am I missing? I realize that tolua++ should be build before conky, but other than that, what am I not getting about this?

tronayne 06-19-2013 02:01 PM

All those packages are available at SlackBuilds.org; e.g., lua-5.1.5-x86_64-1_SBo.

Have you built and installed them?

flyinggeorge 06-19-2013 02:36 PM

Cairo was built from source, lua and imlib2 were installed from the slackbuils. I also used convertpkg-compat32 to create the x86 versions. The version of tolua++ I am trying to install is also a slacbuild but as mentioned above will not build or create the package because of the error.

Just for good measure, I'll show you that I do have the libraries installed.


Lua:
Code:

bash-4.2# locate liblua
/usr/lib64/liblua.so.5.1.5
/usr/lib64/liblua.a
/usr/lib64/liblua.so.5.1
/usr/lib64/liblua.so
/usr/lib64/liblua.so.5
/usr/lib64/vlc/plugins/lua/liblua_plugin.so
/usr/lib64/vlc/plugins/lua/liblua_plugin.la
/usr/lib/lua/5.1/liblua.so.5.1.4
/usr/lib/lua/5.1/liblua.a
/usr/lib/lua/5.1/liblua.so.5.1
/usr/lib/lua/5.1/liblua.so
/usr/lib/lua/5.1/liblua.so.5
/usr/lib/liblua.so.5.1
/usr/lib/liblua.so
/usr/lib/liblua.so.5

imlib2:
Code:

/usr/bin/32/imlib2-config
/usr/bin/32/imlib2_show
/usr/bin/32/imlib2_bumpmap
/usr/bin/32/imlib2_poly
/usr/bin/32/imlib2_grab
/usr/bin/32/imlib2_conv
/usr/bin/32/imlib2_view
/usr/bin/imlib2_conv
/usr/bin/imlib2_view
/usr/lib64/imlib2
/usr/lib64/imlib2/filters
/usr/lib64/imlib2/filters/bumpmap.la
/usr/lib64/imlib2/filters/colormod.la
/usr/lib64/imlib2/filters/colormod.so
/usr/lib64/imlib2/filters/testfilter.la
/usr/lib64/imlib2/filters/testfilter.so
/usr/lib64/imlib2/filters/bumpmap.so
/usr/lib64/imlib2/loaders
/usr/lib64/imlib2/loaders/id3.la
/usr/lib64/imlib2/loaders/gif.so
/usr/lib64/imlib2/loaders/lbm.so
/usr/lib64/imlib2/loaders/tga.so
/usr/lib64/imlib2/loaders/bmp.la
/usr/lib64/imlib2/loaders/pnm.la
/usr/lib64/imlib2/loaders/jpeg.la
/usr/lib64/imlib2/loaders/xpm.so
/usr/lib64/imlib2/loaders/gif.la
/usr/lib64/imlib2/loaders/lbm.la
/usr/lib64/imlib2/loaders/tiff.la
/usr/lib64/imlib2/loaders/bmp.so
/usr/lib64/imlib2/loaders/pnm.so
/usr/lib64/imlib2/loaders/argb.la
/usr/lib64/imlib2/loaders/zlib.so
/usr/lib64/imlib2/loaders/xpm.la
/usr/lib64/imlib2/loaders/argb.so
/usr/lib64/imlib2/loaders/id3.so
/usr/lib64/imlib2/loaders/png.so
/usr/lib64/imlib2/loaders/bz2.so
/usr/lib64/imlib2/loaders/tiff.so
/usr/lib64/imlib2/loaders/tga.la
/usr/lib64/imlib2/loaders/png.la
/usr/lib64/imlib2/loaders/jpeg.so
/usr/lib64/imlib2/loaders/zlib.la
/usr/lib64/imlib2/loaders/bz2.la
/usr/lib64/pkgconfig/imlib2.pc
/usr/share/imlib2
/usr/share/imlib2/data
/usr/share/imlib2/data/fonts
/usr/share/imlib2/data/fonts/notepad.ttf
/usr/share/imlib2/data/fonts/cinema.ttf
/usr/share/imlib2/data/fonts/grunge.ttf
/usr/share/imlib2/data/fonts/morpheus.ttf
/usr/share/imlib2/data/images
/usr/share/imlib2/data/images/globe.png
/usr/share/imlib2/data/images/bg.png
/usr/share/imlib2/data/images/sh2.png
/usr/share/imlib2/data/images/calc.png
/usr/share/imlib2/data/images/lock.png
/usr/share/imlib2/data/images/paper.png
/usr/share/imlib2/data/images/folder.png
/usr/share/imlib2/data/images/imlib2.png
/usr/share/imlib2/data/images/menu.png
/usr/share/imlib2/data/images/audio.png
/usr/share/imlib2/data/images/stop.png
/usr/share/imlib2/data/images/tnt.png
/usr/share/imlib2/data/images/sh1.png
/usr/share/imlib2/data/images/mail.png
/usr/share/imlib2/data/images/sh3.png
/usr/share/imlib2/data/images/bulb.png
/usr/share/imlib2/data/images/cal.png
/usr/share/imlib2/data/images/mush.png
/usr/doc/imlib2-1.4.5
/usr/doc/imlib2-1.4.5/AUTHORS
/usr/doc/imlib2-1.4.5/INSTALL
/usr/doc/imlib2-1.4.5/COPYING-PLAIN
/usr/doc/imlib2-1.4.5/imlib2.SlackBuild
/usr/doc/imlib2-1.4.5/README
/usr/doc/imlib2-1.4.5/TODO
/usr/doc/imlib2-1.4.5/COPYING
/usr/doc/imlib2-1.4.5/ChangeLog

Cairo:
Code:

/usr/bin/pdftocairo
/usr/lib64/libcairo.so.2.11000.2
/usr/lib64/libcairo-script-interpreter.so.2
/usr/lib64/libpangocairo-1.0.so.0
/usr/lib64/libcairo-script-interpreter.so
/usr/lib64/pkgconfig/cairo-pdf.pc
/usr/lib64/pkgconfig/poppler-cairo.pc
/usr/lib64/pkgconfig/cairo-ps.pc
/usr/lib64/pkgconfig/cairo-svg.pc
/usr/lib64/pkgconfig/pycairo.pc
/usr/lib64/pkgconfig/cairo-ft.pc
/usr/lib64/pkgconfig/pangocairo.pc
/usr/lib64/pkgconfig/cairo-tee.pc
/usr/lib64/pkgconfig/cairo-xlib-xrender.pc
/usr/lib64/pkgconfig/cairo-fc.pc
/usr/lib64/pkgconfig/cairo-xlib.pc
/usr/lib64/pkgconfig/cairo-png.pc
/usr/lib64/pkgconfig/cairo-gobject.pc
/usr/lib64/pkgconfig/cairo.pc
/usr/lib64/libcairo-gobject.so
/usr/lib64/libcairo-script-interpreter.so.2.11000.2
/usr/lib64/audacious/Visualization/cairo-spectrum.so
/usr/lib64/gstreamer-0.10/libgstcairo.so
/usr/lib64/gstreamer-0.10/libgstcairo.la
/usr/lib64/libcairo-gobject.la
/usr/lib64/babl-0.1/cairo.la
/usr/lib64/babl-0.1/cairo.so
/usr/lib64/python2.7/site-packages/cairo
/usr/lib64/python2.7/site-packages/cairo/__init__.pyo
/usr/lib64/python2.7/site-packages/cairo/_cairo.so
/usr/lib64/python2.7/site-packages/cairo/_cairo.la
/usr/lib64/python2.7/site-packages/cairo/__init__.pyc
/usr/lib64/python2.7/site-packages/cairo/__init__.py
/usr/lib64/python2.7/site-packages/gtk-2.0/pangocairo.la
/usr/lib64/python2.7/site-packages/gtk-2.0/pangocairo.so
/usr/lib64/libcairo.so
/usr/lib64/libpangocairo-1.0.so
/usr/lib64/libpangocairo-1.0.la
/usr/lib64/libpangocairo-1.0.so.0.3000.1
/usr/lib64/libcairo.la
/usr/lib64/libcairo-gobject.so.2.11000.2
/usr/lib64/libcairo-gobject.so.2
/usr/lib64/girepository-1.0/cairo-1.0.typelib
/usr/lib64/libcairo-script-interpreter.la
/usr/lib64/libcairo.so.2
/usr/share/gtk-doc/html/cairo
/usr/share/gtk-doc/html/cairo/cairo-fonts.html
/usr/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html
/usr/share/gtk-doc/html/cairo/index.html
/usr/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html
/usr/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html
/usr/share/gtk-doc/html/cairo/cairo-text.html
/usr/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html
/usr/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html
/usr/share/gtk-doc/html/cairo/cairo-surfaces.html
/usr/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html
/usr/share/gtk-doc/html/cairo/bindings-streams.html
/usr/share/gtk-doc/html/cairo/cairo-drawing.html
/usr/share/gtk-doc/html/cairo/bindings-errors.html
/usr/share/gtk-doc/html/cairo/index-1.2.html
/usr/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html
/usr/share/gtk-doc/html/cairo/up.png
/usr/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html
/usr/share/gtk-doc/html/cairo/right.png
/usr/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html
/usr/share/gtk-doc/html/cairo/index.sgml
/usr/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html
/usr/share/gtk-doc/html/cairo/cairo-Paths.html
/usr/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html
/usr/share/gtk-doc/html/cairo/index-1.4.html
/usr/share/gtk-doc/html/cairo/language-bindings.html
/usr/share/gtk-doc/html/cairo/cairo-Version-Information.html
/usr/share/gtk-doc/html/cairo/bindings-patterns.html
lines 1-73

There's more references to cairo had to use | less to get a manageable list. But you get the idea, I do have all of these things installed.

tronayne 06-19-2013 03:23 PM

How about toula++ (which requires lua and scons)? You also want scons and imlib2.

Just built conky from SlackBuilds.org (with all the required libraries and development packages). Worked just fine.

The note in conky is to build it with LUA=yes ./conky.SlackBuild.

The cleanest, easiest way to add software is through SlackBuilds -- start at conky and follow each required package.

tronayne 06-19-2013 03:29 PM

Oh, by the way, cairo is provided with Slackware 14.0: /var/log/packages/cairo-1.10.2-x86_64-2. You didn't need to build it.

flyinggeorge 06-19-2013 04:00 PM

Thank you for the input, but I already have scons and lua. As for not needing to build cairo, I suppose it's too late because I did it anyway. But I have scons, and I'm trying to build tolua++ from the slackbuild. And I do have lua.

Code:

bash-4.2$ lua
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
>

Which was build from the slackbuild.

zrdc28 06-19-2013 04:31 PM

http://ponce.cc/slackware/slackware-14.0/packages/

If you are a lazy guy like me just go to the above and get the package. He also has a compat32 conky.
I am using both the 32 & 64 bit versions with no problems. I could never get tolou from slackbuilds to work.
I understand that it was probably my fault but that is how it was done for me.

flyinggeorge 06-19-2013 04:50 PM

I tried the conky i486 package, but it crashes on startup telling me:

Code:

bash-4.2# conky
conky: error while loading shared libraries: libaudcore.so.1: wrong ELF class: ELFCLASS64

I don't see a 64bit package on that site :(

Is there an i486 audacious package, or an option I'm not aware of to run conky without support for libaudcore.so? This seems to have gotten me one step closer though, and for that, I thank you.

flyinggeorge 06-19-2013 06:30 PM

Okay, so I found all of the 32-bit packages I needed and installed them. Unfortunately, conky still does not show lua support.

Code:

bash-4.2$ conky --version
Conky 1.9.0 compiled Mon Apr 29 16:09:16 CEST 2013 for Linux 3.2.29-smp (i686)

Compiled in features:

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

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

 Music detection:
  * Audacious
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * config-output
  * apcupsd
  * iostats
  * ncurses

I should see lua under general. But I don't see lua at all. So unfortunately, this does not help. Basically, I am still at square one.

Edit:

It seems I have a new error!

Now I am trying to build the conky slackbuild and it says:

Code:

checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for Audacious... yes
checking audacious/audctrl.h usability... yes
checking audacious/audctrl.h presence... yes
checking for audacious/audctrl.h... yes
checking audacious/dbus.h usability... yes
checking audacious/dbus.h presence... yes
checking for audacious/dbus.h... yes
checking glib.h usability... yes
checking glib.h presence... yes
checking for glib.h... yes
checking glib-object.h usability... yes
checking glib-object.h presence... yes
checking for glib-object.h... yes
checking for X11... yes
checking for Imlib2... yes
checking for LUA... yes
checking for cairo... yes
checking for cairo_xlib... yes
checking for tolua++... tolua++
checking for library containing tolua_error... no
configure: error: tolua_error not found

This is of course very exciting because it now sees imlib2, cairo, and tolua++ BUT I am still one error short of building. Any ideas?

JackHair 06-20-2013 12:23 AM

I can confirm that you should be able to build conky if you have all dependencies installed correctly. I've build conky yesterday and it did build and works fine on Slackware 14 x86_64. I've used the slackbuilds versions.

Quote:

To enable lua scripting engine support, you will need lua, imlib2, and
tolua++, and run this script like this: LUA=yes ./conky.SlackBuild

flyinggeorge 06-20-2013 10:08 AM

I very much agree that I *should* be able to build it just fine, right now I can't get past:

Code:

configure: error: tolua_error not found
As mentioned above. One post on the Ubuntu forums

http://ubuntuforums.org/showthread.p...77#post8349177

Suggest looking for a package called tolua-dev, but I can't find any such package. Ideas?

Didier Spaier 06-20-2013 11:03 AM

I think that you complicate things uselessly trying to mix 32 and 64 bits as you should stay with 64 bits.

Also, why install cairo from source as it is included in Slackware (provided you made a full Slackware installation, of course).

So just uninstall you "custom" cairo (but then re-install the regular Slackware package for cairo) and buld and install in order using only slackbuilds from slackbuilds.org following packages:
scons
tolua++
imlib2
lua
conky (with "LUA=yes")

As JackHair told you this works for 64 bit (and for 32 bit as well, as I just checked). And slackbuilds detect the architecture themseleves, just let them do their job.

You don't need any alien package like tolua-dev, in Slackware, all packages include the development libraries if they exist.

flyinggeorge 06-20-2013 12:06 PM

Aside from Cairo they are all built from the slackbuilds. And it shouldn't matter if they were built from source, the libraries/references exist.

The only reason I bother with 32 bit files is for multilib compatibility on the off chance I need that package for something else down the road.

Didier Spaier 06-20-2013 01:11 PM

I still don't know why you compiled manually cairo, but why not? Whatever the reason the results could be different when installing theSlackware package for it, because you didn't check that you gave the same options to configure.

Let's take an example. You configured manually conky (dunno why either as it's done by the slackbuild, but again, why not). You stated in the first post of this thread:
Quote:

The relevant part under Lua bindings is at the bottom. What's curious about this to me is that the ./configure script sees that I have lua installed.
as you didn't undestand why you saw this in ./configure's output:
Code:

* Lua (yes) bindings: 
  Cairo:            no
  Imlib2:          no

So I guess that you didn't type "./configure --help", which states:
Code:

--enable-lua-imlib2    enable if you want Lua Imlib2 bindings for Conky
                          [default=no]
--enable-lua-cairo      enable if you want Lua Cairo bindings for Conky
                          [default=no]

But in the SlackBuild these options are enabled if you set LUA to yes.

flyinggeorge 06-20-2013 01:51 PM

I have since migrated to using the slackbuild for conky.

Code:

bash-4.2# ls
README              conky.SlackBuild          conky.SlackBuild~  doinst.sh
conky-1.9.0.tar.bz2  conky.SlackBuild.original  conky.info        slack-desc

And I do have LUA=yes enabled in the slackbuild.

Here is what ./conky.SlackBuild returns and this is what I am trying to troubleshoot:

Code:

checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-slackware-linux-gnu file names to x86_64-slackware-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-slackware-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-slackware-linux/bin/ld option to reload object files... -r
checking for x86_64-slackware-linux-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-slackware-linux-dlltool... no
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-slackware-linux-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-slackware-linux-strip... no
checking for strip... strip
checking for x86_64-slackware-linux-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from x86_64-slackware-linux-gcc object... ok
checking for sysroot... no
checking for x86_64-slackware-linux-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... x86_64-slackware-linux-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-slackware-linux-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-slackware-linux-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-slackware-linux-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-slackware-linux-gcc static flag -static works... yes
checking if x86_64-slackware-linux-gcc supports -c -o file.o... yes
checking if x86_64-slackware-linux-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-slackware-linux-gcc linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether x86_64-slackware-linux-gcc and cc understand -c and -o together... yes
checking for pkg-config... yes
checking for x86_64-slackware-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.19... yes
checking for fopencookie... yes
checking for funopen... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for Audacious... yes
checking audacious/audctrl.h usability... yes
checking audacious/audctrl.h presence... yes
checking for audacious/audctrl.h... yes
checking audacious/dbus.h usability... yes
checking audacious/dbus.h presence... yes
checking for audacious/dbus.h... yes
checking glib.h usability... yes
checking glib.h presence... yes
checking for glib.h... yes
checking glib-object.h usability... yes
checking glib-object.h presence... yes
checking for glib-object.h... yes
checking for X11... yes
checking for Imlib2... yes
checking for LUA... yes
checking for cairo... yes
checking for cairo_xlib... yes
checking for tolua++... tolua++
checking for library containing tolua_error... no
configure: error: tolua_error not found

Cairo is not the problem here, nor is lua. Yes in the first post I was worried about cairo and lua, and your last post does explain why they weren't seen. But now I am using the slackbuild and I have a new problem, specifically, I cannot get past the last line:

Code:

checking for library containing tolua_error... no
I do appreciate the input though.

tronayne 06-20-2013 02:28 PM

Look: here's what you need from SlackBuilds.org (and in the order you need to build and install them using the appropriate SlackBuild in each package):
  1. lua 5.1.5
  2. imlib2 1.4.5 (this installs alongside the Slackware-provided imlib 1.9.15)
  3. scons 2.2.0
  4. tolua++ 1.0.93
  5. conky 1.9.0
From the conky page at SlackBuilds.org:
Quote:

To enable lua scripting engine support, you will need lua, imlib2, and
tolua++, and run this script like this: LUA=yes ./conky.SlackBuild
As I and others have tried to point out to you, do it this way and it'll work and no amount of arguing will make any difference.

Hope this helps some.

flyinggeorge 06-20-2013 05:14 PM

I'm not trying to be argumentative, but as I have previously stated, I have all of those, and they were *built from the slackbuilds* except for cairo. Everyone seems to be ignoring the actual error I am getting. I built Lua, tolua++, imlib2, and scons from the slackbuilds, then when I try to run the conky slackbuild I get:

Code:

configure: error: tolua_error not found
After running

Code:

# ./conky.SlackBuild

Didier Spaier 06-20-2013 05:38 PM

See this thread.

zrdc28 06-22-2013 08:46 AM

http://ponce.cc/slackware/slackware-14.0/packages/

If you are a lazy guy like me just go to the above and get the package. He also has a compat32 conky.
I am using both the 32 & 64 bit versions with no problems. I could never get tolou from slackbuilds to work.
I understand that it was probably my fault but that is how it was done for me.

bash-4.2# conky
conky: error while loading shared libraries: libaudcore.so.1: wrong ELF class: ELFCLASS64

I got the the same error that you did when I used ponces build on the 32 and 64 bit, on 2 different machines.
I found that libaudcore.so.1 was a dependency of audacious and that audacious was not working on either of my computers,
the answer was to reinstall audacious and get it to work then conky worked.

tronayne 06-22-2013 09:54 AM

If you've installed from SlackBuilds, this is what you should have in /var/log/packages:
Code:

cd /var/log/packages
ls -l cairo*
-rw-r--r-- 1 root root  5086 Oct 18  2012 cairo-1.10.2-x86_64-2
ls -l lua*
-rw-r--r-- 1 root root 2837 Nov 29  2012 lua-5.1.5-x86_64-1_SBo
ls -l imlib2*
-rw-r--r-- 1 root root 3403 Jun 19 16:18 imlib2-1.4.5-x86_64-1_SBo
ls -l scons*
-rw-r--r-- 1 root root 18630 Jun 19 16:05 scons-2.2.0-x86_64-1_SBo
ls -l tolua*
-rw-r--r-- 1 root root 1100 Jun 19 16:06 tolua++-1.0.93-x86_64-1_SBo

Note that all the above are 64-bit (no 32-bit!). Also, note that cairo is the library that comes with Slackware -- with "stock" Slackware you should see
Code:

locate libcairo
/opt/libreoffice3.6/program/libcairo.so.2
/usr/lib64/libcairo-script-interpreter.la
/usr/lib64/libcairo-gobject.so.2
/usr/lib64/libcairo-script-interpreter.so.2.11000.2
/usr/lib64/libcairo-gobject.la
/usr/lib64/libcairo.so.2.11000.2
/usr/lib64/libcairomm-1.0.la
/usr/lib64/libcairo-script-interpreter.so.2
/usr/lib64/libcairomm-1.0.so.1
/usr/lib64/libcairomm-1.0.so.1.4.0
/usr/lib64/libcairo-script-interpreter.so
/usr/lib64/libcairo.la
/usr/lib64/libcairomm-1.0.so
/usr/lib64/libcairo.so
/usr/lib64/libcairo.so.2
/usr/lib64/libcairo-gobject.so
/usr/lib64/libcairo-gobject.so.2.11000.2

That is, other than the line from LibreOffice, the above are the only things should should see -- if there are more files (from, say, your manual build of cairo), you might want to remove cairo entirely (with removepkg or make uninstall, depending upon how your built and installed) then get out you distribution media and install the "stock" cairo from it.

You appear to have multilib on your system; however, none of the above should have built as 32-bit packages, if they are, removepkg and redo the SlackBuild making sure that the packages are built 64-bit (they should just default to 64-bit). If you're getting any messages about wrong ELF class, you're trying to mix 32-bit and 64-bit and that don't and will not work.

Something else you can do to make sure you have the correct ELF class is
Code:

file $(locate libcairo)
/opt/libreoffice3.6/program/libcairo.so.2:          ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
/usr/lib64/libcairo-script-interpreter.la:          libtool library file,
/usr/lib64/libcairo-gobject.so.2:                    symbolic link to `libcairo-gobject.so.2.11000.2'
/usr/lib64/libcairo-script-interpreter.so.2.11000.2: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
/usr/lib64/libcairo-gobject.la:                      libtool library file,
/usr/lib64/libcairo.so.2.11000.2:                    ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
/usr/lib64/libcairomm-1.0.la:                        libtool library file,
/usr/lib64/libcairo-script-interpreter.so.2:        symbolic link to `libcairo-script-interpreter.so.2.11000.2'
/usr/lib64/libcairomm-1.0.so.1:                      symbolic link to `libcairomm-1.0.so.1.4.0'
/usr/lib64/libcairomm-1.0.so.1.4.0:                  ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
/usr/lib64/libcairo-script-interpreter.so:          symbolic link to `libcairo-script-interpreter.so.2.11000.2'
/usr/lib64/libcairo.la:                              libtool library file,
/usr/lib64/libcairomm-1.0.so:                        symbolic link to `libcairomm-1.0.so.1.4.0'
/usr/lib64/libcairo.so:                              symbolic link to `libcairo.so.2.11000.2'
/usr/lib64/libcairo.so.2:                            symbolic link to `libcairo.so.2.11000.2'
/usr/lib64/libcairo-gobject.so:                      symbolic link to `libcairo-gobject.so.2.11000.2'
/usr/lib64/libcairo-gobject.so.2.11000.2:            ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

Notice in both the above locate output that there is no /usr/lib, they're all /usr/lib64 (except the LibreOffice line)?

It's the same for lua:
Code:

file $(locate liblua) 
/usr/lib64/liblua.so.5.1:  symbolic link to `liblua.so.5.1.5'
/usr/lib64/liblua.so.5:    symbolic link to `liblua.so.5.1.5'
/usr/lib64/liblua.so:      symbolic link to `liblua.so.5.1.5'
/usr/lib64/liblua.so.5.1.5: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
/usr/lib64/liblua.a:        current ar archive

And all the other required libraries: they will not be in /usr/lib and they will not be 32-bit.

Maybe the above won't help, maybe it will, but it's worth checking, methinks.

Hope this helps some.

flyinggeorge 06-28-2013 09:19 PM

Please excuse me for taking so long to get around to this. I have been in the middle of some "making ends meet" scenarios. But anyway, I did exactly as was suggested. I removed all the packages I had installed and instead replaced them with the packages from SlackBuilds.org. Here is what it looks like in my /var/packages: (I also removed all the 32-bit packages)

Code:

bash-4.2# cd /var/log/packages
bash-4.2# ls -l cairo*
-rw-r--r-- 1 root root 5057 Jun 28 21:58 cairo-1.10.2-x86_64-2
bash-4.2# ls -l lua*
-rw-r--r-- 1 root root 2837 Jun 28 21:47 lua-5.1.5-x86_64-1_SBo
bash-4.2# ls -l imlib2*
-rw-r--r-- 1 root root 3403 Jun 28 21:49 imlib2-1.4.5-x86_64-1_SBo
bash-4.2# ls -l scons*
-rw-r--r-- 1 root root 18630 Jun 28 21:50 scons-2.2.0-x86_64-1_SBo
bash-4.2# ls -l tolua*
-rw-r--r-- 1 root root 1100 Jun 28 21:51 tolua++-1.0.93-x86_64-1_SBo
bash-4.2#

Again, just to show I have no 32bit version of lua installed any more:

Code:

bash-4.2# locate liblua
/usr/lib64/liblua.so.5.1.5
/usr/lib64/liblua.a
/usr/lib64/liblua.so.5.1
/usr/lib64/liblua.so
/usr/lib64/liblua.so.5
/usr/lib64/vlc/plugins/lua/liblua_plugin.so
/usr/lib64/vlc/plugins/lua/liblua_plugin.la

And cairo

Code:

bash-4.2# locate libcairo
/usr/lib64/libcairo.so.2.11000.2
/usr/lib64/libcairo-script-interpreter.so.2
/usr/lib64/libcairo-script-interpreter.so
/usr/lib64/libcairo-gobject.so
/usr/lib64/libcairo-script-interpreter.so.2.11000.2
/usr/lib64/libcairo-gobject.la
/usr/lib64/libcairo.so
/usr/lib64/libcairo.la
/usr/lib64/libcairo-gobject.so.2.11000.2
/usr/lib64/libcairo-gobject.so.2
/usr/lib64/libcairo-script-interpreter.la
/usr/lib64/libcairo.so.2

And for lua (making sure I have the right ELF class)

Code:

bash-4.2# file $(locate liblua)                                                                                                                                                                                                                                             
/usr/lib64/liblua.so.5.1.5:                  ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
/usr/lib64/liblua.a:                        current ar archive
/usr/lib64/liblua.so.5.1:                    symbolic link to `liblua.so.5.1.5'
/usr/lib64/liblua.so:                        symbolic link to `liblua.so.5.1.5'
/usr/lib64/liblua.so.5:                      symbolic link to `liblua.so.5.1.5'
/usr/lib64/vlc/plugins/lua/liblua_plugin.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
/usr/lib64/vlc/plugins/lua/liblua_plugin.la: libtool library file,

Doing the same for libcairo spits out a bunch of stuff that doesn't make as much sense, but since conky doesn't complain about cairo at all, I don't think it is the problem:

Code:

bash-4.2# file $(locate libcairo)
/usr/lib64/libcairo.so.2.11000.2:                                                                                                                                                                                                                                                                          ELF 64-bit LSB shared object, x86-64, version 1 (SY                                                                                                                                                                                              SV), dynamically linked, stripped
/usr/lib64/libcairo-script-interpreter.so.2:                                                                                                                                                                                                                                                                symbolic link to `libcairo-script-interpreter.so.2.                                                                                                                                                                                              11000.2'
/usr/lib64/libcairo-script-interpreter.so:                                                                                                                                                                                                                                                                  symbolic link to `libcairo-script-interpreter.so.2.                                                                                                                                                                                              11000.2'
/usr/lib64/libcairo-gobject.so:                                                                                                                                                                                                                                                                            symbolic link to `libcairo-gobject.so.2.11000.2'
/usr/lib64/libcairo-script-interpreter.so.2.11000.2:                                                                                                                                                                                                                                                        ELF 64-bit LSB shared object, x86-64, version 1 (SY                                                                                                                                                                                              SV), dynamically linked, stripped
/usr/lib64/libcairo-gobject.la:                                                                                                                                                                                                                                                                            libtool library file,
/usr/lib64/libcairo.so:                                                                                                                                                                                                                                                                                    symbolic link to `libcairo.so.2.11000.2'
/usr/lib64/libcairo.la:                                                                                                                                                                                                                                                                                    libtool library file,
/usr/lib64/libcairo-gobject.so.2.11000.2:                                                                                                                                                                                                                                                                  ELF 64-bit LSB shared object, x86-64, version 1 (SY                                                                                                                                                                                              SV), dynamically linked, stripped
/usr/lib64/libcairo-gobject.so.2:                                                                                                                                                                                                                                                                          symbolic link to `libcairo-gobject.so.2.11000.2'
/usr/lib64/libcairo-script-interpreter.la:                                                                                                                                                                                                                                                                  libtool library file,
/usr/lib64/libcairo.so.2:                                                                                                                                                                                                                                                                                  symbolic link to `libcairo.so.2.11000.2'
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2:                        directory
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/README.gz:              gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/changelog.Debian.gz:    gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/AUTHORS.gz:            gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/changelog.gz:          gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/copyright:              ASCII text
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/NEWS.gz:                gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-                                                                                                                                                                                              gnu/libcairo.so.2.11000.2:  ELF 32-bit LSB shared object, Intel 80386, version                                                                                                                                                                                                1 (SYSV), dynamically linked, BuildID[sha1]=0x72c933979ed0c6cea3b54ecf23479de8aa                                                                                                                                                                                              3636cf, stripped
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-                                                                                                                                                                                              gnu/libcairo.so.2:          symbolic link to `libcairo.so.2.11000.2'
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/installed/libcairo2                                                                                                                                                                                              _1.10.2-6.1ubuntu3_i386.md5: ASCII text
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/installed/libcairo2                                                                                                                                                                                              bash-4.2# file $(locate libcairo)
/usr/lib64/libcairo.so.2.11000.2:                                                                                                                                                                                                                                                                          ELF 64-bit LSB shared object, x86-64, version 1 (SY                                                                                                                                                                                              SV), dynamically linked, stripped
/usr/lib64/libcairo-script-interpreter.so.2:                                                                                                                                                                                                                                                                symbolic link to `libcairo-script-interpreter.so.2.                                                                                                                                                                                              11000.2'
/usr/lib64/libcairo-script-interpreter.so:                                                                                                                                                                                                                                                                  symbolic link to `libcairo-script-interpreter.so.2.                                                                                                                                                                                              11000.2'
/usr/lib64/libcairo-gobject.so:                                                                                                                                                                                                                                                                            symbolic link to `libcairo-gobject.so.2.11000.2'
/usr/lib64/libcairo-script-interpreter.so.2.11000.2:                                                                                                                                                                                                                                                        ELF 64-bit LSB shared object, x86-64, version 1 (SY                                                                                                                                                                                              SV), dynamically linked, stripped
/usr/lib64/libcairo-gobject.la:                                                                                                                                                                                                                                                                            libtool library file,
/usr/lib64/libcairo.so:                                                                                                                                                                                                                                                                                    symbolic link to `libcairo.so.2.11000.2'
/usr/lib64/libcairo.la:                                                                                                                                                                                                                                                                                    libtool library file,
/usr/lib64/libcairo-gobject.so.2.11000.2:                                                                                                                                                                                                                                                                  ELF 64-bit LSB shared object, x86-64, version 1 (SY                                                                                                                                                                                              SV), dynamically linked, stripped
/usr/lib64/libcairo-gobject.so.2:                                                                                                                                                                                                                                                                          symbolic link to `libcairo-gobject.so.2.11000.2'
/usr/lib64/libcairo-script-interpreter.la:                                                                                                                                                                                                                                                                  libtool library file,
/usr/lib64/libcairo.so.2:                                                                                                                                                                                                                                                                                  symbolic link to `libcairo.so.2.11000.2'
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2:                        directory
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/README.gz:              gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/changelog.Debian.gz:    gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/AUTHORS.gz:            gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/changelog.gz:          gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/copyright:              ASCII text
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/libca                                                                                                                                                                                              iro2/NEWS.gz:                gzip compressed data, from Unix, max compression
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-                                                                                                                                                                                              gnu/libcairo.so.2.11000.2:  ELF 32-bit LSB shared object, Intel 80386, version                                                                                                                                                                                                1 (SYSV), dynamically linked, BuildID[sha1]=0x72c933979ed0c6cea3b54ecf23479de8aa                                                                                                                                                                                              3636cf, stripped
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-                                                                                                                                                                                              gnu/libcairo.so.2:          symbolic link to `libcairo.so.2.11000.2'
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/installed/libcairo2                                                                                                                                                                                              _1.10.2-6.1ubuntu3_i386.md5: ASCII text
/home/gene/.local/share/Steam/ubuntu12_32/steam-runtime/i386/installed/libcairo2                                                                                                                                                                                              _1.10.2-6.1ubuntu3_i386:    ASCII text
/home/gene/Downloads/cairo-5c-1.5/debian/libcairo5c-0.install:                                                                                                                                                                                                                                              ASCII text
/home/gene/Downloads/cairomm-1.10.0/cairomm/.libs/libcairomm-1.0.so:                                                                                                                                                                                                                                        symbolic link to `libcairomm-1.0.so.1.4.0'
/home/gene/Downloads/cairomm-1.10.0/cairomm/.libs/libcairomm-1.0.so.1:                                                                                                                                                                                                                                      symbolic link to `libcairomm-1.0.so.1.4.0'
/home/gene/Downloads/cairomm-1.10.0/cairomm/.libs/libcairomm-1.0.so.1.4.0:                                                                                                                                                                                                                                  ELF 64-bit LSB shared object, x86-64, version 1 (SY                                                                                                                                                                                              SV), dynamically linked, not stripped
/home/gene/Downloads/cairomm-1.10.0/cairomm/.libs/libcairomm-1.0.la:                                                                                                                                                                                                                                        symbolic link to `../libcairomm-1.0.la'
/home/gene/Downloads/cairomm-1.10.0/cairomm/.libs/libcairomm-1.0.lai:                                                                                                                                                                                                                                      libtool library file,
/home/gene/Downloads/cairomm-1.10.0/cairomm/libcairomm-1.0.la:                                                                                                                                                                                                                                              libtool library file,
/home/gene/Downloads/conky-1.9.0/lua/libcairo-helper.h:                                                                                                                                                                                                                                                    C source, ASCII text
/home/gene/Downloads/conky-1.9.0/lua/libcairo.c:                                                                                                                                                                                                                                                            C source, ASCII text
/home/gene/Downloads/conky-1.9.0/lua/.deps/libcairo_la-libcairo.Plo:                                                                                                                                                                                                                                        ASCII text

It looks like steam uses the 32-bit cairo package, hopefully that still runs. Anyway, even after all of this, I am getting the exact same error with the slackbuild.

Code:

bash-4.2# ./conky.SlackBuild

checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-slackware-linux-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-slackware-linux-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-slackware-linux-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-slackware-linux-gcc static flag -static works... yes
checking if x86_64-slackware-linux-gcc supports -c -o file.o... yes
checking if x86_64-slackware-linux-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-slackware-linux-gcc linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether x86_64-slackware-linux-gcc and cc understand -c and -o together... yes
checking for pkg-config... yes
checking for x86_64-slackware-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.19... yes
checking for fopencookie... yes
checking for funopen... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for Audacious... yes
checking audacious/audctrl.h usability... yes
checking audacious/audctrl.h presence... yes
checking for audacious/audctrl.h... yes
checking audacious/dbus.h usability... yes
checking audacious/dbus.h presence... yes
checking for audacious/dbus.h... yes
checking glib.h usability... yes
checking glib.h presence... yes
checking for glib.h... yes
checking glib-object.h usability... yes
checking glib-object.h presence... yes
checking for glib-object.h... yes
checking for X11... yes
checking for Imlib2... yes
checking for LUA... yes
checking for cairo... yes
checking for cairo_xlib... yes
checking for tolua++... tolua++
checking for library containing tolua_error... no
configure: error: tolua_error not found

Thank you for the suggestions, but tolua_error is either inside of a package I have not installed for some reason, or ... I don't know.

glorsplitz 06-28-2013 11:04 PM

I've been curious about conky, checked it out at slackbuilds, followed dependencies, works fine, no errors.

I have all the exact packages mentioned in previous posts here installed.

Found this thread. Maybe helps?

flyinggeorge 06-28-2013 11:48 PM

In an attempt to follow that thread, I installed tolua, so now I have tolua and tolua++ (both 64bit)

Code:

bash-4.2# ls /var/log/packages/ | grep tolua
tolua++-1.0.93-x86_64-1_SBo
tolua-5.1b-x86_64-1an

And I tried adding LUA51_LIBS="-llua -lm" to the slackbuild, maybe I put it in the wrong place?

Code:

if [ "${LUA:-yes}" = "yes" ]; then
  lua_params="--enable-lua --enable-lua-cairo --enable-imlib2 --enable-lua-imlib2 LUA51_LIBS='-llua'"
else
  lua_params="--disable-lua"
fi

I added it to this code block because later in the script, the variable $lua_params is called upon when enabling lua support. From what I understood from the thread linked, that is where this should go.

Code:

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LBIDIRSUFFIX} \
  --sysconfdir=/etc \
  --mandir=/usr/man \
  --enable-shared=yes \
  --enable-static=no \
  --enable-ibm \
  --enable-hddtemp \
  --enable-xft \
  --enable-weather-metar \
  --enable-weather-xoap \
  --enable-portmon \
  --enable-audacious \
  --enable-mpd=yes \
  --enable-rss=yes \
  --enable-wlan=yes \
  $lua_params \
  --build=$ARCH-slackware-linux \
  --host=$ARCH-slackware-linux

But I am still getting the same error. I am thoroughly stumped.

*Edit, forgot to mention that the -lm switch in $lua_params breaks the build returning:

Code:

configure: error: unrecognized option: `-lm''
Try `./configure --help' for more information

*Edit #2, Maybe the -lm switch is why the whole thing is breaking? What library/dependency is that switch trying to access? Perhaps that is the reason I cannot build.

nick_th_fury 06-29-2013 03:26 AM

Quote:

Originally Posted by flyinggeorge (Post 4975020)
I tried the conky i486 package, but it crashes on startup telling me:


I don't see a 64bit package on that site :(

Is there an i486 audacious package, or an option I'm not aware of to run conky without support for libaudcore.so? This seems to have gotten me one step closer though, and for that, I thank you.

The 64bit packages are in a different directory,
http://ponce.cc/slackware/slackware6..._64-1ponce.txz

flyinggeorge 06-29-2013 07:29 AM

Quote:

Originally Posted by nick_th_fury (Post 4980655)
The 64bit packages are in a different directory,
http://ponce.cc/slackware/slackware6..._64-1ponce.txz

I ended up finding this out. Thank you though for making me look a little harder! :P

flyinggeorge 06-30-2013 01:33 PM

Okay, I'm not exactly sure how I managed to fix this, but here is what I did. I abandoned the slackbuild and built conky-1.9 from source. Like this:

Code:

#./configure --enable-imlib2 --enable-lua-cairo
...
#make
...
#make install

Now when I type conky -v I get:

Code:

bash-4.2$ conky -v
Conky 1.9.0 compiled Sun Jun 30 13:36:36 EDT 2013 for Linux 3.2.29 (x86_64)

Compiled in features:

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

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

 Music detection:
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * config-output
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:
  * Cairo
  * Imlib2

And I have successfully installed a cairo/lua theme. Everything works like a charm.

glorsplitz 06-30-2013 02:12 PM

good to hear flyinggeorge, conky -v for shows almost same for me. I included conkyforecast

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

under Music detection: I also have
* Audacious

under General: I also have
* Curl
* RSS
* Weather (METAR)
* Weather (XOAP)
* wireless
* support for IBM/Lenovo notebooks

now I just have to figure out how get out all the bells and whistles pretty.

flyinggeorge 06-30-2013 02:46 PM

1 Attachment(s)
I don't currently use Curl or Audacious and all that other stuff, and wlan0 is the only internet interface I'm using right now, and the graph works perfectly fine. I finally found a theme I was happy with and tweaked it a little to suit my liking. Thank you everyone for trying to help!

The theme I found is just this:

http://harshit1990.deviantart.com/ar...nity-306921086

I adjusted it for my resolution, and changed the backtrack logo to a slackware one. Screenshot attached.


All times are GMT -5. The time now is 07:18 AM.