Opened 3 weeks ago

Last modified 3 weeks ago

#66632 assigned defect

ismrmrd @1.13.1: error: 'sprintf' is deprecated

Reported by: ryandesign (Ryan Schmidt) Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: ventura Cc:
Port: ismrmrd

Description

https://build.macports.org/builders/ports-13_x86_64-builder/builds/10735/steps/install-port/logs/stdio

In file included from /opt/local/libexec/boost/1.76/include/boost/lexical_cast/try_lexical_convert.hpp:44:
In file included from /opt/local/libexec/boost/1.76/include/boost/lexical_cast/detail/converter_lexical.hpp:54:
/opt/local/libexec/boost/1.76/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:285:21: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
                    sprintf(begin,
                    ^

Perhaps this problem is already fixed in a newer version of boost? Alternately, modify the build so it does not use -Werror.

Change History (1)

comment:1 Changed 3 weeks ago by kencu (Ken)

https://developer.apple.com/forums/thread/714675

we might see many ports that build with Werror fail, as sprintf has not been deprecated in the standard.

Last edited 3 weeks ago by kencu (Ken) (previous) (diff)
Note: See TracTickets for help on using tickets.