#68153 closed defect (fixed)

opensc @0.23.0: error: missing field 'finish' initializer

Reported by: tehcog (tehcog) Owned by: Christopher Nielsen <mascguy@…>
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: highsierra sierra elcapitan yosemite mavericks mountainlion lion Cc: df@…
Port: opensc

Description

Please see attached main.log

`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_security_opensc/opensc/work/opensc-0.23.0/src/tests/p11test'
:info:build Making all in fuzzing
:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_security_opensc/opensc/work/opensc-0.23.0/src/tests/fuzzing'
:info:build   CC       fuzz_asn1_print.o
:info:build   CC       fuzz_asn1_sig_value.o
:info:build   CC       fuzzer.o
:info:build   CC       fuzz_pkcs15_decode.o
:info:build   CC       fuzz_pkcs15_reader.o
:info:build   CC       fuzzer_reader.o
:info:build   CC       fuzz_scconf_parse_string.o
:info:build   CC       fuzz_pkcs15_encode.o
:info:build fuzzer_reader.c:27:49: error: missing field 'finish' initializer [-Werror,-Wmissing-field-initializers]
:info:build static struct sc_reader_operations fuzz_ops = {0};
:info:build                                                 ^
:info:build 1 error generated.
:info:build make[4]: *** [fuzzer_reader.o] Error 1
:info:build make[4]: *** Waiting for unfinished jobs....

Attachments (1)

opensc_main.log (61.7 KB) - added by tehcog (tehcog) 13 months ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 13 months ago by tehcog (tehcog)

Attachment: opensc_main.log added

main.log

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: df@… added
Keywords: highsierra sierra elcapitan yosemite mavericks mountainlion lion added
Summary: opensc fails to build on mavericksopensc @0.23.0: error: missing field 'finish' initializer

It's failing with this error on 10.7–10.13.

It should be reported to the developers.

A workaround might be to disable -Werror.

Also, I wish silent rules were disabled.

comment:2 Changed 12 months ago by Christopher Nielsen <mascguy@…>

In cd4a5faa366de7008462b012625645b761e8a9e4/macports-ports (master):

opensc: disable silent rules

See: #68153

comment:3 Changed 12 months ago by Christopher Nielsen <mascguy@…>

Owner: set to Christopher Nielsen <mascguy@…>
Resolution: fixed
Status: newclosed

In c9ae3871a4c465aff351c22c339d268dd87b2a29/macports-ports (master):

opensc: multiple fixes for build issues

  • Compile with C standard set to 99
  • Enable C extensions for memset_s
  • Disable strict compilation warnings/errors across-the-board

Fixes: #68153

Note: See TracTickets for help on using tickets.