Bug 32508 - Can't compile 0.6.11 on slackware64 and slackware, both 13.1
Summary: Can't compile 0.6.11 on slackware64 and slackware, both 13.1
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Richard Hughes
QA Contact:
Depends on:
Reported: 2010-12-19 11:40 UTC by sombriks@gmail.com
Modified: 2012-01-05 11:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Note You need to log in before you can comment on or make changes to this bug.
Description sombriks@gmail.com 2010-12-19 11:40:39 UTC
basically i have glib and gio, but i got the following error:

pk-client-helper.c: In function 'pk_client_helper_start':
pk-client-helper.c:491: warning: implicit declaration of function 'g_unix_socket_address_new_with_type'
make[4]: Saindo do diretório `/home/sombriks/workspace-helios-cpp/PackageKit-0.6.11/lib/packagekit-glib2'
pk-client-helper.c:491: error: 'G_UNIX_SOCKET_ADDRESS_PATH' undeclared (first use in this function)
pk-client-helper.c:491: error: (Each undeclared identifier is reported only once
pk-client-helper.c:491: error: for each function it appears in.)

on slackware it fails to find the headers, but i have them there:

sombriks@cecil:~$ ls /usr/include/glib-2.0/*
/usr/include/glib-2.0/glib-object.h  /usr/include/glib-2.0/glib.h  /usr/include/glib-2.0/gmodule.h

gappinfo.h                gdataoutputstream.h  gfilenamecompleter.h   gioerror.h              gnetworkservice.h           gsocketlistener.h
gasyncinitable.h          gdrive.h             gfileoutputstream.h    giomodule.h             goutputstream.h             gsocketservice.h
gasyncresult.h            gemblem.h            gfilterinputstream.h   gioscheduler.h          gresolver.h                 gsrvtarget.h
gbufferedinputstream.h    gemblemedicon.h      gfilteroutputstream.h  giostream.h             gseekable.h                 gtcpconnection.h
gbufferedoutputstream.h   gfile.h              gicon.h                giotypes.h              gsimpleasyncresult.h        gthemedicon.h
gcancellable.h            gfileattribute.h     ginetaddress.h         gloadableicon.h         gsocket.h                   gthreadedsocketservice.h
gcharsetconverter.h       gfileenumerator.h    ginetsocketaddress.h   gmemoryinputstream.h    gsocketaddress.h            gvfs.h
gcontenttype.h            gfileicon.h          ginitable.h            gmemoryoutputstream.h   gsocketaddressenumerator.h  gvolume.h
gconverter.h              gfileinfo.h          ginputstream.h         gmount.h                gsocketclient.h             gvolumemonitor.h
gconverterinputstream.h   gfileinputstream.h   gio.h                  gmountoperation.h       gsocketconnectable.h        gzlibcompressor.h
gconverteroutputstream.h  gfileiostream.h      gioenums.h             gnativevolumemonitor.h  gsocketconnection.h         gzlibdecompressor.h
gdatainputstream.h        gfilemonitor.h       gioenumtypes.h         gnetworkaddress.h       gsocketcontrolmessage.h

galloca.h      gbitlock.h       gdataset.h    ghook.h       glist.h        gmessages.h  gprintf.h  grel.h       gspawn.h      gthreadpool.h  gutils.h
garray.h       gbookmarkfile.h  gdate.h       ghostutils.h  gmacros.h      gnode.h      gqsort.h   gscanner.h   gstdio.h      gtimer.h       gvariant.h
gasyncqueue.h  gcache.h         gdir.h        gi18n-lib.h   gmain.h        goption.h    gquark.h   gsequence.h  gstrfuncs.h   gtree.h        gvarianttype.h
gatomic.h      gchecksum.h      gerror.h      gi18n.h       gmappedfile.h  gpattern.h   gqueue.h   gshell.h     gstring.h     gtypes.h       gwin32.h
gbacktrace.h   gcompletion.h    gfileutils.h  giochannel.h  gmarkup.h      gpoll.h      grand.h    gslice.h     gtestutils.h  gunicode.h
gbase64.h      gconvert.h       ghash.h       gkeyfile.h    gmem.h         gprimes.h    gregex.h   gslist.h     gthread.h     gurifuncs.h

gboxed.h    genums.h    gobject.h             gparam.h       gsignal.h         gtype.h        gtypeplugin.h  gvaluearray.h      gvaluetypes.h
gclosure.h  gmarshal.h  gobjectnotifyqueue.c  gparamspecs.h  gsourceclosure.h  gtypemodule.h  gvalue.h       gvaluecollector.h

and gio-unix too:

sombriks@cecil:~$ ls /usr/include/gio-unix-2.0/gio/ 
gdesktopappinfo.h       gunixconnection.h  gunixfdmessage.h    gunixmounts.h        gunixsocketaddress.h
gfiledescriptorbased.h  gunixfdlist.h      gunixinputstream.h  gunixoutputstream.h

so, any help to make packagekit find those headers are welcome.
Comment 1 Richard Hughes 2011-01-04 02:20:36 UTC
commit 8b7d7b9452e33c1a2e7f808b1b12e9d9e6c27ab0
Author: Matthias Klumpp <matthias@nlinux.org>
Date:   Sun Dec 19 21:06:37 2010 +0100

    trivial: Make PK compile for GLib 2.24
    Replace g_unix_socket_address_new_with_type with
    g_unix_socket_address_new whereever possible.

:100644 100644 a9f4135... 61cfc83... M  backends/dummy/pk-backend-dummy.c
:100644 100644 4781a90... 38ded98... M  lib/packagekit-glib2/pk-client-helper.c
:100644 100644 f3421ec... 2f77458... M  lib/packagekit-glib2/pk-self-test.c
:100644 100644 c988122... 9ca9b59... M  lib/packagekit-glib2/pk-socket-example.c
Comment 2 sombriks@gmail.com 2011-01-10 16:48:18 UTC
Hello and thanks for the answer, that helped a lot.

now i'm using eclipse (which helped to point the lack of  GObject Introspection package) with linux tools.

the compilation then started to run pretty well but i got a polkit problem now...

on slackware, i have that polkit version:


and have some other packages aswell:


the compilation process quits with error and give me these messages:

/home/sombriks/workspace-helios-cpp/PackageKit-0.6.11/src/pk-transaction.c:5811: undefined reference to `polkit_authority_get_sync'

/home/sombriks/workspace-helios-cpp/PackageKit-0.6.11/src/pk-engine.c:1493: undefined reference to `polkit_authority_get_sync'

the things were going pretty well, any help will be very welcome.
Comment 3 Jean-François Fortin Tam 2012-01-05 11:10:54 UTC
Hi there, this is an old bug report and I presume you found the fix since then... if not, the mailing list would be a better candidate for your question.

bug/show.html.tmpl processed on Mar 29, 2017 at 18:54:34.
(provided by the Example extension).