Bug 83475 - build failure: pk-backend-alpm
Summary: build failure: pk-backend-alpm
Status: NEEDINFO
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-04 05:15 UTC by Mantas Mikulėnas
Modified: 2016-04-26 13:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Mantas Mikulėnas 2014-09-04 05:15:43 UTC
After bug 83474 I tried --disable-connman and got _more_ errors:

Making all in backends
  GEN      .gitignore
Making all in alpm
  CC       libpk_backend_alpm_la-pk-backend-alpm.lo
  CC       libpk_backend_alpm_la-pk-backend-config.lo
  GEN      .gitignore
  CC       libpk_backend_alpm_la-pk-backend-databases.lo
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
In file included from ../../src/pk-backend-spawn.h:26:0,
                 from pk-backend-alpm.c:28:
../../src/pk-backend-job.h:105:9: error: unknown type name 'PkRoleEnum'
         PkRoleEnum  role);
         ^
../../src/pk-backend-job.h:106:1: error: unknown type name 'PkRoleEnum'
 PkRoleEnum  pk_backend_job_get_role  (PkBackendJob *job);
 ^
../../src/pk-backend-job.h:107:1: error: unknown type name 'PkExitEnum'
 PkExitEnum  pk_backend_job_get_exit_code  (PkBackendJob *job);
 ^
../../src/pk-backend-job.h:109:9: error: unknown type name 'PkExitEnum'
         PkExitEnum  exit);
         ^
../../src/pk-backend-job.h:170:9: error: unknown type name 'PkInfoEnum'
         PkInfoEnum  info,
         ^
../../src/pk-backend-job.h:184:9: error: unknown type name 'PkRestartEnum'
         PkRestartEnum  restart,
         ^
../../src/pk-backend-job.h:187:9: error: unknown type name 'PkUpdateStateEnum'
         PkUpdateStateEnum state,
         ^
../../src/pk-backend-job.h:191:9: error: unknown type name 'PkRestartEnum'
         PkRestartEnum  restart,
         ^
../../src/pk-backend-job.h:194:9: error: unknown type name 'PkMessageEnum'
         PkMessageEnum  message,
         ^
../../src/pk-backend-job.h:200:9: error: unknown type name 'PkGroupEnum'
         PkGroupEnum  group,
         ^
../../src/pk-backend-job.h:208:9: error: unknown type name 'PkDistroUpgradeEnum'
         PkDistroUpgradeEnum type,
         ^
../../src/pk-backend-job.h:212:9: error: unknown type name 'PkErrorEnum'
         PkErrorEnum  code,
         ^
../../src/pk-backend-job.h:223:9: error: unknown type name 'PkSigTypeEnum'
         PkSigTypeEnum   type);
         ^
../../src/pk-backend-job.h:230:9: error: unknown type name 'PkMediaTypeEnum'
         PkMediaTypeEnum media_type,
         ^
../../src/pk-backend-job.h:240:9: error: unknown type name 'PkStatusEnum'
         PkStatusEnum  status);
         ^
../../src/pk-backend-job.h:247:9: error: unknown type name 'PkStatusEnum'
         PkStatusEnum  status,
         ^
In file included from pk-backend-alpm.c:28:0:
../../src/pk-backend-spawn.h:68:1: error: unknown type name 'PkBackend'
 PkBackend *pk_backend_spawn_get_backend  (PkBackendSpawn *backend_spawn);
 ^
  GEN      .gitignore
In file included from pk-backend-alpm.c:30:0:
pk-backend-alpm.h:42:7: error: unknown type name 'PkBackendThreadFunc'
       PkBackendThreadFunc func);
       ^
pk-backend-alpm.h:44:8: error: conflicting types for 'pk_backend_cancel'
 void   pk_backend_cancel (PkBackend *self);
        ^
In file included from pk-backend-alpm.h:26:0,
                 from pk-backend-alpm.c:30:
../../src/pk-backend.h:117:8: note: previous declaration of 'pk_backend_cancel' was here
 void   pk_backend_cancel   (PkBackend *backend,
        ^
In file included from pk-backend-config.c:29:0:
pk-backend-alpm.h:42:7: error: unknown type name 'PkBackendThreadFunc'
       PkBackendThreadFunc func);
       ^
pk-backend-alpm.h:44:8: error: conflicting types for 'pk_backend_cancel'
 void   pk_backend_cancel (PkBackend *self);
        ^
In file included from pk-backend-alpm.h:26:0,
                 from pk-backend-config.c:29:
