Unable to compile the latest 3.2.6 tarball #712
sandeepkc28
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to compile the latest 3.2.6 release on macOS (ARM arch) by issuing a "make" command. Got the following errors. How do I fix them?
[ 41%] Built target ext
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/bit_buffer.cpp.o
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/bit_string.cpp.o
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/bits.cpp.o
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/common.cpp.o
/Users/sandeepchavan/projects/ueransim_rel/UERANSIM-3.2.6/src/utils/common.cpp:275:9: warning: '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. [-Wdeprecated-declarations]
sprintf(buffer, "%d.%d.%d.%d", address.getI(0), address.getI(1), address.getI(2), address.getI(3));
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.5.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.5.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) attribute((deprecated(_msg)))
^
1 warning generated.
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/common_types.cpp.o
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/concurrent_map.cpp.o
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/io.cpp.o
/Users/sandeepchavan/projects/ueransim_rel/UERANSIM-3.2.6/src/utils/io.cpp:112:9: warning: variable 'success' set but not used [-Wunused-but-set-variable]
int success = 0;
^
1 warning generated.
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/json.cpp.o
[ 41%] Building CXX object src/utils/CMakeFiles/utils.dir/libc_error.cpp.o
/Users/sandeepchavan/projects/ueransim_rel/UERANSIM-3.2.6/src/utils/libc_error.cpp:14:20: error: implicit instantiation of undefined template 'std::basic_string'
static std::string PostfixError(const std::string &what, int err)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__fwd/string.h:46:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
^
/Users/sandeepchavan/projects/ueransim_rel/UERANSIM-3.2.6/src/utils/libc_error.cpp:17:17: error: implicit instantiation of undefined template 'std::basic_string'
std::string str(msg);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__fwd/string.h:46:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
^
/Users/sandeepchavan/projects/ueransim_rel/UERANSIM-3.2.6/src/utils/libc_error.cpp:19:16: error: implicit instantiation of undefined template 'std::basic_string'
return what.length() > 0 ? what + " " + str : str;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__fwd/string.h:46:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
^
/Users/sandeepchavan/projects/ueransim_rel/UERANSIM-3.2.6/src/utils/libc_error.cpp:19:37: error: invalid operands to binary expression ('const std::string' (aka 'const basic_string') and 'const char[2]')
return what.length() > 0 ? what + " " + str : str;
~~~~ ^ ~~~
4 errors generated.
make[3]: *** [src/utils/CMakeFiles/utils.dir/libc_error.cpp.o] Error 1
make[2]: *** [src/utils/CMakeFiles/utils.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [build] Error 2
sandeepchavan@Sandeeps-MacBook-Pro ~/projects/ueransim_rel/UERANSIM-3.2.6$
Beta Was this translation helpful? Give feedback.
All reactions