Opened 10 years ago

Closed 10 years ago

#45607 closed defect (fixed)

bibledit @4.8: cannot pass non-POD object of type 'const_reference' to variadic function

Reported by: acurtis.preacher@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc:
Port: bibledit

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I recently tried to install Bibledit on Mac OS X (10.10 Yosemite). I have Xcode and the command line tools installed, along with several other gtk tools, evertything I *should* need to install the program. I tried the "sudo port install bibledit" command from the docs found in the .tar.gz file from "http://download-mirror.savannah.gnu.org/releases//bibledit/source/gtk/". I got:

Error: org.macports.build for port bibledit returned: command execution failed
Please see the log file for port bibledit for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_bibledit/bibledit/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port bibledit failed

Is there anyway to fix the problem?

Attachments (1)

main.log (576.7 KB) - added by acurtis.preacher@… 10 years ago.
Here is the main.log indicated in the error report.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by acurtis.preacher@…

Attachment: main.log added

Here is the main.log indicated in the error report.

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

Description: modified (diff)
Port: bibledit added
Summary: Bibledit "port install" failedbibledit @4.8: cannot pass non-POD object of type 'const_reference' to variadic function

The relevant error seems to be:

:info:build keyterms.cpp:1074:207: error: cannot pass non-POD object of type 'const_reference' (aka '__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > >') to variadic function; expected type from format string was 'int' [-Wnon-pod-varargs]
:info:build       sql = g_strdup_printf("insert into renderings values ('%s', '%s', '%s', %d, %d);", double_apostrophy(keyterm).c_str(), double_apostrophy(collection).c_str(), double_apostrophy(renderings[i]).c_str(), wholewords[i], casesensitives[i]);
:info:build                                                                               ~~                                                                                                                              ^~~~~~~~~~~~~
:info:build keyterms.cpp:1074:222: error: cannot pass non-POD object of type 'const_reference' (aka '__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > >') to variadic function; expected type from format string was 'int' [-Wnon-pod-varargs]
:info:build       sql = g_strdup_printf("insert into renderings values ('%s', '%s', '%s', %d, %d);", double_apostrophy(keyterm).c_str(), double_apostrophy(collection).c_str(), double_apostrophy(renderings[i]).c_str(), wholewords[i], casesensitives[i]);
:info:build                                                                                   ~~                                                                                                                                         ^~~~~~~~~~~~~~~~~

This seems like a programming error in bibledit. It should be reported to the developers of bibledit so that they can correct it.

comment:2 Changed 10 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Upstream patches applied in r127373 to fix build on Mavericks and Yosemite.

Note: See TracTickets for help on using tickets.