Skip to content

Instantly share code, notes, and snippets.

@woosley
Created October 13, 2017 03:28
Show Gist options
  • Save woosley/29d6e4fcb4df3f18a372168c25c6ed51 to your computer and use it in GitHub Desktop.
Save woosley/29d6e4fcb4df3f18a372168c25c6ed51 to your computer and use it in GitHub Desktop.
netdata bash build output
[/usr/src/netdata.git/makeself/tmp/bash-4.4]# make -j1
rm -f mksyntax
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/opt/netdata/share/locale"' -DPACKAGE='"bash"'
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -static -L./lib/termcap -static -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -
Wno-parentheses -Wno-format-security -o mksyntax ./mksyntax.c
./mksyntax.c: In function 'main':
./mksyntax.c:322:19: warning: implicit declaration of function 'strrchr' [-Wimplicit-function-declaration]
if ((progname = strrchr (argv[0], '/')) == 0)
^~~~~~~
./mksyntax.c:322:19: warning: incompatible implicit declaration of built-in function 'strrchr'
./mksyntax.c:322:19: note: include '<string.h>' or provide a declaration of 'strrchr'
./mksyntax.c:330:17: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration]
while ((opt = getopt (argc, argv, "do:")) != EOF)
^~~~~~
rm -f syntax.c
./mksyntax -o syntax.c
/bin/sh ./support/mkversion.sh -b -S . -s release -d 4.4 -o newversion.h \
&& mv newversion.h version.h
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/opt/netdata/share/locale"' -DPACKAGE='"bash"'
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -DBUILDTOOL -c -o buildversion.o ./version.c
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/opt/netdata/share/locale"' -DPACKAGE='"bash"'
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -static -L./lib/termcap -static -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -
Wno-parentheses -Wno-format-security -o bashversion ./support/bashversion.c buildversion.o
./support/bashversion.c: In function 'main':
./support/bashversion.c:70:18: warning: implicit declaration of function 'strrchr' [-Wimplicit-function-declaration]
if (progname = strrchr (argv[0], '/'))
^~~~~~~
./support/bashversion.c:70:18: warning: incompatible implicit declaration of built-in function 'strrchr'
./support/bashversion.c:70:18: note: include '<string.h>' or provide a declaration of 'strrchr'
./support/bashversion.c:76:17: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration]
while ((opt = getopt(argc, argv, "hrvmpslx")) != EOF)
^~~~~~
./support/bashversion.c:125:7: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
strcpy (dv, dist_version);
^~~~~~
./support/bashversion.c:125:7: warning: incompatible implicit declaration of built-in function 'strcpy'
./support/bashversion.c:125:7: note: include '<string.h>' or provide a declaration of 'strcpy'
./support/bashversion.c:126:12: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
rv = strchr (dv, '.');
^~~~~~
./support/bashversion.c:126:12: warning: incompatible implicit declaration of built-in function 'strchr'
./support/bashversion.c:126:12: note: include '<string.h>' or provide a declaration of 'strchr'
***********************************************************
* *
* GNU bash, version 4.4.0(1)-release (x86_64-unknown-linux-gnu)
* *
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/opt/netdata/share/locale"' -DPACKAG[303/1964]
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c shell.c
In file included from shell.h:28:0,
from shell.c:53:
/usr/include/ctype.h:12:7: error: expected identifier or '(' before 'int'
int isblank(int);
^
syntax.h:103:27: error: expected ')' before '==' token
# define isblank(x) ((x) == ' ' || (x) == '\t')
^
In file included from quit.h:24:0,
from shell.h:33,
from shell.c:53:
sig.h:35:9: error: unknown type name 'RETSIGTYPE'
typedef RETSIGTYPE SigHandler __P((int));
^~~~~~~~~~
sig.h:34:20: error: unknown type name 'RETSIGTYPE'
#define sighandler RETSIGTYPE
^
sig.h:116:8: note: in expansion of macro 'sighandler'
extern sighandler termsig_sighandler __P((int));
^~~~~~~~~~
sig.h:34:20: error: unknown type name 'RETSIGTYPE'
#define sighandler RETSIGTYPE
^
sig.h:118:8: note: in expansion of macro 'sighandler'
extern sighandler sigint_sighandler __P((int));
^~~~~~~~~~
sig.h:34:20: error: unknown type name 'RETSIGTYPE'
#define sighandler RETSIGTYPE
^
sig.h:126:8: note: in expansion of macro 'sighandler'
extern sighandler sigwinch_sighandler __P((int));
^~~~~~~~~~
sig.h:34:20: error: unknown type name 'RETSIGTYPE'
#define sighandler RETSIGTYPE
^
sig.h:130:8: note: in expansion of macro 'sighandler'
extern sighandler sigterm_sighandler __P((int));
^~~~~~~~~~
sig.h:34:20: error: unknown type name 'RETSIGTYPE'
#define sighandler RETSIGTYPE
^
sig.h:135:8: note: in expansion of macro 'sighandler'
extern sighandler trap_handler __P((int));
^~~~~~~~~~
In file included from shell.h:42:0,
from shell.c:53:
externs.h:193:13: error: conflicting types for 'dprintf'
extern void dprintf __P((int, const char *, ...)) __attribute__((__format__ (printf, 2, 3)));
^~~~~~~
In file included from /usr/include/fortify/stdio.h:20:0,
from shell.c:37:
/usr/include/stdio.h:138:5: note: previous declaration of 'dprintf' was here
int dprintf(int, const char *__restrict, ...);
^~~~~~~
shell.c: In function 'main':
shell.c:409:33: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
shell.c: In function 'main': [247/1964]
shell.c:409:33: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
while (debugging_login_shell) sleep (3);
^~~~~
shell.c:535:8: warning: implicit declaration of function 'isatty' [-Wimplicit-function-declaration]
isatty (fileno (stdin)) && /* Input is a terminal and */
^~~~~~
shell.c:596:17: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
emacs_term = strstr (inside_emacs, ",term:") != 0;
^~~~~~
shell.c:596:17: warning: incompatible implicit declaration of built-in function 'strstr'
shell.c:596:17: note: include '<string.h>' or provide a declaration of 'strstr'
shell.c:602:17: warning: incompatible implicit declaration of built-in function 'strstr'
emacs_term = strstr (emacs, " (term:") != 0;
^~~~~~
shell.c:602:17: note: include '<string.h>' or provide a declaration of 'strstr'
In file included from shell.h:29:0,
from shell.c:53:
general.h:147:42: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
#define STREQ(a, b) ((a)[0] == (b)[0] && strcmp(a, b) == 0)
^
shell.c:603:29: note: in expansion of macro 'STREQ'
in_emacs = emacs_term || STREQ (emacs, "t");
^~~~~
general.h:149:30: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
: ((a)[0] == (b)[0] && strncmp(a, b, n) == 0))
^
shell.c:613:41: note: in expansion of macro 'STREQN'
running_under_emacs = in_emacs || STREQN (term, "emacs", 5);
^~~~~~
shell.c: In function 'uidget':
shell.c:1256:7: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration]
u = getuid ();
^~~~~~
shell.c:1265:22: warning: implicit declaration of function 'getgid' [-Wimplicit-function-declaration]
current_user.gid = getgid ();
^~~~~~
shell.c:1266:23: warning: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration]
current_user.euid = geteuid ();
^~~~~~~
shell.c:1267:23: warning: implicit declaration of function 'getegid' [-Wimplicit-function-declaration]
current_user.egid = getegid ();
^~~~~~~
shell.c: In function 'disable_priv_mode':
shell.c:1279:7: warning: implicit declaration of function 'setuid' [-Wimplicit-function-declaration]
if (setuid (current_user.uid) < 0)
^~~~~~
shell.c:1288:7: warning: implicit declaration of function 'setgid' [-Wimplicit-function-declaration]
if (setgid (current_user.gid) < 0)
^~~~~~
In file included from shell.h:29:0,
from shell.c:53:
shell.c: In function 'run_one_command':
general.h:69:33: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1399:31: note: in expansion of macro 'savestring'
return (parse_and_execute (savestring (command), "-c", SEVAL_NOHIST));
shell.c:1399:31: note: in expansion of macro 'savestring' [191/1964]
return (parse_and_execute (savestring (command), "-c", SEVAL_NOHIST));
^~~~~~~~~~
general.h:69:33: warning: incompatible implicit declaration of built-in function 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1399:31: note: in expansion of macro 'savestring'
return (parse_and_execute (savestring (command), "-c", SEVAL_NOHIST));
^~~~~~~~~~
general.h:69:33: note: include '<string.h>' or provide a declaration of 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1399:31: note: in expansion of macro 'savestring'
return (parse_and_execute (savestring (command), "-c", SEVAL_NOHIST));
^~~~~~~~~~
general.h:69:54: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1399:31: note: in expansion of macro 'savestring'
return (parse_and_execute (savestring (command), "-c", SEVAL_NOHIST));
^~~~~~~~~~
general.h:69:54: warning: incompatible implicit declaration of built-in function 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1399:31: note: in expansion of macro 'savestring'
return (parse_and_execute (savestring (command), "-c", SEVAL_NOHIST));
^~~~~~~~~~
general.h:69:54: note: include '<string.h>' or provide a declaration of 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1399:31: note: in expansion of macro 'savestring'
return (parse_and_execute (savestring (command), "-c", SEVAL_NOHIST));
^~~~~~~~~~
shell.c: In function 'bind_args':
general.h:69:33: warning: incompatible implicit declaration of built-in function 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1420:17: note: in expansion of macro 'savestring'
shell_name = savestring (args->word->word);
^~~~~~~~~~
general.h:69:33: note: include '<string.h>' or provide a declaration of 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1420:17: note: in expansion of macro 'savestring'
shell_name = savestring (args->word->word);
^~~~~~~~~~
general.h:69:54: warning: incompatible implicit declaration of built-in function 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1420:17: note: in expansion of macro 'savestring'
shell_name = savestring (args->word->word);
^~~~~~~~~~
general.h:69:54: note: include '<string.h>' or provide a declaration of 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1420:17: note: in expansion of macro 'savestring'
shell_name = savestring (args->word->word);
^~~~~~~~~~
shell_name = savestring (args->word->word); [135/1964]
^~~~~~~~~~
shell.c: In function 'open_shell_script':
general.h:69:33: warning: incompatible implicit declaration of built-in function 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1484:14: note: in expansion of macro 'savestring'
filename = savestring (script_name);
^~~~~~~~~~
general.h:69:33: note: include '<string.h>' or provide a declaration of 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1484:14: note: in expansion of macro 'savestring'
filename = savestring (script_name);
^~~~~~~~~~
general.h:69:54: warning: incompatible implicit declaration of built-in function 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1484:14: note: in expansion of macro 'savestring'
filename = savestring (script_name);
^~~~~~~~~~
general.h:69:54: note: include '<string.h>' or provide a declaration of 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1484:14: note: in expansion of macro 'savestring'
filename = savestring (script_name);
^~~~~~~~~~
shell.c:1551:26: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration]
if (fd_is_tty == 0 && (lseek (fd, 0L, 1) != -1))
^~~~~
shell.c:1556:20: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
sample_len = read (fd, sample, sizeof (sample));
^~~~
shell.c:1612:7: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
close (fd);
^~~~~
In file included from shell.h:29:0,
from shell.c:53:
shell.c: In function 'set_shell_name':
general.h:69:33: warning: incompatible implicit declaration of built-in function 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1709:20: note: in expansion of macro 'savestring'
dollar_vars[0] = savestring (shell_name);
^~~~~~~~~~
general.h:69:33: note: include '<string.h>' or provide a declaration of 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1709:20: note: in expansion of macro 'savestring'
dollar_vars[0] = savestring (shell_name);
^~~~~~~~~~
general.h:69:54: warning: incompatible implicit declaration of built-in function 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1709:20: note: in expansion of macro 'savestring'
dollar_vars[0] = savestring (shell_name);
^~~~~~~~~~
general.h:69:54: note: include '<string.h>' or provide a declaration of 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1709:20: note: in expansion of macro 'savestring'
dollar_vars[0] = savestring (shell_name);
^~~~~~~~~~
shell.c: In function 'get_current_user_info':
shell.c:1765:15: warning: implicit declaration of function 'getpwuid' [-Wimplicit-function-declaration]
entry = getpwuid (current_user.uid);
^~~~~~~~
shell.c:1765:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
entry = getpwuid (current_user.uid);
^
In file included from shell.h:29:0,
from shell.c:53:
general.h:69:33: warning: incompatible implicit declaration of built-in function 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1769:29: note: in expansion of macro 'savestring'
current_user.user_name = savestring (entry->pw_name);
^~~~~~~~~~
general.h:69:33: note: include '<string.h>' or provide a declaration of 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1769:29: note: in expansion of macro 'savestring'
current_user.user_name = savestring (entry->pw_name);
^~~~~~~~~~
general.h:69:54: warning: incompatible implicit declaration of built-in function 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1769:29: note: in expansion of macro 'savestring'
current_user.user_name = savestring (entry->pw_name);
^~~~~~~~~~
general.h:69:54: note: include '<string.h>' or provide a declaration of 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1769:29: note: in expansion of macro 'savestring'
current_user.user_name = savestring (entry->pw_name);
^~~~~~~~~~
shell.c:1769:46: error: dereferencing pointer to incomplete type 'struct passwd'
current_user.user_name = savestring (entry->pw_name);
^
general.h:69:62: note: in definition of macro 'savestring'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1777:27: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
current_user.user_name = _("I have no name!");
^
In file included from shell.h:29:0,
from shell.c:53:
general.h:69:33: warning: incompatible implicit declaration of built-in function 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1778:29: note: in expansion of macro 'savestring'
current_user.user_name = savestring (current_user.user_name);
^~~~~~~~~~
general.h:69:33: note: include '<string.h>' or provide a declaration of 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1778:29: note: in expansion of macro 'savestring'
current_user.user_name = savestring (current_user.user_name);
^~~~~~~~~~
general.h:69:54: warning: incompatible implicit declaration of built-in function 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1778:29: note: in expansion of macro 'savestring'
current_user.user_name = savestring (current_user.user_name);
^~~~~~~~~~
general.h:69:54: note: include '<string.h>' or provide a declaration of 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1778:29: note: in expansion of macro 'savestring'
current_user.user_name = savestring (current_user.user_name);
^~~~~~~~~~
shell.c: In function 'shell_initialize':
general.h:69:33: warning: incompatible implicit declaration of built-in function 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1821:22: note: in expansion of macro 'savestring'
current_host_name = savestring (hostname);
^~~~~~~~~~
general.h:69:33: note: include '<string.h>' or provide a declaration of 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1821:22: note: in expansion of macro 'savestring'
current_host_name = savestring (hostname);
^~~~~~~~~~
general.h:69:54: warning: incompatible implicit declaration of built-in function 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1821:22: note: in expansion of macro 'savestring'
current_host_name = savestring (hostname);
^~~~~~~~~~
general.h:69:54: note: include '<string.h>' or provide a declaration of 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1821:22: note: in expansion of macro 'savestring'
current_host_name = savestring (hostname);
^~~~~~~~~~
shell.c: In function 'show_shell_usage':
general.h:69:33: warning: incompatible implicit declaration of built-in function 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1942:18: note: in expansion of macro 'savestring'
set_opts = savestring (shell_builtins[i].short_doc);
^~~~~~~~~~
general.h:69:33: note: include '<string.h>' or provide a declaration of 'strcpy'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1942:18: note: in expansion of macro 'savestring'
set_opts = savestring (shell_builtins[i].short_doc);
^~~~~~~~~~
general.h:69:54: warning: incompatible implicit declaration of built-in function 'strlen'
# define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x))
^
shell.c:1942:18: note: in expansion of macro 'savestring'
set_opts = savestring (shell_builtins[i].short_doc);
^~~~~~~~~~
shell.c:1945:11: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
s = strchr (set_opts, '[');
^~~~~~
shell.c:1945:11: warning: incompatible implicit declaration of built-in function 'strchr'
shell.c:1945:11: note: include '<string.h>' or provide a declaration of 'strchr'
make: *** [Makefile:99: shell.o] Error 1
[root@localhost netdata]# exit
exit
Script done on Fri 13 Oct 2017 02:16:32 AM UTC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment