[Pidgin] #11958: Get Info on contact doesn't work with Gadu-Gadu protocol.

Pidgin trac at pidgin.im
Sun Mar 13 07:54:20 EDT 2011


#11958: Get Info on contact doesn't work with Gadu-Gadu protocol.
-----------------------------+----------------------------------------------
 Reporter:  diskape          |        Owner:  bartosz  
     Type:  defect           |       Status:  new      
Milestone:  Patches welcome  |    Component:  Gadu-Gadu
  Version:  2.7.0            |   Resolution:           
 Keywords:                   |  
-----------------------------+----------------------------------------------

Comment(by matekm):

 upgraded to gcc-core-4.5.2 and it didn't helped.

 Now, I think that -mms-bitfields created the mess. With this simple
 programm:


 {{{
 #include <stdio.h>

 struct test_struct
 {
     int test_member1;
     char test_member2;
 } __attribute__ ((packed));

 struct test_struct2
 {
     char test_member2;
     int test_member1;
 } __attribute__ ((packed));

 int main()
 {
     char buf[10];
     struct test_struct *r = (struct test_struct*)&buf[0];
     struct test_struct2 *r2 = (struct test_struct2*)&buf[0];
     printf("Size of the struct %u\n", sizeof(struct test_struct));
     printf("Size of the struct %u\n", sizeof(*r));
     printf("Size of the struct %u\n", sizeof(struct test_struct2));
     printf("Size of the struct %u\n", sizeof(*r2));
     return 0;
 }
 }}}

 compiling with -mms-bitfields on mingw gcc >= 4.4.0 gcc <= 4.5.2 gives
 output

 {{{
 Size of the struct 5
 Size of the struct 5
 Size of the struct 8
 Size of the struct 8
 }}}

 compiling without -mms-bitfields


 {{{
 Size of the struct 5
 Size of the struct 5
 Size of the struct 5
 Size of the struct 5
 }}}

 We can't compile libpurple without this flag on Windows. I hope that this
 is fixed in mingw gcc 4.6.0. Will wait for it.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/11958#comment:37>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list