#67227 closed defect (fixed)

xmlsec @1.3.0: error: a function declaration without a prototype is deprecated in all versions of C

Reported by: kwolcott Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: xmlsec

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

crypto.c:415:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
xmlSecNssGetInternalKeySlot()
                           ^
                            void
1 error generated.
make[3]: *** [libxmlsec1_nss_la-crypto.lo] Error 1

Attachments (1)

xmlsec_main.log (204.4 KB) - added by kwolcott 13 months ago.

Download all attachments as: .zip

Change History (6)

Changed 13 months ago by kwolcott

Attachment: xmlsec_main.log added

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

Cc: Schamschula removed
Description: modified (diff)
Owner: set to Schamschula
Status: newassigned
Summary: xmlsec port fails to install from source, fails in crypto.cxmlsec @1.3.0: error: a function declaration without a prototype is deprecated in all versions of C

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

This is a new error as of clang 15. We don't see the problem on our buildbot workers because we don't use the newest version of Xcode on the macOS 13 builder.

If -Werror had not been used, it would just be a warning, not an error; it's recommended not to use -Werror in ports for reasons such as these (new compilers being stricter than older ones).

I don't see any attempt in the log to fetch our binaries, so perhaps you forced a build from source? If you allow our binaries to be used, you won't encounter this error.

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

That said, this is an actual bug in xmlsec, and I've reported it to them here: https://github.com/lsh123/xmlsec/issues/627

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

Cc: ryandesign added

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

Resolution: fixed
Status: assignedclosed

In 1f356a2147f4a542b472dd34e102fe96c13c2f52/macports-ports (master):

xmlsec: Fix build with Xcode 14.3+ / clang 15+

Closes: #67227

Note: See TracTickets for help on using tickets.