../../src/pk-backend.h:117:8: note: previous declaration of 'pk_backend_cancel' was here
 void   pk_backend_cancel   (PkBackend *backend,
        ^
pk-backend-alpm.c: In function 'pk_backend_configure_environment':
pk-backend-alpm.c:219:2: error: implicit declaration of function 'pk_backend_get_locale' [-Werror=implicit-function-declaration]
  value = pk_backend_get_locale (self);
  ^
pk-backend-alpm.c:219:8: error: assignment makes pointer from integer without a cast [-Werror]
  value = pk_backend_get_locale (self);
        ^
pk-backend-alpm.c:225:2: error: implicit declaration of function 'pk_backend_get_proxy_http' [-Werror=implicit-function-declaration]
  value = pk_backend_get_proxy_http (self);
  ^
pk-backend-alpm.c:225:8: error: assignment makes pointer from integer without a cast [-Werror]
  value = pk_backend_get_proxy_http (self);
        ^
pk-backend-alpm.c:233:2: error: implicit declaration of function 'pk_backend_get_proxy_https' [-Werror=implicit-function-declaration]
  value = pk_backend_get_proxy_https (self);
  ^
pk-backend-alpm.c:233:8: error: assignment makes pointer from integer without a cast [-Werror]
  value = pk_backend_get_proxy_https (self);
        ^
pk-backend-alpm.c:241:2: error: implicit declaration of function 'pk_backend_get_proxy_ftp' [-Werror=implicit-function-declaration]
  value = pk_backend_get_proxy_ftp (self);
  ^
pk-backend-alpm.c:241:8: error: assignment makes pointer from integer without a cast [-Werror]
  value = pk_backend_get_proxy_ftp (self);
        ^
pk-backend-alpm.c:249:2: error: implicit declaration of function 'pk_backend_get_proxy_socks' [-Werror=implicit-function-declaration]
  value = pk_backend_get_proxy_socks (self);
  ^
pk-backend-alpm.c:249:8: error: assignment makes pointer from integer without a cast [-Werror]
  value = pk_backend_get_proxy_socks (self);
        ^
pk-backend-alpm.c:257:2: error: implicit declaration of function 'pk_backend_get_no_proxy' [-Werror=implicit-function-declaration]
  value = pk_backend_get_no_proxy (self);
  ^
pk-backend-alpm.c:257:8: error: assignment makes pointer from integer without a cast [-Werror]
  value = pk_backend_get_no_proxy (self);
        ^
pk-backend-alpm.c:263:2: error: implicit declaration of function 'pk_backend_get_pac' [-Werror=implicit-function-declaration]
  value = pk_backend_get_pac (self);
  ^
pk-backend-alpm.c:263:8: error: assignment makes pointer from integer without a cast [-Werror]
  value = pk_backend_get_pac (self);
        ^
pk-backend-alpm.c: At top level:
pk-backend-alpm.c:363:55: error: unknown type name 'PkBackendThreadFunc'
 pk_backend_run (PkBackend *self, PkStatusEnum status, PkBackendThreadFunc func)
                                                       ^
pk-backend-alpm.c:385:1: error: conflicting types for 'pk_backend_cancel'
 pk_backend_cancel (PkBackend *self)
 ^
In file included from pk-backend-alpm.h:26:0,
                 from pk-backend-alpm.c:30:
../../src/pk-backend.h:117:8: note: previous declaration of 'pk_backend_cancel' was here
 void   pk_backend_cancel   (PkBackend *backend,
        ^
pk-backend-alpm.c: In function 'pk_backend_finish':
pk-backend-alpm.c:422:2: error: passing argument 1 of 'pk_backend_job_set_allow_cancel' from incompatible pointer type [-Werror]
  pk_backend_job_set_allow_cancel (self, FALSE);
  ^
In file included from ../../src/pk-backend-spawn.h:26:0,
                 from pk-backend-alpm.c:28:
../../src/pk-backend-job.h:241:8: note: expected 'struct PkBackendJob *' but argument is of type 'struct PkBackend *'
 void   pk_backend_job_set_allow_cancel (PkBackendJob *job,
        ^
pk-backend-alpm.c:440:3: error: implicit declaration of function 'pk_backend_job_set_status' [-Werror=implicit-function-declaration]
   pk_backend_job_set_status (self, PK_STATUS_ENUM_CANCEL);
   ^
pk-backend-alpm.c:443:2: error: passing argument 1 of 'pk_backend_job_finished' from incompatible pointer type [-Werror]
  pk_backend_job_finished (self);
  ^
In file included from ../../src/pk-backend-spawn.h:26:0,
                 from pk-backend-alpm.c:28:
../../src/pk-backend-job.h:168:8: note: expected 'struct PkBackendJob *' but argument is of type 'struct PkBackend *'
 void   pk_backend_job_finished  (PkBackendJob *job);
        ^
pk-backend-alpm.c: At top level:
pk-backend-alpm.c:448:1: error: no previous declaration for 'pk_backend_transaction_start' [-Werror=missing-declarations]
 pk_backend_transaction_start (PkBackend *self)
 ^
cc1: all warnings being treated as errors
Makefile:652: recipe for target 'libpk_backend_alpm_la-pk-backend-alpm.lo' failed
make[3]: *** [libpk_backend_alpm_la-pk-backend-alpm.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from pk-backend-databases.c:24:0:
pk-backend-alpm.h:42:7: error: unknown type name 'PkBackendThreadFunc'
       PkBackendThreadFunc func);
       ^
pk-backend-alpm.h:44:8: error: conflicting types for 'pk_backend_cancel'
 void   pk_backend_cancel (PkBackend *self);
        ^
In file included from pk-backend-alpm.h:26:0,
                 from pk-backend-databases.c:24:
../../src/pk-backend.h:117:8: note: previous declaration of 'pk_backend_cancel' was here
 void   pk_backend_cancel   (PkBackend *backend,
        ^
pk-backend-databases.c: In function 'pk_backend_repo_info':
pk-backend-databases.c:256:11: error: passing argument 1 of 'pk_backend_job_repo_detail' from incompatible pointer type [-Werror]
  result = pk_backend_job_repo_detail (self, repo, description, enabled);
           ^
In file included from ../../src/pk-backend.h:38:0,
                 from pk-backend-alpm.h:26,
                 from pk-backend-databases.c:24:
../../src/pk-backend-job.h:173:8: note: expected 'struct PkBackendJob *' but argument is of type 'struct PkBackend *'
 void   pk_backend_job_repo_detail  (PkBackendJob *job,
        ^
pk-backend-databases.c:256:9: error: void value not ignored as it ought to be
  result = pk_backend_job_repo_detail (self, repo, description, enabled);
         ^
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from pk-backend-alpm.h:25,
                 from pk-backend-databases.c:24:
pk-backend-databases.c: In function 'pk_backend_get_repo_list_thread':
pk-backend-databases.c:270:24: error: 'self' undeclared (first use in this function)
  g_return_val_if_fail (self != NULL, FALSE);
                        ^
/usr/include/glib-2.0/glib/gmacros.h:309:8: note: in definition of macro '_G_BOOLEAN_EXPR'
    if (expr)                                    \
        ^
/usr/include/glib-2.0/glib/gmessages.h:377:9: note: in expansion of macro 'G_LIKELY'
      if G_LIKELY(expr) { } else      \
         ^
pk-backend-databases.c:270:24: note: each undeclared identifier is reported only once for each function it appears in
  g_return_val_if_fail (self != NULL, FALSE);
                        ^
/usr/include/glib-2.0/glib/gmacros.h:309:8: note: in definition of macro '_G_BOOLEAN_EXPR'
    if (expr)                                    \
        ^
/usr/include/glib-2.0/glib/gmessages.h:377:9: note: in expansion of macro 'G_LIKELY'
      if G_LIKELY(expr) { } else      \
         ^
pk-backend-databases.c: At top level:
pk-backend-databases.c:303:1: error: conflicting types for 'pk_backend_get_repo_list'
 pk_backend_get_repo_list (PkBackend *self, PkBitfield filters)
 ^
In file included from pk-backend-alpm.h:26:0,
                 from pk-backend-databases.c:24:
../../src/pk-backend.h:195:8: note: previous declaration of 'pk_backend_get_repo_list' was here
 void   pk_backend_get_repo_list  (PkBackend *backend,
        ^
pk-backend-databases.c: In function 'pk_backend_get_repo_list':
pk-backend-databases.c:307:2: error: implicit declaration of function 'pk_backend_run' [-Werror=implicit-function-declaration]
  pk_backend_run (self, PK_STATUS_ENUM_QUERY,
  ^
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from pk-backend-alpm.h:25,
                 from pk-backend-databases.c:24:
pk-backend-databases.c: In function 'pk_backend_repo_enable_thread':
pk-backend-databases.c:319:24: error: 'self' undeclared (first use in this function)
  g_return_val_if_fail (self != NULL, FALSE);
                        ^
/usr/include/glib-2.0/glib/gmacros.h:309:8: note: in definition of macro '_G_BOOLEAN_EXPR'
    if (expr)                                    \
        ^
/usr/include/glib-2.0/glib/gmessages.h:377:9: note: in expansion of macro 'G_LIKELY'
      if G_LIKELY(expr) { } else      \
         ^
pk-backend-databases.c:322:2: error: implicit declaration of function 'pk_backend_get_string' [-Werror=implicit-function-declaration]
  repo = pk_backend_get_string (self, "repo_id");
  ^
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from pk-backend-alpm.h:25,
                 from pk-backend-databases.c:24:
pk-backend-databases.c: In function 'pk_backend_repo_disable_thread':
pk-backend-databases.c:354:20: error: 'self' undeclared (first use in this function)
  g_return_if_fail (self != NULL);
                    ^
/usr/include/glib-2.0/glib/gmacros.h:309:8: note: in definition of macro '_G_BOOLEAN_EXPR'
    if (expr)                                    \
        ^
/usr/include/glib-2.0/glib/gmessages.h:368:9: note: in expansion of macro 'G_LIKELY'
      if G_LIKELY(expr) { } else            \
         ^
pk-backend-databases.c: At top level:
pk-backend-databases.c:395:1: error: conflicting types for 'pk_backend_repo_enable'
 pk_backend_repo_enable (PkBackend *self, const gchar *repo_id, gboolean enabled)
 ^
In file included from pk-backend-alpm.h:26:0,
                 from pk-backend-databases.c:24:
../../src/pk-backend.h:198:8: note: previous declaration of 'pk_backend_repo_enable' was here
 void   pk_backend_repo_enable   (PkBackend *backend,
        ^
pk-backend-databases.c: In function 'pk_backend_repo_enable':
pk-backend-databases.c:400:2: error: passing argument 1 of 'pk_backend_job_set_status' from incompatible pointer type [-Werror]
  pk_backend_job_set_status (self, PK_STATUS_ENUM_QUERY);
  ^
In file included from ../../src/pk-backend.h:38:0,
                 from pk-backend-alpm.h:26,
                 from pk-backend-databases.c:24:
../../src/pk-backend-job.h:239:8: note: expected 'struct PkBackendJob *' but argument is of type 'struct PkBackend *'
 void   pk_backend_job_set_status  (PkBackendJob *job,
        ^
pk-backend-databases.c:403:3: error: passing argument 1 of 'pk_backend_job_thread_create' from incompatible pointer type [-Werror]
   pk_backend_job_thread_create (self,
   ^
In file included from ../../src/pk-backend.h:38:0,
                 from pk-backend-alpm.h:26,
                 from pk-backend-databases.c:24:
../../src/pk-backend-job.h:162:11: note: expected 'struct PkBackendJob *' but argument is of type 'struct PkBackend *'
 gboolean  pk_backend_job_thread_create  (PkBackendJob *job,
           ^
pk-backend-databases.c:407:3: error: passing argument 1 of 'pk_backend_job_thread_create' from incompatible pointer type [-Werror]
   pk_backend_job_thread_create (self,
   ^
In file included from ../../src/pk-backend.h:38:0,
                 from pk-backend-alpm.h:26,
                 from pk-backend-databases.c:24:
../../src/pk-backend-job.h:162:11: note: expected 'struct PkBackendJob *' but argument is of type 'struct PkBackend *'
 gboolean  pk_backend_job_thread_create  (PkBackendJob *job,
           ^
Makefile:659: recipe for target 'libpk_backend_alpm_la-pk-backend-config.lo' failed
make[3]: *** [libpk_backend_alpm_la-pk-backend-config.lo] Error 1
  GEN      .gitignore
cc1: all warnings being treated as errors
Makefile:666: recipe for target 'libpk_backend_alpm_la-pk-backend-databases.lo' failed
make[3]: *** [libpk_backend_alpm_la-pk-backend-databases.lo] Error 1
Makefile:514: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: *** Waiting for unfinished jobs....
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
  GEN      .gitignore
Makefile:603: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:534: recipe for target 'all' failed
make: *** [all] Error 2


packagekit @ 6125d30
pacman (libalpm) 4.1.2
Comment 1 Richard Hughes 2014-09-04 19:01:13 UTC
The alpm code until recently had no maintainer; Fabien Bourigault has not stepped up to the mark and is going to fix things really soon. If you can direct me to a virtual machine image of arch I'd be happy to fix things up as best I can.
Comment 2 Andrea Scarpino 2016-04-26 13:25:44 UTC
Since Arch Linux builds PackageKit without any patch[1], I suppose this is fixed?

[1] https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/packagekit


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.