Opened 8 years ago

Closed 5 years ago

#51874 closed defect (fixed)

commoncpp2 @1.8.1: error: friend declaration specifying a default argument must be a definition

Reported by: w3sz73@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: commoncpp2

Description

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!

Change History (2)

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: commoncpp2 build failscommoncpp2 @1.8.1: error: friend declaration specifying a default argument must be a definition

Confirmed, I see the same problem. It looks like 1.8.1 was the last version of commoncpp2 and they have now integrated its functionality into ucommon. We should add a port for ucommon. However, the developers say on their web site they still intend to support and fix bugs in commoncpp2 so you should report the problem to its developers by writing to this mailing list:

https://lists.gnu.org/mailman/listinfo/bug-commoncpp

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

In b79a1f7228f2aba7b72ae2d812963d23acf30678/macports-ports (master):

New port ucommon, replaces commoncpp2

Closes: #51874

Note: See TracTickets for help on using tickets.