[MacPorts] #39299: libpqxx26 build fails with clang due to -Werror

MacPorts noreply at macports.org
Fri May 31 18:27:19 PDT 2013


#39299: libpqxx26 build fails with clang due to -Werror
--------------------------+-----------------------
 Reporter:  ryandesign@…  |      Owner:  dweber@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.1.3
 Keywords:                |       Port:  libpqxx26
--------------------------+-----------------------
 Building libpqxx26 fails with clang because the configure script uses
 `-Werror` and also something that clang doesn't recommend.

 {{{
 checking ability to compile programs using the standard C library...
 configure: error:
 Could not build even a tiny test program using the standard C library.

 Something very basic has gone wrong; try reading config.log to find out
 what.
 You'll probably want to go straight to the end of that file and read
 backwards
 until you find an error message.  Then identify the problem, try to fix
 it, and
 run this script again.

 The configure script's --help option may provide useful tips on how to
 influence
 what compiler and command line options are used, what additional libraries
 are
 linked in, and so on.
 }}}

 config.log says:

 {{{
 configure:20712: checking ability to compile programs using the standard C
 library
 configure:20737: /usr/bin/clang++ -c -pipe -Os -arch x86_64 -Werror
 -I/opt/local/include conftest.cpp >&5
 conftest.cpp:32:18: error: using directive refers to implicitly-defined
 namespace 'std' [-Werror]
         using namespace std;
                         ^
 1 error generated.
 }}}

 I guess the best fix is to remove `-Werror` in those places.

-- 
Ticket URL: <https://trac.macports.org/ticket/39299>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list