[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem and patch macos
From: |
Carl Hansen |
Subject: |
problem and patch macos |
Date: |
Sun, 26 Jan 2025 18:08:22 -0500 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
a compilation problem, followed by a patch
x86_64-apple-darwin17.7.0
MacOS 10.3.6
It claims g++ but it lies, really Apple LLVM version 10.0.0 (clang-1000.10.44.4)
/usr/bin/g++ -DHAVE_CONFIG_H -DBUILDING_NCURSES_CXX -I../c++ -I.
-I../../../work/ncurses-6.5-20250125/c++ -I../include
-I../../../work/ncurses-6.5-20250125/c++/../include -D_DARWIN_C_SOURCE -DNDEBUG
-Wno-c++11-extensions -dynamic -c
../../../work/ncurses-6.5-20250125/c++/cursesf.cc -o ../obj_s/cursesf.o
../../../work/ncurses-6.5-20250125/c++/cursesf.cc:77:15: error: no type named
'bad_alloc' in namespace 'std'
catch (std::bad_alloc const&) {
~~~~~^
../../../work/ncurses-6.5-20250125/c++/cursesf.cc:77:25: error: expected ')'
catch (std::bad_alloc const&) {
^
../../../work/ncurses-6.5-20250125/c++/cursesf.cc:77:9: note: to match this '('
catch (std::bad_alloc const&) {
^
../../../work/ncurses-6.5-20250125/c++/cursesf.cc:159:15: error: no type named
'bad_alloc' in namespace 'std'
catch (std::bad_alloc const&) {
~~~~~^
../../../work/ncurses-6.5-20250125/c++/cursesf.cc:159:25: error: expected ')'
catch (std::bad_alloc const&) {
^
../../../work/ncurses-6.5-20250125/c++/cursesf.cc:159:9: note: to match this '('
catch (std::bad_alloc const&) {
^
4 errors generated.
make[2]: *** [Makefile:420: ../obj_s/cursesf.o] Error 1
....
/usr/bin/g++ -DHAVE_CONFIG_H -DBUILDING_NCURSES_CXX -I../c++ -I.
-I../../../work/ncurses-6.5-20250125/c++ -I../include
-I../../../work/ncurses-6.5-20250125/c++/../include -D_DARWIN_C_SOURCE -DNDEBUG
-Wno-c++11-extensions -dynamic -c
../../../work/ncurses-6.5-20250125/c++/cursesm.cc -o ../obj_s/cursesm.o
../../../work/ncurses-6.5-20250125/c++/cursesm.cc:122:15: error: no type named
'bad_alloc' in namespace 'std'
catch (std::bad_alloc const&) {
~~~~~^
../../../work/ncurses-6.5-20250125/c++/cursesm.cc:122:25: error: expected ')'
catch (std::bad_alloc const&) {
^
../../../work/ncurses-6.5-20250125/c++/cursesm.cc:122:9: note: to match this '('
catch (std::bad_alloc const&) {
^
../../../work/ncurses-6.5-20250125/c++/cursesm.cc:173:15: error: no type named
'bad_alloc' in namespace 'std'
catch (std::bad_alloc const&) {
~~~~~^
../../../work/ncurses-6.5-20250125/c++/cursesm.cc:173:25: error: expected ')'
catch (std::bad_alloc const&) {
^
../../../work/ncurses-6.5-20250125/c++/cursesm.cc:173:9: note: to match this '('
catch (std::bad_alloc const&) {
^
4 errors generated.
make[2]: *** [Makefile:427: ../obj_s/cursesm.o] Error 1
a patch
diff -x config.log -x config.status -ru tmp/ncurses-6.5-20250125/c++/cursesf.cc
work/ncurses-6.5-20250125/c++/cursesf.cc
--- tmp/ncurses-6.5-20250125/c++/cursesf.cc 2025-01-25 13:20:17.000000000
-0800
+++ work/ncurses-6.5-20250125/c++/cursesf.cc 2025-01-26 14:33:30.453728138
-0800
@@ -32,6 +32,7 @@
* Author: Juergen Pfeifer, 1997 *
****************************************************************************/
+#include <new>
#include "internal.h"
#include "cursesf.h"
#include "cursesapp.h"
diff -x config.log -x config.status -ru tmp/ncurses-6.5-20250125/c++/cursesm.cc
work/ncurses-6.5-20250125/c++/cursesm.cc
--- tmp/ncurses-6.5-20250125/c++/cursesm.cc 2025-01-25 13:20:17.000000000
-0800
+++ work/ncurses-6.5-20250125/c++/cursesm.cc 2025-01-26 14:35:25.560419576
-0800
@@ -32,6 +32,7 @@
* Author: Juergen Pfeifer, 1997 *
****************************************************************************/
+#include <new>
#include "internal.h"
#include "cursesm.h"
#include "cursesapp.h"
- problem and patch macos,
Carl Hansen <=