Bug 36710 - build fails : g-ir-scanner cannot locate 'polkit.h'
Summary: build fails : g-ir-scanner cannot locate 'polkit.h'
Status: RESOLVED WORKSFORME
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: libpolkit (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-30 06:54 UTC by Jason Vas Dias
Modified: 2011-08-01 07:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jason Vas Dias 2011-04-30 06:54:50 UTC
Hi - thanks for polkit ! but now the build is failing with latest GIT - 
just thought I should let you know :

Having checked out from GIT and built and installed  the latest versions
of Xorg + glib + gtk3 + gtk2 + cairo + freetype2 + fontconfig and ALL
dependencies with my newly-build GCC-4.6.0 and binutils 2.21.51.20110407 ,
including gobject-introspection just built and installed from GIT , 
under Linux 2.6.38 / glibc 2.13 on an AMD x86_64 (32-bit versions 
of all libraries also installed), building PolicyKit fails :

I do :

$ cd /usr/src
$ git clone git://anongit.freedesktop.org/PolicyKit
$ cd PolicyKit
$ ./autogen.sh --prefix=/usr --libdir=/usr/lib64 --enable-shared --with-pic &&
  make clean distclean &&
  cd /tmp && mkdir PolicyKit && cd PolicyKit &&
  /usr/src/PolicyKit/configure --prefix=/usr \
  --libdir=/usr/lib64 --enable-shared --with-pic &&
  make -j2
...
  CC       libpolkit_gobject_1_la-polkitpermission.lo                                                                                                                 
  CCLD     libpolkit-gobject-1.la                                                                                                                                     
/usr/bin/g-ir-scanner -v                                \                                                                                                             
        --warn-all                                      \                                                                                                             
        --namespace Polkit                              \
        --nsversion=1.0                                 \
        --include=Gio-2.0                               \
        --library=polkit-gobject-1                      \
        --output Polkit-1.0.gir                                         \
        --pkg=glib-2.0                                  \
        --pkg=gobject-2.0                               \
        --pkg=gio-2.0                                   \
        --libtool=../../libtool         \
        --c-include='polkit/polkit.h'                   \
                -I/usr/src/PolicyKit/src                                \
        -D_POLKIT_COMPILATION                           \
        polkitenumtypes.c               polkitenumtypes.h  polkit.h polkitactiondescription.c           polkitactiondescription.h polkitauthorityfeatures.h          polkitauthorityfeatures.c polkitdetails.c                                polkitdetails.h polkitauthority.c                       polkitauthority.h polkiterror.c      polkiterror.h polkitsubject.c                            polkitsubject.h polkitunixprocess.c                     polkitunixprocess.h polkitunixsession.c              polkitunixsession.h polkitsystembusname.c                        polkitsystembusname.h polkitidentity.c                  polkitidentity.h polkitunixuser.c            polkitunixuser.h polkitunixgroup.c                       polkitunixgroup.h polkitauthorizationresult.c           polkitauthorizationresult.h polkitcheckauthorizationflags.c           polkitcheckauthorizationflags.h polkitimplicitauthorization.c           polkitimplicitauthorization.h polkittemporaryauthorization.c            polkittemporaryauthorization.h polkitpermission.c                     polkitpermission.h              \

ERROR: polkit.h: no such a file or directory
make[4]: *** [Polkit-1.0.gir] Error 1
make[4]: Leaving directory `/tmp/src/polkit'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/src/polkit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp'
make: *** [all] Error 2


How did make end up in /tmp/src ??
Comment 1 Jason Vas Dias 2011-04-30 07:03:30 UTC
Oops, sorry - didn't realize: you don't support building when $OBJDIR != $SRCDIR !

And I had missed out the step 'cd PolicyKit', so was building in /tmp .

Sorry !

#1 on my PolKit wish-list : please build when $OBJDIR != $SRCDIR !!
Comment 2 David Zeuthen (not reading bugmail) 2011-08-01 07:01:58 UTC
OK, closing then


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.