Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. [root@d0a671fc9da1 nifi-minifi-cpp]# gcc --version
  2. gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
  3. Copyright (C) 2015 Free Software Foundation, Inc.
  4. This is free software; see the source for copying conditions. There is NO
  5. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  6.  
  7. [root@d0a671fc9da1 nifi-minifi-cpp]# g++ --version
  8. g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
  9. Copyright (C) 2015 Free Software Foundation, Inc.
  10. This is free software; see the source for copying conditions. There is NO
  11. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12.  
  13. [root@d0a671fc9da1 nifi-minifi-cpp]# yum install -y boost-devel libxml2-devel
  14. Loaded plugins: fastestmirror, ovl
  15. Loading mirror speeds from cached hostfile
  16. * base: mirrors.umflint.edu
  17. * extras: mirror.trouble-free.net
  18. * updates: mirrors.centos.webair.com
  19. Package boost-devel-1.53.0-25.el7.x86_64 already installed and latest version
  20. Package libxml2-devel-2.9.1-6.el7_2.3.x86_64 already installed and latest version
  21. Nothing to do
  22. [root@d0a671fc9da1 nifi-minifi-cpp]# make
  23. mkdir -p ./build
  24. mkdir -p ./target
  25. make -C thirdparty/uuid
  26. make[1]: Entering directory `/nifi-minifi-cpp/thirdparty/uuid'
  27. gcc -g -Wall -rdynamic -O0 -ggdb -g3 -fexceptions -Wno-write-strings -fvisibility=hidden -fPIC -I.. ./tst_uuid.c libuuid.a -o ./tst_uuid
  28. make[1]: Leaving directory `/nifi-minifi-cpp/thirdparty/uuid'
  29. g++ -Os -fexceptions -fpermissive -Wno-write-strings -std=c++11 -fPIC -Wall -g -Wno-unused-private-field -I./inc -I./src -I./test -I./thirdparty -I/usr/include/libxml2 -I./thirdparty/yaml-cpp-yaml-cpp-0.5.3/include -o build/ExecuteProcess.o -c src/ExecuteProcess.cpp
  30. src/ExecuteProcess.cpp: In member function 'virtual void ExecuteProcess::onTrigger(ProcessContext*, ProcessSession*)':
  31. src/ExecuteProcess.cpp:101:2: error: 'strcpy' is not a member of 'std'
  32. std::strcpy(cstr, _fullCommand.c_str());
  33. ^
  34. src/ExecuteProcess.cpp:101:2: note: suggested alternative:
  35. In file included from ./inc/TimeUtil.h:25:0,
  36. from src/ExecuteProcess.cpp:20:
  37. /usr/include/string.h:125:14: note: 'strcpy'
  38. extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
  39. ^
  40. src/ExecuteProcess.cpp:102:12: error: 'strtok' is not a member of 'std'
  41. char *p = std::strtok (cstr, " ");
  42. ^
  43. src/ExecuteProcess.cpp:102:12: note: suggested alternative:
  44. In file included from ./inc/TimeUtil.h:25:0,
  45. from src/ExecuteProcess.cpp:20:
  46. /usr/include/string.h:344:14: note: 'strtok'
  47. extern char *strtok (char *__restrict __s, const char *__restrict __delim)
  48. ^
  49. src/ExecuteProcess.cpp:108:7: error: 'strtok' is not a member of 'std'
  50. p = std::strtok(NULL, " ");
  51. ^
  52. src/ExecuteProcess.cpp:108:7: note: suggested alternative:
  53. In file included from ./inc/TimeUtil.h:25:0,
  54. from src/ExecuteProcess.cpp:20:
  55. /usr/include/string.h:344:14: note: 'strtok'
  56. extern char *strtok (char *__restrict __s, const char *__restrict __delim)
  57. ^
  58. src/ExecuteProcess.cpp:198:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  59. if (numRead == (sizeof(buffer) - totalRead))
  60. ^
  61. At global scope:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement