[MacPorts] #72483: libxmldiff build failure: error: ISO C++ forbids initialization of member ‘fLocal’
MacPorts
noreply at macports.org
Thu May 15 11:09:54 UTC 2025
#72483: libxmldiff build failure: error: ISO C++ forbids initialization of member
‘fLocal’
--------------------------+------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.7
Keywords: | Port: libxmldiff
--------------------------+------------------------
{{{
/usr/bin/g++-4.2 -DPACKAGE_NAME=\"libxmldiff\"
-DPACKAGE_TARNAME=\"libxmldiff\" -DPACKAGE_VERSION=\"0.2.9\"
-DPACKAGE_STRING=\"libxmldiff\ 0.2.9\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE_URL=\"\" -DPACKAGE=\"libxmldiff\" -DVERSION=\"0.2.9\"
-DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1
-DLT_OBJDIR=\".libs/\" -DHAVE_MEMMOVE=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1
-DHAVE_VPRINTF=1 -I. -g -I/opt/local/include
-I/opt/local/include/libxml2 -I/opt/local/include/libxml2
-I/opt/local/include/libxml2 -Wno-write-strings -g -pipe -Os -arch ppc
-I/opt/local/include/libxml2 -I/opt/local/include/libxml2
-I/opt/local/include/libxml2 -MT lx2_util.o -MD -MP -MF
.deps/lx2_util.Tpo -c -o lx2_util.o lx2_util.cpp
In file included from libxmldiff.h:77,
from lx2_ops.cpp:23:
lx2_str.h:80: error: ISO C++ forbids initialization of member ‘fLocal’
lx2_str.h:80: error: making ‘fLocal’ static
lx2_str.h:80: error: invalid in-class initialization of static data member
of non-integral type ‘char*’
lx2_str.h: In constructor ‘charTmp::charTmp(char*)’:
lx2_str.h:83: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In destructor ‘charTmp::~charTmp()’:
lx2_str.h:84: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘void charTmp::setCharTmp(char*)’:
lx2_str.h:85: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘charTmp::operator char*()’:
lx2_str.h:86: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In copy constructor ‘charTmp::charTmp(charTmp&)’:
lx2_str.h:88: error: ‘fLocal’ was not declared in this scope
lx2_str.h:88: error: ‘class charTmp’ has no member named ‘fLocal’
lx2_str.h: In member function ‘charTmp& charTmp::operator=(const
charTmp&)’:
lx2_str.h:89: error: ‘fLocal’ was not declared in this scope
lx2_str.h:89: error: ‘const class charTmp’ has no member named ‘fLocal’
In file included from libxmldiff.h:77,
from lx2_util.cpp:23:
lx2_str.h:80: error: ISO C++ forbids initialization of member ‘fLocal’
lx2_str.h:80: error: making ‘fLocal’ static
lx2_str.h:80: error: invalid in-class initialization of static data member
of non-integral type ‘char*’
lx2_str.h: In constructor ‘charTmp::charTmp(char*)’:
lx2_str.h:83: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In destructor ‘charTmp::~charTmp()’:
lx2_str.h:84: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘void charTmp::setCharTmp(char*)’:
lx2_str.h:85: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘charTmp::operator char*()’:
lx2_str.h:86: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In copy constructor ‘charTmp::charTmp(charTmp&)’:
lx2_str.h:88: error: ‘fLocal’ was not declared in this scope
lx2_str.h:88: error: ‘class charTmp’ has no member named ‘fLocal’
lx2_str.h: In member function ‘charTmp& charTmp::operator=(const
charTmp&)’:
lx2_str.h:89: error: ‘fLocal’ was not declared in this scope
lx2_str.h:89: error: ‘const class charTmp’ has no member named ‘fLocal’
In file included from libxmldiff.h:77,
from errors.h:34,
from errors.cpp:25:
lx2_str.h:80: error: ISO C++ forbids initialization of member ‘fLocal’
lx2_str.h:80: error: making ‘fLocal’ static
lx2_str.h:80: error: invalid in-class initialization of static data member
of non-integral type ‘char*’
lx2_str.h: In constructor ‘charTmp::charTmp(char*)’:
lx2_str.h:83: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In destructor ‘charTmp::~charTmp()’:
lx2_str.h:84: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘void charTmp::setCharTmp(char*)’:
lx2_str.h:85: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘charTmp::operator char*()’:
lx2_str.h:86: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In copy constructor ‘charTmp::charTmp(charTmp&)’:
lx2_str.h:88: error: ‘fLocal’ was not declared in this scope
lx2_str.h:88: error: ‘class charTmp’ has no member named ‘fLocal’
lx2_str.h: In member function ‘charTmp& charTmp::operator=(const
charTmp&)’:
lx2_str.h:89: error: ‘fLocal’ was not declared in this scope
lx2_str.h:89: error: ‘const class charTmp’ has no member named ‘fLocal’
In file included from libxmldiff.h:77,
from lx2_diff.cpp:25:
lx2_str.h:80: error: ISO C++ forbids initialization of member ‘fLocal’
lx2_str.h:80: error: making ‘fLocal’ static
lx2_str.h:80: error: invalid in-class initialization of static data member
of non-integral type ‘char*’
lx2_str.h: In constructor ‘charTmp::charTmp(char*)’:
lx2_str.h:83: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In destructor ‘charTmp::~charTmp()’:
lx2_str.h:84: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘void charTmp::setCharTmp(char*)’:
lx2_str.h:85: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘charTmp::operator char*()’:
lx2_str.h:86: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In copy constructor ‘charTmp::charTmp(charTmp&)’:
lx2_str.h:88: error: ‘fLocal’ was not declared in this scope
lx2_str.h:88: error: ‘class charTmp’ has no member named ‘fLocal’
lx2_str.h: In member function ‘charTmp& charTmp::operator=(const
charTmp&)’:
lx2_str.h:89: error: ‘fLocal’ was not declared in this scope
lx2_str.h:89: error: ‘const class charTmp’ has no member named ‘fLocal’
In file included from libxmldiff.h:77,
from lx2_parse.cpp:23:
lx2_str.h:80: error: ISO C++ forbids initialization of member ‘fLocal’
lx2_str.h:80: error: making ‘fLocal’ static
lx2_str.h:80: error: invalid in-class initialization of static data member
of non-integral type ‘char*’
lx2_str.h: In constructor ‘charTmp::charTmp(char*)’:
lx2_str.h:83: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In destructor ‘charTmp::~charTmp()’:
lx2_str.h:84: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘void charTmp::setCharTmp(char*)’:
lx2_str.h:85: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘charTmp::operator char*()’:
lx2_str.h:86: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In copy constructor ‘charTmp::charTmp(charTmp&)’:
lx2_str.h:88: error: ‘fLocal’ was not declared in this scope
lx2_str.h:88: error: ‘class charTmp’ has no member named ‘fLocal’
lx2_str.h: In member function ‘charTmp& charTmp::operator=(const
charTmp&)’:
lx2_str.h:89: error: ‘fLocal’ was not declared in this scope
lx2_str.h:89: error: ‘const class charTmp’ has no member named ‘fLocal’
In file included from libxmldiff.h:77,
from xmldiff.h:28,
from xmldiff.cpp:49:
lx2_str.h:80: error: ISO C++ forbids initialization of member ‘fLocal’
lx2_str.h:80: error: making ‘fLocal’ static
lx2_str.h:80: error: invalid in-class initialization of static data member
of non-integral type ‘char*’
lx2_str.h: In constructor ‘charTmp::charTmp(char*)’:
lx2_str.h:83: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In destructor ‘charTmp::~charTmp()’:
lx2_str.h:84: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘void charTmp::setCharTmp(char*)’:
lx2_str.h:85: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In member function ‘charTmp::operator char*()’:
lx2_str.h:86: error: ‘fLocal’ was not declared in this scope
lx2_str.h: In copy constructor ‘charTmp::charTmp(charTmp&)’:
lx2_str.h:88: error: ‘fLocal’ was not declared in this scope
lx2_str.h:88: error: ‘class charTmp’ has no member named ‘fLocal’
lx2_str.h: In member function ‘charTmp& charTmp::operator=(const
charTmp&)’:
lx2_str.h:89: error: ‘fLocal’ was not declared in this scope
lx2_str.h:89: error: ‘const class charTmp’ has no member named ‘fLocal’
lx2_ops.cpp: In function ‘void xmlFinalize(const globalOptions&)’:
lx2_ops.cpp:104: warning: ‘xmlMemoryDump’ is deprecated (declared at
/opt/local/include/libxml2/libxml/xmlmemory.h:161)
lx2_ops.cpp:104: warning: ‘xmlMemoryDump’ is deprecated (declared at
/opt/local/include/libxml2/libxml/xmlmemory.h:161)
make[1]: *** [lx2_util.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [errors.o] Error 1
make[1]: *** [lx2_ops.o] Error 1
make[1]: *** [lx2_diff.o] Error 1
make[1]: *** [xmldiff.o] Error 1
make[1]: *** [lx2_parse.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72483>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list