LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-01-2010, 04:16 PM   #1
agi93
Member
 
Registered: Jan 2010
Posts: 101

Rep: Reputation: 17
Conky SlackBuild fails


I am trying to build conky from SlackBuilds.org using sbopkg, but the build fails every single time. It may be worth noting that I am trying to build with extra options, namely --disable-x11 --disable-xdamage --disable-own-window --disable-xft. This is so I can have a cli-only conky that I can pipe to my status bar. This has worked in the past, but now the build is failing with a seemingly unrelated error. It states:

Code:
conky.c: In function 'generate_text_internal':
conky.c:2143: error: 'OBJ_audacious_bar' undeclared (first use in this function)
conky.c:2143: error: (Each undeclared identifier is reported only once
conky.c:2143: error: for each function it appears in.)
make[2]: *** [conky-conky.o] Error 1
make[2]: Leaving directory `/tmp/SBo/conky-1.8.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/SBo/conky-1.8.0/src'
make: *** [all-recursive] Error 1
at the end of the build. I tried removing the option --enable-audacious, but that only resulted in an error which complained that yet another option (--enable-rss=yes) was a "Command not found". This continues as I remove options. I would like to keep many of those options active as I have a need for certain features.

This is a copy of the SlackBuild being used:

Code:
#!/bin/sh

# Slackware build script for conky

# Written by M.Dinslage  contact: daedra1980@gmail.com

PRGNAM=conky
VERSION=1.8.0
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LBIDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LBIDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LBIDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

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

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
patch -p1 < $CWD/audacious-2.3-fix.txt
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LBIDIRSUFFIX} \
  --sysconfdir=/etc \
  --mandir=/usr/man \
  --enable-shared=yes \
  --enable-static=no \
  --enable-weather-xoap \
  --enable-audacious \
  --enable-mpd=yes \
  --enable-rss=yes \
  --enable-wlan=yes \
  --disable-x11 \
  --disable-xft \
  --disable-xdamage \
  --disable-own-window \
  $lua \
  --build=$ARCH-slackware-linux \
  --host=$ARCH-slackware-linux

make
make install-strip DESTDIR=$PKG

find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ;
  rm $i ; done

# Move existing config file
mv $PKG/etc/conky/conky.conf $PKG/etc/conky/conky.conf.new

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
  doc/*.html extras/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
Notice the --disable-* options I have added.

I have a full install of Slackware64 v13.1, so audacious is installed. I don't know what else could be going wrong, and I don't know why this worked in the past.

Thanks in advance.
 
Old 07-01-2010, 04:56 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,220

Rep: Reputation: 177Reputation: 177
I just tried it using your custom options and it also failed with the same error. I just removed the --enable-audacious line and then ran the script like so

LUA=no ./conky.SlackBuild

then it built just fine. So give that a try and see what happens
 
Old 07-01-2010, 05:22 PM   #3
rmjohnso
Member
 
Registered: Mar 2006
Location: Wisconsin
Distribution: Slackware64-Current
Posts: 294

Rep: Reputation: 43
I use the slackbuild over at slackbuilds.org, and I have the same issue. Using that slackbuild, I have to set --disable-audacious to get conky to compile.

There also seems to be a bug in conky related to the monitoring of wireless connections that results in segfaults. There are a few bugs already reported to the developers, but I haven't seen a patch or an official release fixing it yet. I guess I could always go and build from the latest source checkout.
 
Old 07-01-2010, 06:04 PM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,220

Rep: Reputation: 177Reputation: 177
Hmm, thats odd, I only had to disable audacious if I used agi93's options. Otherwise just building with the audacious patch works fine. I actually maintain the build over at SBo and I try to keep up with the changes in SVN. I'm still waiting for them to fix the disappearing problem in KDE.
 
Old 07-02-2010, 11:08 AM   #5
agi93
Member
 
Registered: Jan 2010
Posts: 101

Original Poster
Rep: Reputation: 17
Well, once I start building with my custom options and with --enable-audacious commented out, I get another error:

Code:
conky.SlackBuild.build: line 75: --enable-mpd=yes: command not found
If I comment out the mpd line, I get a similar error for yet another option. What could be going wrong?
 
Old 07-02-2010, 12:36 PM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Code:
--enable-weather-xoap \
--enable-audacious \
--enable-mpd=yes \
This is one command line due to the escaped newlines (the terminal backslashes). If you comment the middle line, it effectively ends the first command, making '--enable-mpd=yes' the command word of a second command. You have to remove the audacious 'text line' from the shell 'command line'. You can move it to the end and then comment it out if you want to keep it around but not have it execute if you don't want to delete it entirely.
 
Old 07-02-2010, 05:21 PM   #7
agi93
Member
 
Registered: Jan 2010
Posts: 101

Original Poster
Rep: Reputation: 17
Yes! It worked! I didn't even have to use LUA=no since I had lua and tolua++ installed. What slackmagik just posted was the problem; I deleted the --enable-audacious line completely, used my custom options to disable X, and the build worked perfectly. Now someone needs to figure out why audacious support doesn't work in the conky build even when audacious is installed. Perhaps future versions of the slackbuild should just omit that line altogether.

Thanks everyone!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lmms slackbuild fails with -current the_penguinator Slackware 3 02-03-2010 09:24 AM
ffmpeg Slackbuild fails in current multilib damgar Slackware 4 01-09-2010 09:12 PM
Slackbuild of Scilab 5.1 fails under Slackware64 13... is this reproducible...?? Alexvader Slackware 21 11-29-2009 02:29 PM
wmii slackbuild fails... What can I do...? Alexvader Slackware 3 11-02-2009 09:59 AM
conky slackbuild errors ... chexmix Slackware 3 01-27-2009 07:52 PM


All times are GMT -5. The time now is 01:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration