[Pkg-utopia-maintainers] Bug#749387: modemmanager: Multiple and conflicting definitions of mm_manager_new

Michael Tautschnig mt at debian.org
Mon May 26 17:49:50 UTC 2014


Package: modemmanager
Version: 1.0.0-4
Usertags: goto-cc

During a rebuild of all packages in a clean sid chroot (and cowbuilder+pbuilder)
the build failed with the following error. Please note that we use our research
compiler tool-chain (using tools from the cbmc package), which permits extended
reporting on type inconsistencies at link time.

[...]
  CCLD     ModemManager

error: conflicting function declarations "mm_manager_new"
old definition in module main file mm-manager.h line 48
MMManager * (struct _GDBusConnection *connection, struct _GError **error)
new definition in module mm-manager file mm-manager.c line 164
void (struct _GDBusConnection *connection, int flags, struct _GCancellable *cancellable, void (*callback)(struct _GObject *source_object, struct _GAsyncResult *res, void *user_data), void *user_data)
Makefile:812: recipe for target 'ModemManager' failed
make[4]: *** [ModemManager] Error 64
make[4]: Leaving directory '/srv/jenkins-slave/workspace/sid-goto-cc-modemmanager/modemmanager-1.0.0/src'
Makefile:1637: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1

It seems the declaration (being seen by main) refers to a different definition.
Compare these two definition of mm_manager_new, both of which will be seen by
the linker it seems:

http://sources.debian.net/src/modemmanager/1.0.0-4/src/mm-manager.c?hl=679#L679
http://sources.debian.net/src/modemmanager/1.0.0-4/libmm-glib/mm-manager.c?hl=146#L146

As the linker does bother about types, it is going to choose whichever it sees
first. Good luck!

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20140526/d8a2b6c7/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list