Opened 10 years ago

Last modified 8 years ago

#5232 new Bug

Centos 6.3 Build Error: "conflicting types for ‘UTP_Write’"

Reported by: mmain Owned by: jordan
Priority: Normal Milestone: None Set
Component: libtransmission Version: 2.76
Severity: Normal Keywords:


I have been successfully using Transmission on Centos 5.8, but now need to upgrade to Centos 6.3 and have started building new machine with 6.3 loaded and I am unable to build Transmission from source without following error during make(I also tried 2.75 with same result)

tr-utp.c:65: error: conflicting types for ‘UTP_Write’ ../third-party/libutp/utp.h:116: note: previous declaration of ‘UTP_Write’ was here make[1]: * [tr-utp.o] Error 1 make[1]: Leaving directory `/root/transmission-2.76/libtransmission' make: * [all-recursive] Error 1

Change History (8)

comment:1 Changed 10 years ago by jordan

I don't know what to do with this. My guess is that the 'bool' typedef is different in the two different files, but that's just a guess. I don't know why that would be different on CentOS than on other platforms.

If someone with CentOS wants to cook up a fix for this I'd be happy to take it.

comment:2 Changed 10 years ago by jordan

  • Summary changed from Centos 6.3 Build Errorr to Centos 6.3 Build Error: "conflicting types for ‘UTP_Write’"

comment:3 Changed 10 years ago by mmain

Not sure if it helps or not, but I have tested older revisions and pinpointed this problem starting with revision 2.60 onwards. I now have a working 2.52 installation from this exercise, much better than the pre-compiled 2.13 version available.

comment:4 Changed 10 years ago by x190

UTP_Write() is type bool. Maybe utp.h needs the following bit of voodoo that was added to transmission.h.

#if !defined (__cplusplus)
  #include <stdbool.h>
 #elif !defined (__bool_true_false_are_defined)
  #define bool uint8_t
  #define true 1
  #define false 0

comment:5 Changed 10 years ago by mmain

Yes, this worked a treat. Many Thanks

comment:6 Changed 10 years ago by jordan

x190: that's the great idea, you ought to submit that upstream to the libutp project on github.

comment:8 Changed 8 years ago by mike.dld

  • Component changed from Transmission to libtransmission
  • Owner set to jordan

Closed #5712 as duplicate of this ticket.

Note: See TracTickets for help on using tickets.