You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to build it as sudo, but still get those errors.
The full log is here, could you please help me?
Thanks a lot.
(base) Ander@AI-STUDIO reapack % cmake --build build
[1/6] Building CXX object src/CMakeFiles/reapack.dir/hash.cpp.o
FAILED: src/CMakeFiles/reapack.dir/hash.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -DCURL_DISABLE_DEPRECATION -DSWELL_PROVIDED_BY_APP -DWDL_NO_DEFINE_MINMAX -I/Volumes/Storage/Repositories/reapack/vendor -I/Volumes/Storage/Repositories/reapack/vendor/reaper-sdk/sdk -I/Volumes/Storage/Repositories/reapack/build/src -I/Volumes/Storage/Repositories/reapack/vendor/WDL/WDL/zlib -I/Volumes/Storage/Repositories/reapack/vendor/WDL -I/Volumes/Storage/Repositories/reapack/vendor/WDL/WDL -isystem /opt/homebrew/include -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/libxml2 -g -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk -fPIC -fvisibility=hidden -fsigned-char -fstack-protector-strong -fdiagnostics-color -Wall -Wextra -Werror -Wno-unused-parameter -Wno-missing-field-initializers -MD -MT src/CMakeFiles/reapack.dir/hash.cpp.o -MF src/CMakeFiles/reapack.dir/hash.cpp.o.d -o src/CMakeFiles/reapack.dir/hash.cpp.o -c /Volumes/Storage/Repositories/reapack/src/hash.cpp
/Volumes/Storage/Repositories/reapack/src/hash.cpp:301:5: 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(&m_value[i * 2], "%02x", multihash[i]);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("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.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
1 error generated.
[4/6] Building CXX object src/CMakeFiles/reapack.dir/database.cpp.o
FAILED: src/CMakeFiles/reapack.dir/database.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -DCURL_DISABLE_DEPRECATION -DSWELL_PROVIDED_BY_APP -DWDL_NO_DEFINE_MINMAX -I/Volumes/Storage/Repositories/reapack/vendor -I/Volumes/Storage/Repositories/reapack/vendor/reaper-sdk/sdk -I/Volumes/Storage/Repositories/reapack/build/src -I/Volumes/Storage/Repositories/reapack/vendor/WDL/WDL/zlib -I/Volumes/Storage/Repositories/reapack/vendor/WDL -I/Volumes/Storage/Repositories/reapack/vendor/WDL/WDL -isystem /opt/homebrew/include -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/libxml2 -g -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk -fPIC -fvisibility=hidden -fsigned-char -fstack-protector-strong -fdiagnostics-color -Wall -Wextra -Werror -Wno-unused-parameter -Wno-missing-field-initializers -MD -MT src/CMakeFiles/reapack.dir/database.cpp.o -MF src/CMakeFiles/reapack.dir/database.cpp.o.d -o src/CMakeFiles/reapack.dir/database.cpp.o -c /Volumes/Storage/Repositories/reapack/src/database.cpp
/Volumes/Storage/Repositories/reapack/src/database.cpp:88:3: 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(sql, "PRAGMA user_version = %" PRId32, value);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("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.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Volumes/Storage/Repositories/reapack/src/database.cpp:113:3: 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(sql, "SAVEPOINT sp%zu", m_savePoint++);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("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.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Volumes/Storage/Repositories/reapack/src/database.cpp:121:3: 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(sql, "ROLLBACK TO SAVEPOINT sp%zu", --m_savePoint);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("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.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Volumes/Storage/Repositories/reapack/src/database.cpp:129:3: 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(sql, "RELEASE SAVEPOINT sp%zu", --m_savePoint);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("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.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
4 errors generated.
[5/6] Building CXX object src/CMakeFiles/reapack.dir/version.cpp.o
ninja: build stopped: subcommand failed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone, I'm trying to make a translation to ReaPack. So I need try to build original version once to test my workflow.
My device:
Apple M2 Ultra
macOS Sonoma 14.2.1
I installed Ninja 1.11.1, CMake 3.28.3, PHP 8.3.3, then I try to run
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
. No errpr happend.But when I build it, using
cmake --build build
, I get:I try to build it as sudo, but still get those errors.
The full log is here, could you please help me?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions