Bug 46396

Summary: telepathy-glib fails to compile with clang
Product: Telepathy Reporter: Rohan Garg <rohan>
Component: tp-glibAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED DUPLICATE QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: git master   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Rohan Garg 2012-02-21 06:46:58 UTC
Telepathy GLib seems to fail with clang :

libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"tp-glib\" -Werror -Wno-error=missing-field-initializers -Wno-error=unused-parameter -Wall -Wextra -Wdeclaration-after-statement -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I.. -I.. -g -O2 -MT account-channel-request.lo -MD -MP -MF .deps/account-channel-request.Tpo -c account-channel-request.c  -fPIC -DPIC -o .libs/account-channel-request.o
In file included from base-call-channel.c:103:
In file included from ./base-call-channel.h:26:
../telepathy-glib/base-call-content.h:35:35: error: redefinition of typedef 'TpBaseCallChannel' is invalid in C [-Wtypedef-redefinition]
typedef struct _TpBaseCallChannel TpBaseCallChannel;
                                  ^
../telepathy-glib/base-call-stream.h:33:35: note: previous definition is here
typedef struct _TpBaseCallChannel TpBaseCallChannel;
                                  ^
In file included from base-call-channel.c:103:
./base-call-channel.h:30:35: error: redefinition of typedef 'TpBaseCallChannel' is invalid in C [-Wtypedef-redefinition]
typedef struct _TpBaseCallChannel TpBaseCallChannel;
                                  ^
../telepathy-glib/base-call-content.h:35:35: note: previous definition is here
typedef struct _TpBaseCallChannel TpBaseCallChannel;
                                  ^
In file included from base-call-channel.c:108:
../telepathy-glib/base-call-internal.h:30:35: error: redefinition of typedef 'TpBaseCallChannel' is invalid in C [-Wtypedef-redefinition]
typedef struct _TpBaseCallChannel TpBaseCallChannel;
                                  ^
./base-call-channel.h:30:35: note: previous definition is here
typedef struct _TpBaseCallChannel TpBaseCallChannel;
                                  ^
In file included from base-call-channel.c:108:
../telepathy-glib/base-call-internal.h:31:35: error: redefinition of typedef 'TpBaseCallContent' is invalid in C [-Wtypedef-redefinition]
typedef struct _TpBaseCallContent TpBaseCallContent;
                                  ^
../telepathy-glib/base-call-content.h:37:35: note: previous definition is here
typedef struct _TpBaseCallContent TpBaseCallContent;
                                  ^
In file included from base-call-channel.c:108:
../telepathy-glib/base-call-internal.h:32:35: error: redefinition of typedef 'TpBaseCallStream' is invalid in C [-Wtypedef-redefinition]
typedef struct _TpBaseCallStream  TpBaseCallStream;
                                  ^
../telepathy-glib/base-call-stream.h:35:34: note: previous definition is here
typedef struct _TpBaseCallStream TpBaseCallStream;
                                 ^
In file included from base-call-channel.c:109:
In file included from ../telepathy-glib/base-media-call-stream.h:25:
../telepathy-glib/call-stream-endpoint.h:33:38: error: redefinition of typedef 'TpCallStreamEndpoint' is invalid in C [-Wtypedef-redefinition]
typedef struct _TpCallStreamEndpoint TpCallStreamEndpoint;
                                     ^
../telepathy-glib/base-call-internal.h:37:38: note: previous definition is here
typedef struct _TpCallStreamEndpoint TpCallStreamEndpoint;
                                     ^
In file included from base-call-channel.c:109:
../telepathy-glib/base-media-call-stream.h:29:39: error: redefinition of typedef 'TpBaseMediaCallStream' is invalid in C [-Wtypedef-redefinition]
typedef struct _TpBaseMediaCallStream TpBaseMediaCallStream;
                                      ^
../telepathy-glib/base-call-internal.h:36:39: note: previous definition is here
typedef struct _TpBaseMediaCallStream TpBaseMediaCallStream;
Comment 1 Simon McVittie 2012-02-21 06:54:37 UTC
This seems to be the same thing as Bug #46384, but now we know a non-cross-compiler that fails because of that bug. Thanks!

*** This bug has been marked as a duplicate of bug 46384 ***

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.