Opened 11 years ago

Last modified 10 years ago

#39299 new defect

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)

main.log (14.6 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
config.log (34.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

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@…

dweber has retired. See #43834.

Note: See TracTickets for help on using tickets.