Naour Romain created THRIFT-2367:
------------------------------------

             Summary: Build failure: stdlib and boost both define uint64_t
                 Key: THRIFT-2367
                 URL: https://issues.apache.org/jira/browse/THRIFT-2367
             Project: Thrift
          Issue Type: Bug
          Components: Build Process, C glib - Library
    Affects Versions: 0.9.1
         Environment: Thrift is available in Buildroot which is a 
cross-compilation tool.
Thrift is compiled in autobuilder system with different toolchain configuration.

Buildroot's autobuilder reported some issues like this one :
http://autobuild.buildroot.net/results/ff7/ff7ab52c3965f9545c197f7552d3bc629b900886/build-end.log

The toolchain used is an CT-NG toolchain with uclibc targeting an X86_64 atom.

Tools version:
Buildroot: 2014.02-rc1 (git)
Boost: 1.55.0
openssl: 1.0.1f
libevent:2.0.21

To reproduce the build failure, 
you may find the buildroot's configuration here:
http://autobuild.buildroot.net/results/ff7/ff7ab52c3965f9545c197f7552d3bc629b900886/config

            Reporter: Naour Romain
            Priority: Blocker


When Thrift is built for an 64 bits system,
the uint64_t type may be already defined in stdint.h.

"error: reference to 'uint64_t' is ambiguous"

To avoid this error, you need to use explicitly the uint64_t typedef from Boost.

So, I propose a quick patch that corrects this error.

I reported this issue as Blocker since the build fails but there is no 
emergency :)

Best regards,
Romain Naour



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to