Opened 5 years ago

Closed 5 years ago

#59645 closed defect (fixed)

scribus @1.4.7_6: error: expected ';' at end of declaration list

Reported by: tehcog (tehcog) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: scribus

Description

:error:build Failed to build scribus: command execution failed

Please see attached main.log

Attachments (1)

scribus_main.log (369.9 KB) - added by tehcog (tehcog) 5 years ago.
main.log

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by tehcog (tehcog)

Attachment: scribus_main.log added

main.log

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

Summary: scribus @1.4.7_6 fails to build on mavericksscribus @1.4.7_6: error: expected ';' at end of declaration list

The log says:

:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_scribus/scribus/work/scribus-1.4.7/scribus/plugins/gettext/odtim/contentreader.cpp:29:
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_scribus/scribus/work/scribus-1.4.7/scribus/plugins/gettext/odtim/contentreader.h:37:
:info:build In file included from /opt/local/include/libxml2/libxml/SAX.h:18:
:info:build In file included from /opt/local/include/libxml2/libxml/parser.h:810:
:info:build In file included from /opt/local/include/libxml2/libxml/encoding.h:31:
:info:build In file included from /opt/local/include/unicode/ucnv.h:53:
:info:build In file included from /opt/local/include/unicode/uenum.h:23:
:info:build /opt/local/include/unicode/localpointer.h:71:51: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
:info:build     static void* U_EXPORT2 operator new(size_t) = delete;
:info:build                                                   ^
:info:build /opt/local/include/unicode/localpointer.h:72:53: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
:info:build     static void* U_EXPORT2 operator new[](size_t) = delete;
:info:build                                                     ^
:info:build /opt/local/include/unicode/localpointer.h:74:58: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
:info:build     static void* U_EXPORT2 operator new(size_t, void*) = delete;
:info:build                                                          ^
:info:build /opt/local/include/unicode/localpointer.h:224:34: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
:info:build     LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
:info:build                                  ^
:info:build /opt/local/include/unicode/localpointer.h:224:40: error: expected ';' at end of declaration list
:info:build     LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
:info:build                                        ^
:info:build                                        ;
:info:build /opt/local/include/unicode/localpointer.h:405:30: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
:info:build     LocalArray(LocalArray<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
:info:build                              ^
:info:build /opt/local/include/unicode/localpointer.h:405:36: error: expected ';' at end of declaration list
:info:build     LocalArray(LocalArray<T> &&src) U_NOEXCEPT : LocalPointerBase<T>(src.ptr) {
:info:build                                    ^
:info:build                                    ;

This is the same issue reported against other ports in many, many other tickets. This port includes a libxml2 header, which includes an icu header, and the latest version of icu requires C++11, therefore this port now requires C++11, and this port needs to indicate that with compiler.cxx_standard 2011 and configure.cxxflags-append -std=c++11.

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

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 134cb9c9d05ee6e044dc330204d9dc33ee495f73/macports-ports (master):

libxml2: update to 2.9.10

Also, don't expose the ICU C++ API via libxml/encoding.h if the C++
version is too old.

Fixes: #59499
Fixes: #59519
Fixes: #59565
Fixes: #59567
Fixes: #59645
Fixes: #59721
Fixes: #59736

Note: See TracTickets for help on using tickets.