#51874: commoncpp2 build fails ----------------------+-------------------------------- Reporter: w3sz73@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: commoncpp2 ----------------------+-------------------------------- On iMac with El Capitan running MacPorts version 2.3.4, commoncpp2 fails to build. The tail of the log shows: {{{ :info:build libtool: compile: /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I/opt/local/include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I/opt/local/include -I../inc -pipe -Os -arch x86_64 -stdlib=libc++ -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo -c mutex.cpp -fno-common -DPIC -o .libs/mutex.o :info:build In file included from mutex.cpp:41: :info:build In file included from ../inc/cc++/exception.h:52: :info:build ../inc/cc++/string.h:734:35: error: friend declaration specifying a default argument must be a definition :info:build friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0); :info:build ^ :info:build In file included from thread.cpp:41: :info:build In file included from ../inc/cc++/thread.h:50: :info:build ../inc/cc++/string.h:734:35: error: friend declaration specifying a default argument must be a definition :info:build friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0); :info:build ^ :info:build 1 error generated. :info:build 1 error generated. :info:build make[2]: *** [mutex.lo] Error 1 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build make[2]: *** [thread.lo] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_commoncpp2/commoncpp2/work/commoncpp2-1.8.1/src' :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_release_ports_devel_commoncpp2/commoncpp2/work/commoncpp2-1.8.1' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_commoncpp2/commoncpp2/work/commoncpp2-1.8.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_commoncpp2/commoncpp2/work/commoncpp2-1.8.1" && /usr/bin/make -j2 -w all :info:build Exit code: 2 :error:build org.macports.build for port commoncpp2 returned: command execution failed :debug:build Error code: CHILDSTATUS 38079 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:build Warning: targets not executed for commoncpp2: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port commoncpp2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_commoncpp2/commoncpp2/main.log }}} Thanks in advance for any help / advice! -- Ticket URL: <https://trac.macports.org/ticket/51874> MacPorts <https://www.macports.org/> Ports system for OS X