Opened 11 years ago
Closed 4 months ago
#39299 closed defect (fixed)
libpqxx26 build fails with clang due to -Werror
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | libpqxx26 |
Description
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.
Attachments (2)
Change History (4)
Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | config.log added |
---|
comment:1 Changed 10 years ago by mf2k (Frank Schima)
Owner: | changed from dweber@… to macports-tickets@… |
---|
comment:2 Changed 4 months ago by dgilman (David Gilman)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
dweber has retired. See #43834.