You are not logged in.
Pages: 1
Hi,
everytime i try to build ratpoison i get the following error:
history.c:78: error: static declaration of 'getline' follows non-static declaration
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
make[2]: *** [history.o] Error 1
make[2]: Leaving directory `/home/sveri/abs/ratpoison/src/ratpoison-1.4.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sveri/abs/ratpoison/src/ratpoison-1.4.4/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
Aborting...
After asking in #ratpoison they hinted me that the HAVE_GETLINE
macro is lacking in config.h.
This happens whith the git version in aur and when i try to compile
the 1.4.4 by hand.
I know i can solve it by adding the macro with my hand, but that
would mean others could stumble upon it too.
Should i report a bug?
Offline
My ratpoison-git PKGBUILD is slightly different, but builds without issues for me. You could try it. It's based off of the 1.4.3 PKGBUILD but pulls the source from GIT. Also the "--with-xft" configure option is unnecessary since it will use xft by default. The option would be to build wihout it, "--without-xft". To my knowlege some fonts still don't work well with this feature enabled. See this thread http://bbs.archlinux.org/viewtopic.php? … 15#p559715 for details.
pkgname=ratpoison
pkgver=20090528
pkgrel=1
pkgdesc="A simple keystroke-driven window manager"
arch=(i686 x86_64)
license=('GPL')
depends=('libxinerama' 'readline' 'bash' 'perl' 'libxtst')
url="http://www.nongnu.org/ratpoison/"
source=($pkgname.desktop)
md5sums=('29c3cb9be59758e39d8471391231a74a')
_gitroot="git://git.savannah.nongnu.org/ratpoison.git"
_gitname="ratpoison"
build() {
msg "Connecting to git.savannah.nongnu.org...."
if [[ -d $_gitname ]] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf $srcdir/$_gitname-build
cd $srcdir/$_gitname
find . -exec touch \{\} \; # fix timestamp issue
/bin/mkdir -p $startdir/pkg/etc/X11/sessions
./autogen.sh
./configure --prefix=/usr
/usr/bin/make || return 1
pushd contrib
./genrpbindings || return 1
install -d $startdir/pkg/usr/share/ratpoison/bindings
install -m 644 {Ratpoison.pm,ratpoison-cmd.el,ratpoison.rb,ratpoison.lisp,ratpoison.py} \
$startdir/pkg/usr/share/ratpoison/bindings/ || return 1
popd
/usr/bin/make DESTDIR=$startdir/pkg install
# fix permissions
chmod a+x $startdir/pkg/usr/share/ratpoison/{allwindows.sh,clickframe.pl,rpshowall.sh,rpws,split.sh}
/bin/cp $startdir/src/$pkgname.desktop $startdir/pkg/etc/X11/sessions
rm ${pkgdir}/usr/share/info/dir
}
# vim: ts=2 sw=2 et ft=sh
Note at the time of this post, Savannah is recovering from a crash and GIT is currently unavailable.
Offline
This problem persists and it is unclear if it is a bug with glibc or with ratpoison. I would think that a patch should be created for ratpoison as the compile error is probably by design. Anyone have any ideas for this? The 1.4.3 version of ratpoison is unaffected, but 1.4.4 and git both suffer from this.
Wra!th have you run into this issue? I know you were playing with the git version for a while.
[UPDATE]
The upgrade to readline 6.0 prevents ratpoison packages built against readline 5.x from from loading properly. This is because ratpoison is looking for libhistory.so.5 which is provided by readline-5.2. See the bug report here: http://bugs.archlinux.org/task/15182
[UPDATE]
See the post here: http://bugs.archlinux.org/task/14868?string=ratpoison
Looks like it's an upstream bug.
Last edited by derelict (2009-07-02 18:56:23)
Offline
Hooray! ratposion-git PKGBUILD works again. See the patch upstream here: http://git.savannah.gnu.org/cgit/ratpoison.git
A check for getline has been added to configure.in and manually adding it is no longer needed.
Offline
Pages: 1