You are not logged in.
Pages: 1
Hi ... trying to build synce from AUR ...
only one breaking is synce-rra
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -Wsign-compare -Wno-long-long -Werror -ansi -march=i686 -O2 -pipe -I.. -march=i686 -O2 -pipe -MT common_handlers.lo -MD -MP -MF .deps/common_handlers.Tpo -c common_handlers.c -fPIC -DPIC -o .libs/common_handlers.o
cc1: warnings being treated as errors
common_handlers.c: In function 'on_mdir_line_description':
common_handlers.c:206: warning: pointer targets in passing argument 3 of 'parser_add_blob' differ in signedness
make[2]: *** [common_handlers.lo] Error 1
==> ERROR: Build Failed. Aborting...
Any idea whats wrong (or missing!) ?
Mr Green
Offline
Patch the Makefile to remove the -Werror option:
sed -i 's/-Werror//' path/to/Makefile
It will continue the compilation even if there are warnings.
And moved to 'Making Packages'.
Offline
thank you ;-)
But it still does not build .....pkgbuild looks like this
# Contributor: SmackleFunky <smacklefunky>
pkgname=synce-rra
pkgver=0.9.1
pkgrel=1
pkgdesc="provide a means of communication with a Windows CE device - rra librari
es for synce"
url="http://synce.sourceforge.net/"
license=""
depends=(glibc synce-librapi2)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=($pkgname-$pkgver.tar.gz)
md5sums=('72742f93f19d5727159989ec80a725f0')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
sed -i 's/-Werror//' $startdir/src/$pkgname-$pkgver/Makefile
make || return 1
make DESTDIR=$startdir/pkg install
}
Mr Green
Offline
the sed line has wrong path. Use this one:
sed -i 's/-Werror//' $startdir/src/$pkgname-$pkgver/lib/Makefile
Offline
:oops: lol .... thanks man 8)
Mr Green
Offline
Pages: 1