[patch] Fix build

Richard Hughes hughsient at gmail.com
Wed Jun 13 09:17:32 PDT 2007


When building cvs head into an rpm I get:

/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.. -I.. -I..  -DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=
\""/var/lib/dbus/machine-id"\"    -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wchar-subscripts -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -Wdeclaration-after-statement -fno-common -fPIC -MT
dbus-transport.lo -MD -MP -MF .deps/dbus-transport.Tpo -c -o
dbus-transport.lo dbus-transport.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -DDBUS_COMPILATION
-DDBUS_MACHINE_UUID_FILE=\"/var/lib/dbus/machine-id\" -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wchar-subscripts -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -Wdeclaration-after-statement -fno-common -fPIC -MT
dbus-transport.lo -MD -MP -MF .deps/dbus-transport.Tpo -c
dbus-transport.c  -fPIC -DPIC -o .libs/dbus-transport.o
dbus-transport.c: In function 'auth_via_unix_user_function':
dbus-transport.c:521: error: expected expression before ';' token
make[3]: *** [dbus-transport.lo] Error 1
make[3]: Leaving directory
`/home/hughsie/rpmbuild/BUILD/dbus-1.1.1/dbus'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/hughsie/rpmbuild/BUILD/dbus-1.1.1/dbus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hughsie/rpmbuild/BUILD/dbus-1.1.1'
make: *** [all] Error 2
error: Bad exit status from /home/hughsie/rpmbuild/tmp/rpm-tmp.59013 (%
build)

Trivial patch attached fixes the issue for me.

Thanks,

Richard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-fix-build.patch
Type: text/x-patch
Size: 822 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070613/d3447996/attachment.bin 


More information about the dbus mailing list