[packagekit] Makefile woes

Ken VanDine ken at vandine.org
Sun Sep 2 07:08:39 PDT 2007


I am surprised you aren't seeing this with your rpm builds...


gcc -O2 -march=i686 -g -g -o pk-application pk-application-main.o
pk-application.o pk-common.o -pthread  -ldbus-glib-1 -lgthread-2.0
-lrt -lglade-2.0 -lxml2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lm
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz
-lfontconfig -lexpat -lpng12 -lXrender -lX11 -lpthread -lpackagekit
-ldbus-1
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -pthread -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/libglade-2.0
-I/usr/include/gtk-2.0 -I/usr/include/libxml2
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/gtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0   -I/usr/include/packagekit
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DBINDIR=\"/usr/bin\" -DDATADIR=\"/usr/share\" -DPREFIX=\""/usr"\"
-DSYSCONFDIR=\""/etc"\" -DLIBDIR=\""/usr/lib"\" -DVERSION="\"0.0.1\""
-DPK_DATA=\"/usr/share/gnome-packagekit\" -I../libpackagekit   -Werror
-Wcast-align -Wno-uninitialized -Wall -g -fexceptions  -O2 -march=i686
-g -MT pk-update-icon.o -MD -MP -MF ".deps/pk-update-icon.Tpo" -c -o
pk-update-icon.o pk-update-icon.c; \
        then mv -f ".deps/pk-update-icon.Tpo"
".deps/pk-update-icon.Po"; else rm -f ".deps/pk-update-icon.Tpo"; exit
1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -pthread -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/libglade-2.0
-I/usr/include/gtk-2.0 -I/usr/include/libxml2
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/gtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0   -I/usr/include/packagekit
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DBINDIR=\"/usr/bin\" -DDATADIR=\"/usr/share\" -DPREFIX=\""/usr"\"
-DSYSCONFDIR=\""/etc"\" -DLIBDIR=\""/usr/lib"\" -DVERSION="\"0.0.1\""
-DPK_DATA=\"/usr/share/gnome-packagekit\" -I../libpackagekit   -Werror
-Wcast-align -Wno-uninitialized -Wall -g -fexceptions  -O2 -march=i686
-g -MT pk-notify.o -MD -MP -MF ".deps/pk-notify.Tpo" -c -o pk-notify.o
pk-notify.c; \
        then mv -f ".deps/pk-notify.Tpo" ".deps/pk-notify.Po"; else rm
-f ".deps/pk-notify.Tpo"; exit 1; fi
In file included from pk-notify.c:44:
/usr/include/packagekit/pk-task-common.h:26:21: pk-task.h: No such
file or directory
In file included from pk-notify.c:44:
/usr/include/packagekit/pk-task-common.h:30: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:31: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:33: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:35: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:37: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:39: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:40: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:42: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:46: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:49: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:54: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:57: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:58: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:60: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:63: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:64: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:66: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:68: error: parse error before '*' token
/usr/include/packagekit/pk-task-common.h:70: error: parse error before '*' token
make[2]: *** [pk-notify.o] Error 1
make[2]: Leaving directory
`/home/ken/conary/build/gnome-packagekit/gnome-packagekit-0.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/ken/conary/build/gnome-packagekit/gnome-packagekit-0.0.1'
make: *** [all] Error 2
error: Shell command "cd
'/home/ken/conary/build/gnome-packagekit/gnome-packagekit-0.0.1/';
CFLAGS="-O2 -march=i686 -g" CXXFLAGS="-O2 -march=i686 -g " CPPFLAGS=""
CLASSPATH=""  LDFLAGS="-g" CC=gcc CXX=g++  make    " exited with exit
code 2
/usr/lib/python2.4/site-packages/conary/build/packagerecipe.py:1012:
RuntimeError: Shell command "cd
'/home/ken/conary/build/gnome-packagekit/gnome-packagekit-0.0.1/';
CFLAGS="-O2 -march=i686 -g" CXXFLAGS="-O2 -march=i686 -g " CPPFLAGS=""
CLASSPATH=""  LDFLAGS="-g" CC=gcc CXX=g++  make    " exited with exit
code 2


On 9/2/07, Richard Hughes <hughsient at gmail.com> wrote:
> On 02/09/07, Ken VanDine <ken at vandine.org> wrote:
> > Well, no... gnome-packagekit won't build without
> > /usr/includes/packagekit/pk-{task,spawn}.h.
> >
> > Nothing in gnome-packagekit includes either of them, but they are
> > included from other files in PackageKit.  So gnome-packagekit fails to
> > build.
>
> Could you attach the error please:
>
> [hughsie at hughsie-laptop libpackagekit]$ egrep -ir "spawn" *
> [hughsie at hughsie-laptop libpackagekit]$
>
> There shoud be no way the spawn or internal task implimentation gets
> exported, and gnome-packagekit shouldn't use them.
>
> Thanks,
>
> Richard,
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>


-- 
Ken VanDine
http://ken.vandine.org



More information about the PackageKit mailing list