Uploaded image for project: 'Apache MADlib'
  1. Apache MADlib
  2. MADLIB-859

modules/stats/t_test.cpp: declaration of ‘char* mkdtemp(char*)’ has a different exception specifier

Add voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Enviornment:
      PostgreSQL 9.3.5
      Ubuntu 14.04
      gcc/g++ 4.8

      Failed with make under build directory, got errors as:
      ------------------
      [ 1%] Built target EP_boost
      [ 2%] Built target EP_eigen
      [ 3%] Built target EP_pyxb
      [ 3%] Built target pythonFiles
      [ 3%] Built target sqlFiles
      [ 3%] Built target madlibPatches
      [ 8%] Built target madpackFiles
      [ 8%] Built target binaryFiles
      [ 9%] Built target configFiles
      [ 30%] Built target sqlFiles_postgresql
      Scanning dependencies of target madlib_postgresql_9_3
      [ 30%] Building CXX object src/ports/postgres/9.3/CMakeFiles/madlib_postgresql_9_3.dir/_//_/modules/stats/t_test.cpp.o
      In file included from /usr/include/postgresql/9.3/server/c.h:1019:0,
      from /usr/include/postgresql/9.3/server/postgres.h:47,
      from /home/sioss/madlib-1.6.0/src/ports/postgres/dbconnector/dbconnector.hpp:18,
      from /home/sioss/madlib-1.6.0/src/modules/stats/t_test.cpp:9:
      /usr/include/postgresql/9.3/server/port.h:480:32: error: declaration of ‘char* mkdtemp(char*)’ has a different exception specifier
      extern char *mkdtemp(char *path);
      ^
      In file included from /usr/include/postgresql/9.3/server/c.h:73:0,
      from /usr/include/postgresql/9.3/server/postgres.h:47,
      from /home/sioss/madlib-1.6.0/src/ports/postgres/dbconnector/dbconnector.hpp:18,
      from /home/sioss/madlib-1.6.0/src/modules/stats/t_test.cpp:9:
      /usr/include/stdlib.h:663:14: error: from previous declaration ‘char* mkdtemp(char*) throw ()’
      extern char *mkdtemp (char *__template) __THROW __nonnull ((1)) __wur;
      ^
      make[2]: *** [src/ports/postgres/9.3/CMakeFiles/madlib_postgresql_9_3.dir/__/__/__/modules/stats/t_test.cpp.o] Error 1
      make[1]: *** [src/ports/postgres/9.3/CMakeFiles/madlib_postgresql_9_3.dir/all] Error 2
      make: *** [all] Error 2

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cwelton Caleb Welton
            lailai23 Yuhui Dong

            Dates

              Created:
              Updated:

              Slack

                Issue deployment