From owner-freebsd-gnome@FreeBSD.ORG Thu Jul 24 09:43:24 2008 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F108C106564A for ; Thu, 24 Jul 2008 09:43:24 +0000 (UTC) (envelope-from cjg@pc-tech-support.com) Received: from neptune.lunarpages.com (neptune.lunarpages.com [209.200.229.120]) by mx1.freebsd.org (Postfix) with ESMTP id B443F8FC15 for ; Thu, 24 Jul 2008 09:43:24 +0000 (UTC) (envelope-from cjg@pc-tech-support.com) Received: from 118-93-59-84.dsl.dyn.ihug.co.nz ([118.93.59.84] helo=[192.168.1.4]) by neptune.lunarpages.com with esmtpa (Exim 4.68) (envelope-from ) id 1KLwcb-000068-B1; Thu, 24 Jul 2008 01:56:25 -0700 From: Christopher Gregory To: andy.lavr@gmail.com In-Reply-To: <48882EB3.5010609@reactor-xg.kiev.ua> References: <48882EB3.5010609@reactor-xg.kiev.ua> Content-Type: text/plain; charset=koi8-r Date: Thu, 24 Jul 2008 20:56:18 +1200 Message-Id: <1216889778.30829.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - neptune.lunarpages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pc-tech-support.com X-Source: X-Source-Args: X-Source-Dir: Cc: gnome@FreeBSD.org Subject: Re: Error compile policykit-0.9 (FreeBSD 7-STABLE) X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cjg@pc-tech-support.com List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2008 09:43:25 -0000 Hello everyone, I was also getting this error when trying to compile PolicyKit, but resolved it by going to: /usr/ports/sysutils/policykit/work/PolicyKit-0.9/src/kit and in that directory is a file called=20 kit-string.c.orig I renamed that file to: kit-string.c and it recompiled and installed without any errors. Now I do not know if this undoes any critical security updates to the file, but it is at least a starting point for the developers. I am not a C programmer. Regards, Christopher. On Thu, 2008-07-24 at 10:26 +0300, Andrei V. Lavreniyuk wrote: > Hi! >=20 > ------------------- >=20 > # make > =3D=3D=3D> Building for policykit-0.9 > gmake all-recursive > gmake[1]: Entering directory=20 > `/usr/ports/sysutils/policykit/work/PolicyKit-0.9' > Making all in data > gmake[2]: Entering directory=20 > `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/data' > gmake[2]: =E3=C5=CC=D8 `all' =CE=C5 =D4=D2=C5=C2=D5=C5=D4 =D7=D9=D0=CF=CC= =CE=C5=CE=C9=D1 =CB=CF=CD=C1=CE=C4. > gmake[2]: Leaving directory=20 > `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/data' > Making all in src > gmake[2]: Entering directory=20 > `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/src' > Making all in kit > gmake[3]: Entering directory=20 > `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/src/kit' > /bin/sh ../../libtool --tag=3DCC --mode=3Dcompile cc -DHAVE_CONFIG_H -I= .=20 > -I../.. -I../../src -I../../src=20 > -DPACKAGE_LIBEXEC_DIR=3D\""/usr/local/libexec"\"=20 > -DPACKAGE_SYSCONF_DIR=3D\""/usr/local/etc"\"=20 > -DPACKAGE_DATA_DIR=3D\""/usr/local/share"\"=20 > -DPACKAGE_BIN_DIR=3D\""/usr/local/bin"\"=20 > -DPACKAGE_LOCALSTATE_DIR=3D\""/var"\"=20 > -DPACKAGE_LOCALE_DIR=3D\""/usr/local/share/locale"\"=20 > -DPACKAGE_LIB_DIR=3D\""/usr/local/lib"\" -D_POSIX_PTHREAD_SEMANTICS=20 > -D_REENTRANT -DKIT_COMPILATION -I/usr/local/include/glib-2.0=20 > -I/usr/local/lib/glib-2.0/include -I/usr/local/include -O2=20 > -fno-strict-aliasing -pipe -O2 -pipe -march=3Dnative -mtune=3Dnative -mmm= x=20 > -msse2 -msse3 -fno-strict-aliasing -Wformat -Wformat-security -s=20 > -march=3Dprescott -fstack-protector -Wall -Wchar-subscripts=20 > -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align=20 > -Wsign-compare -MT kit-string.lo -MD -MP -MF .deps/kit-string.Tpo -c -o=20 > kit-string.lo kit-string.c > cc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src=20 > -DPACKAGE_LIBEXEC_DIR=3D\"/usr/local/libexec\"=20 > -DPACKAGE_SYSCONF_DIR=3D\"/usr/local/etc\"=20 > -DPACKAGE_DATA_DIR=3D\"/usr/local/share\"=20 > -DPACKAGE_BIN_DIR=3D\"/usr/local/bin\" -DPACKAGE_LOCALSTATE_DIR=3D\"/var\= "=20 > -DPACKAGE_LOCALE_DIR=3D\"/usr/local/share/locale\"=20 > -DPACKAGE_LIB_DIR=3D\"/usr/local/lib\" -D_POSIX_PTHREAD_SEMANTICS=20 > -D_REENTRANT -DKIT_COMPILATION -I/usr/local/include/glib-2.0=20 > -I/usr/local/lib/glib-2.0/include -I/usr/local/include -O2=20 > -fno-strict-aliasing -pipe -O2 -pipe -march=3Dnative -mtune=3Dnative -mmm= x=20 > -msse2 -msse3 -fno-strict-aliasing -Wformat -Wformat-security -s=20 > -march=3Dprescott -fstack-protector -Wall -Wchar-subscripts=20 > -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align=20 > -Wsign-compare -MT kit-string.lo -MD -MP -MF .deps/kit-string.Tpo -c=20 > kit-string.c -fPIC -DPIC -o .libs/kit-string.o > kit-string.c:141: error: redefinition of 'strndup' > kit-string.c:119: error: previous definition of 'strndup' was here > gmake[3]: *** [kit-string.lo] =EF=DB=C9=C2=CB=C1 1 > gmake[3]: Leaving directory=20 > `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/src/kit' > gmake[2]: *** [all-recursive] =EF=DB=C9=C2=CB=C1 1 > gmake[2]: Leaving directory=20 > `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/src' > gmake[1]: *** [all-recursive] =EF=DB=C9=C2=CB=C1 1 > gmake[1]: Leaving directory=20 > `/usr/ports/sysutils/policykit/work/PolicyKit-0.9' > gmake: *** [all] =EF=DB=C9=C2=CB=C1 2 > *** Error code 2 >=20 > Stop in /usr/ports/sysutils/policykit. >=20 >=20 >=20 > ------------------- >=20 >=20