#67302 closed defect (fixed)

libofx @0.10.4 fails on 10.6.8: ofx_utilities.cpp: error: 'nullptr' was not declared in this scope

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard, powerpc, rosetta Cc:
Port: libofx

Description

:info:build Making all in lib
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libofx/libofx/work/libofx-0.10.4/lib'
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include  -DIN_LIBOFX -pipe -Os -arch ppc -MT messages.lo -MD -MP -MF .deps/messages.Tpo -c -o messages.lo messages.cpp
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include  -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_utilities.lo -MD -MP -MF .deps/ofx_utilities.Tpo -c -o ofx_utilities.lo ofx_utilities.cpp
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include  -DIN_LIBOFX -pipe -Os -arch ppc -MT file_preproc.lo -MD -MP -MF .deps/file_preproc.Tpo -c -o file_preproc.lo file_preproc.cpp
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include  -DIN_LIBOFX -pipe -Os -arch ppc -MT context.lo -MD -MP -MF .deps/context.Tpo -c -o context.lo context.cpp
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include  -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_preproc.lo -MD -MP -MF .deps/ofx_preproc.Tpo -c -o ofx_preproc.lo ofx_preproc.cpp
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include  -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_generic.lo -MD -MP -MF .deps/ofx_container_generic.Tpo -c -o ofx_container_generic.lo ofx_container_generic.cpp
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include  -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_main.lo -MD -MP -MF .deps/ofx_container_main.Tpo -c -o ofx_container_main.lo ofx_container_main.cpp
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include  -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_security.lo -MD -MP -MF .deps/ofx_container_security.Tpo -c -o ofx_container_security.lo ofx_container_security.cpp
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT context.lo -MD -MP -MF .deps/context.Tpo -c context.cpp  -fno-common -DPIC -o .libs/context.o
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_utilities.lo -MD -MP -MF .deps/ofx_utilities.Tpo -c ofx_utilities.cpp  -fno-common -DPIC -o .libs/ofx_utilities.o
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_preproc.lo -MD -MP -MF .deps/ofx_preproc.Tpo -c ofx_preproc.cpp  -fno-common -DPIC -o .libs/ofx_preproc.o
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_security.lo -MD -MP -MF .deps/ofx_container_security.Tpo -c ofx_container_security.cpp  -fno-common -DPIC -o .libs/ofx_container_security.o
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_generic.lo -MD -MP -MF .deps/ofx_container_generic.Tpo -c ofx_container_generic.cpp  -fno-common -DPIC -o .libs/ofx_container_generic.o
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT messages.lo -MD -MP -MF .deps/messages.Tpo -c messages.cpp  -fno-common -DPIC -o .libs/messages.o
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT file_preproc.lo -MD -MP -MF .deps/file_preproc.Tpo -c file_preproc.cpp  -fno-common -DPIC -o .libs/file_preproc.o
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_main.lo -MD -MP -MF .deps/ofx_container_main.Tpo -c ofx_container_main.cpp  -fno-common -DPIC -o .libs/ofx_container_main.o
:info:build ofx_utilities.cpp: In function 'time_t ofxdate_to_time_t(const std::string&)':
:info:build ofx_utilities.cpp:152: error: 'nullptr' was not declared in this scope
:info:build make[2]: *** [ofx_utilities.lo] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT context.lo -MD -MP -MF .deps/context.Tpo -c context.cpp -o context.o >/dev/null 2>&1
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT messages.lo -MD -MP -MF .deps/messages.Tpo -c messages.cpp -o messages.o >/dev/null 2>&1
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT file_preproc.lo -MD -MP -MF .deps/file_preproc.Tpo -c file_preproc.cpp -o file_preproc.o >/dev/null 2>&1
:info:build mv -f .deps/context.Tpo .deps/context.Plo
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_generic.lo -MD -MP -MF .deps/ofx_container_generic.Tpo -c ofx_container_generic.cpp -o ofx_container_generic.o >/dev/null 2>&1
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_security.lo -MD -MP -MF .deps/ofx_container_security.Tpo -c ofx_container_security.cpp -o ofx_container_security.o >/dev/null 2>&1
:info:build mv -f .deps/messages.Tpo .deps/messages.Plo
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_container_main.lo -MD -MP -MF .deps/ofx_container_main.Tpo -c ofx_container_main.cpp -o ofx_container_main.o >/dev/null 2>&1
:info:build mv -f .deps/file_preproc.Tpo .deps/file_preproc.Plo
:info:build mv -f .deps/ofx_container_generic.Tpo .deps/ofx_container_generic.Plo
:info:build mv -f .deps/ofx_container_security.Tpo .deps/ofx_container_security.Plo
:info:build mv -f .deps/ofx_container_main.Tpo .deps/ofx_container_main.Plo
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I../inc -I/opt/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/opt/local/share/libofx/dtd\" -I/opt/local/include -DIN_LIBOFX -pipe -Os -arch ppc -MT ofx_preproc.lo -MD -MP -MF .deps/ofx_preproc.Tpo -c ofx_preproc.cpp -o ofx_preproc.o >/dev/null 2>&1
:info:build mv -f .deps/ofx_preproc.Tpo .deps/ofx_preproc.Plo
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libofx/libofx/work/libofx-0.10.4/lib'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libofx/libofx/work/libofx-0.10.4'
:info:build make: *** [all] Error 2

Change History (3)

comment:1 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

nullptr is new in C++11 so hopefully adding compiler.cxx_standard 2011 would fix it.

comment:2 in reply to:  1 Changed 19 months ago by barracuda156

Replying to ryandesign:

nullptr is new in C++11 so hopefully adding compiler.cxx_standard 2011 would fix it.

Perfect, thank you. https://github.com/macports/macports-ports/pull/18417

comment:3 Changed 19 months ago by barracuda156

Owner: set to barracuda156
Resolution: fixed
Status: newclosed

In 7ad617e09b35f3df08fbfae857926282a87e5fea/macports-ports (master):

libofx: set cxx_sstandard 2011, fix build on <10.7

Fixes: #67302

Note: See TracTickets for help on using tickets.