#66632 closed defect (fixed)

ismrmrd @1.13.1: error: 'sprintf' is deprecated

Reported by: ryandesign (Ryan Carsten 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 (2)

comment:1 Changed 23 months 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 23 months ago by kencu (Ken) (previous) (diff)

comment:2 Changed 22 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 647feebef5341be57a195f156a8290f09ac6725c/macports-ports (master):

ismrmrd: fixups

  • remove Werror to fix build on newer systems

closes: #66632

while here:

  • fix testing
    • use rpaths during the build to allow the proper libraries to be found when testing
    • these are rewritten on installation to full paths
  • links to zlib so declare a lib dep on that

/opt/local/lib/libismrmrd.1.13.1.dylib:

/opt/local/lib/libismrmrd.1.13.dylib (compatibility version 1.13.0, current version 1.13.1)
/opt/local/lib/libhdf5.310.dylib (compatibility version 311.0.0, current version 311.0.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.13)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
/opt/local/lib/libpugixml.1.dylib (compatibility version 1.0.0, current version 1.13.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.36.0)

Note: See TracTickets for help on using tickets.