Opened 7 years ago

Closed 7 years ago

#55359 closed defect (fixed)

sigil 0.6.0 will not build against boost 1.65.1 error: use of undeclared identifier '_1'

Reported by: kencu (Ken) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: sigil boost

Description

sigil fails to build against the new boost update 1.65.1 on both highsierra and on 10.6.8/libc++.

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_sigil/sigil/work/Sigil-0.6.0-Code/src/Sigil/SourceUpdates/AnchorUpdates.cpp:47:86: error: use of undeclared identifier '_1'
     QtConcurrent::blockingMap( html_resources, boost::bind( UpdateAnchorsInOneFile, _1, ID_locations ) );
                                                                                     ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_sigil/sigil/work/Sigil-0.6.0-Code/src/Sigil/SourceUpdates/LinkUpdates.cpp:42:83: error: use of undeclared identifier '_1'
    QtConcurrent::blockingMap( html_resources, boost::bind( UpdateLinksInOneFile, _1, new_stylesheets ) );
                                                                                  ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_sigil/sigil/work/Sigil-0.6.0-Code/src/Sigil/SourceUpdates/AnchorUpdates.cpp:55:93: error: use of undeclared identifier '_1'
    QtConcurrent::blockingMap( html_resources, boost::bind( UpdateExternalAnchorsInOneFile, _1, originating_filename, ID_locations ) );

sigil builds fine against the older boost 1.59.0, but if boost is then updated to 1.65.1, when sigil is run it fails to find the appropriate features in boost and faults out.

This version of sigil is quite out of date now. Most likely the fix here is to update sigil, unless someone sees a nice way to fix this.

Attachments (2)

sigil.fail.highsierra.log (502.6 KB) - added by kencu (Ken) 7 years ago.
main.log (645.0 KB) - added by kencu (Ken) 7 years ago.
build failure on 10.6.8 / libc++

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by kencu (Ken)

Attachment: sigil.fail.highsierra.log added

Changed 7 years ago by kencu (Ken)

Attachment: main.log added

build failure on 10.6.8 / libc++

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

I'll look into updating it, in #48160.

comment:2 Changed 7 years ago by kencu (Ken)

This <https://svn.boost.org/trac10/ticket/11902> might fix the current version.

comment:3 Changed 7 years ago by kencu (Ken)

I used the above link to make a fix for this version. Somewhere along the way they dropped qt4, so this version might be the last one that builds on 10.6 and less.

The newest versions use qtwebkit - there is something about that that is complicated - I think it was dropped by QT and picked up by a third party, although I think Rene's been working on it. Not sure where that is in the pipeline.

comment:4 Changed 7 years ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 8d95df73ee3c94cacb00b46a40bdde1818ab4655/macports-ports:

sigil: modify source to work against newer boost versions

includes a compatibility header instead of the primary
boost::bind header
closes: #55359
see also: https://svn.boost.org/trac10/ticket/11902

Note: See TracTickets for help on using tickets.