Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1488

src/concurrency/Thread.h:91:58: error: invalid conversion from 'pthread_t {aka _opaque_pthread_t*}' to 'apache::thrift::concurrency::Thread::id_t {aka long long unsigned int}' [-fpermissive]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.9
    • Build Process
    • None
    • Mac OSX 10.6.8 x86_64, up to date macports, apple gcc 4.2.1, genuine gnu gcc 4.5.3 and 4.6.2

    Description

      right after building the generators :

      Making all in lib
      Making all in cpp
      Making all in .
      /bin/sh ../../libtool --tag=CXX --mode=compile /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c -o Thrift.lo `test -f 'src/Thrift.cpp' || echo './'`src/Thrift.cpp
      libtool: compile: /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c src/Thrift.cpp -fno-common -DPIC -o .libs/Thrift.o
      libtool: compile: /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c src/Thrift.cpp -o Thrift.o >/dev/null 2>&1
      mv -f .deps/Thrift.Tpo .deps/Thrift.Plo
      /bin/sh ../../libtool --tag=CXX --mode=compile /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT TApplicationException.lo -MD -MP -MF .deps/TApplicationException.Tpo -c -o TApplicationException.lo `test -f 'src/TApplicationException.cpp' || echo './'`src/TApplicationException.cpp
      libtool: compile: /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT TApplicationException.lo -MD -MP -MF .deps/TApplicationException.Tpo -c src/TApplicationException.cpp -fno-common -DPIC -o .libs/TApplicationException.o
      libtool: compile: /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT TApplicationException.lo -MD -MP -MF .deps/TApplicationException.Tpo -c src/TApplicationException.cpp -o TApplicationException.o >/dev/null 2>&1
      mv -f .deps/TApplicationException.Tpo .deps/TApplicationException.Plo
      /bin/sh ../../libtool --tag=CXX --mode=compile /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT VirtualProfiling.lo -MD -MP -MF .deps/VirtualProfiling.Tpo -c -o VirtualProfiling.lo `test -f 'src/VirtualProfiling.cpp' || echo './'`src/VirtualProfiling.cpp
      libtool: compile: /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT VirtualProfiling.lo -MD -MP -MF .deps/VirtualProfiling.Tpo -c src/VirtualProfiling.cpp -fno-common -DPIC -o .libs/VirtualProfiling.o
      libtool: compile: /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT VirtualProfiling.lo -MD -MP -MF .deps/VirtualProfiling.Tpo -c src/VirtualProfiling.cpp -o VirtualProfiling.o >/dev/null 2>&1
      mv -f .deps/VirtualProfiling.Tpo .deps/VirtualProfiling.Plo
      /bin/sh ../../libtool --tag=CXX --mode=compile /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT ThreadManager.lo -MD -MP -MF .deps/ThreadManager.Tpo -c -o ThreadManager.lo `test -f 'src/concurrency/ThreadManager.cpp' || echo './'`src/concurrency/ThreadManager.cpp
      libtool: compile: /opt/gnucc/bin/g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I./src -Wall -g -O2 -MT ThreadManager.lo -MD -MP -MF .deps/ThreadManager.Tpo -c src/concurrency/ThreadManager.cpp -fno-common -DPIC -o .libs/ThreadManager.o
      In file included from src/concurrency/ThreadManager.h:26:0,
      from src/concurrency/ThreadManager.cpp:24:
      src/concurrency/Thread.h: In static member function 'static apache::thrift::concurrency::Thread::id_t apache::thrift::concurrency::Thread::get_current()':
      src/concurrency/Thread.h:91:58: error: invalid conversion from 'pthread_t

      {aka _opaque_pthread_t*}

      ' to 'apache::thrift::concurrency::Thread::id_t

      {aka long long unsigned int}

      ' [-fpermissive]
      make[4]: *** [ThreadManager.lo] Error 1
      make[3]: *** [all-recursive] Error 1
      make[2]: *** [all-recursive] Error 1
      make[1]: *** [all-recursive] Error 1
      make: *** [all] Error 2

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--config.log
          184 kB
          Philippe STRAUSS
        2. thrift-1488.patch
          0.5 kB
          Jake Farrell

        Issue Links

          Activity

            People

              jfarrell Jake Farrell
              philou@philou.ch Philippe STRAUSS
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified