Date: Thu, 24 Jul 2008 20:56:18 +1200 From: Christopher Gregory <cjg@pc-tech-support.com> To: andy.lavr@gmail.com Cc: gnome@FreeBSD.org Subject: Re: Error compile policykit-0.9 (FreeBSD 7-STABLE) Message-ID: <1216889778.30829.3.camel@localhost> In-Reply-To: <48882EB3.5010609@reactor-xg.kiev.ua> References: <48882EB3.5010609@reactor-xg.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1216889778.30829.3.camel>