You are not logged in.

#1 2006-06-10 19:12:26

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Synce

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

#2 2006-06-10 21:22:47

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Synce

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

#3 2006-06-11 16:19:23

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Synce

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

#4 2006-06-11 20:52:04

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Synce

the sed line has wrong path. Use this one:

 sed -i 's/-Werror//' $startdir/src/$pkgname-$pkgver/lib/Makefile

Offline

#5 2006-06-12 06:09:23

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Synce

:oops:  lol .... thanks man  8)


Mr Green

Offline

Board footer

Powered by FluxBB