This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 8th, 2013  |  syntax: None  |  size: 5.67 KB  |  views: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. rename.c:78:4: error: #error No getopt functions
  2.    #error No getopt functions
  3.     ^
  4. rename.c: In function ‘main’:
  5. rename.c:118:19: error: array type has incomplete element type
  6.      struct option lopt[] = {
  7.                    ^
  8. rename.c:132:15: error: ‘strstr’ undeclared (first use in this function)
  9.      StrStr  = strstr;
  10.                ^
  11. rename.c:132:15: note: each undeclared identifier is reported only once for each function it appears in
  12. rename.c:133:15: error: ‘strncmp’ undeclared (first use in this function)
  13.      StrnCmp = strncmp;
  14.                ^
  15. rename.c:135:5: warning: implicit declaration of function ‘getopt_long’ [-Wimplicit-function-declaration]
  16.      while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != EOF)  {
  17.      ^
  18. rename.c:159:21: error: ‘optarg’ undeclared (first use in this function)
  19.       if (setpattern(optarg))  
  20.                      ^
  21. rename.c:164:6: warning: implicit declaration of function ‘geteuid’ [-Wimplicit-function-declaration]
  22.       if (geteuid() != 0)  {
  23.       ^
  24. rename.c:197:7: error: ‘optind’ undeclared (first use in this function)
  25.   if ((optind + 2) > argc)  {
  26.        ^
  27. rename.c:203:2: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
  28.   } else if (strcmp(argv[optind], argv[optind+1]))
  29.   ^
  30. rename.c:214:5: warning: implicit declaration of function ‘getcwd’ [-Wimplicit-function-declaration]
  31.      if (getcwd(cwd, SVRBUF) == NULL)  {
  32.      ^
  33. rename.c:214:29: warning: comparison between pointer and integer [enabled by default]
  34.      if (getcwd(cwd, SVRBUF) == NULL)  {
  35.                              ^
  36. rename.c:233:3: warning: implicit declaration of function ‘chdir’ [-Wimplicit-function-declaration]
  37.    chdir(cwd);
  38.    ^
  39. rename.c:118:19: warning: unused variable ‘lopt’ [-Wunused-variable]
  40.      struct option lopt[] = {
  41.                    ^
  42. rename.c: In function ‘change_name’:
  43. rename.c:292:5: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration]
  44.      strncpy(new, oldname, SVRBUF);
  45.      ^
  46. rename.c:292:5: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
  47. rename.c:323:2: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
  48.   n -= strlen(p) - pnlen;
  49.   ^
  50. rename.c:323:7: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
  51.   n -= strlen(p) - pnlen;
  52.        ^
  53. rename.c:347:2: warning: implicit declaration of function ‘chown’ [-Wimplicit-function-declaration]
  54.   if (chown(new, pwd->pw_uid, pwd->pw_gid) < 0)
  55.   ^
  56. rename.c: In function ‘match_regexpr’:
  57. rename.c:373:2: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
  58.   strncpy(tmp, str + pmatch->rm_eo, SVRBUF);
  59.   ^
  60. rename.c:377:7: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
  61.   n -= strlen(str);
  62.        ^
  63. rename.c:379:2: warning: implicit declaration of function ‘strncat’ [-Wimplicit-function-declaration]
  64.   strncat(str, tmp, n);
  65.   ^
  66. rename.c:379:2: warning: incompatible implicit declaration of built-in function ‘strncat’ [enabled by default]
  67. rename.c: In function ‘match_pattern’:
  68. rename.c:395:2: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
  69.   strncpy(tmp, p + pnlen, SVRBUF);
  70.   ^
  71. rename.c: In function ‘match_backward’:
  72. rename.c:422:10: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
  73.      rs = strlen(str) - pnlen;
  74.           ^
  75. rename.c:431:6: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
  76.       strncpy(str, subst, l);
  77.       ^
  78. rename.c:443:6: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
  79.       strncpy(tmp, p + pnlen, SVRBUF);
  80.       ^
  81. rename.c: In function ‘setpattern’:
  82. gcc -Wall -O3  -DHAVE_CONFIG_H -DVERSION=\"1.3\" -D_FORTIFY_SOURCE=2  -c -o misc.o misc.c
  83. rename.c:471:10: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
  84.   pnlen = strlen(pattern);
  85.           ^
  86. rename.c:500:16: error: ‘strncasecmp’ undeclared (first use in this function)
  87.       StrnCmp = strncasecmp;
  88.                 ^
  89. In file included from /usr/include/stdlib.h:492:0,
  90.                  from rename.c:29:
  91. rename.c: In function ‘do_rename’:
  92. rename.c:543:15: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
  93.   new = alloca(strlen(oldp) + strlen(newp) + 5);
  94.                ^
  95. rename.c:544:2: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
  96.   strcpy(new, newp);
  97.   ^
  98. rename.c:544:2: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
  99. rename.c:551:2: warning: implicit declaration of function ‘strcat’ [-Wimplicit-function-declaration]
  100.   strcat(new, oldp);
  101.   ^
  102. rename.c:551:2: warning: incompatible implicit declaration of built-in function ‘strcat’ [enabled by default]
  103. In file included from /usr/include/stdlib.h:492:0,
  104.                  from rename.c:29:
  105. rename.c:553:15: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
  106.   new = alloca(strlen(newp) + 1);
  107.                ^
  108. rename.c:554:2: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
  109.   strcpy(new, newp);
  110.   ^
  111. rename.c:569:6: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
  112.       read(0, buf, 64);
  113.       ^
  114. make: *** [rename.o] Error 1
clone this paste RAW Paste Data