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)

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 (4)

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.

comment:2 Changed 4 months ago by dgilman (David Gilman)

Resolution: fixed
Status: newclosed

In d9ae8f00e5bae23a37409613f6bb679959c43b35/macports-ports (master):

libpqxx26: remove port

Closes: #39299
Closes: #39300

Note: See TracTickets for help on using tickets.