Build of echat with android toolchain

The build took 00h 00m 47s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
6,398 ansic
57 makefile
4 sh
6,459 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: echat 0.04beta1-5 (Tue Apr 4 20:52:36 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# Compiling chat_chnl.c
# Compiling chat_cmnd.c
# Making echat 0.04beta1
# Compiling chat_conf.c
# LIBS = -lcurses
# CFLAGS = -Wall -g -O2
# DEFINES = -DFREEBSD -DCHARSET
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# chat_conf.c:8:20: error: no include path in which to search for string.h
# #include
# ^
# chat_conf.c:9:20: error: no include path in which to search for unistd.h
# #include
# ^
# chat_chnl.c:8:20: error: no include path in which to search for string.h
# #include
# ^
# In file included from chat_conf.c:10:0:
# echat.h:11:20: error: no include path in which to search for stdlib.h
# #include
# ^
# In file included from chat_chnl.c:9:0:
# echat.h:11:20: error: no include path in which to search for stdlib.h
# #include
# ^
# echat.h:12:19: error: no include path in which to search for stdio.h
# #include
# ^
# echat.h:12:19: error: no include path in which to search for stdio.h
# #include
# ^
# chat_chnl.c: In function 'chnl_list':
# chat_chnl.c:15:9: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration]
# snprintf(status->info.chnlslist, STR_SIZE, "%s", status->chnl[n].name);
# ^
# chat_chnl.c:15:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# chat_conf.c:18:1: error: unknown type name 'FILE'
# FILE *config_file;
# ^
# chat_conf.c: In function 'conf_default':
# chat_conf.c:21:5: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
# strncpy(config->nick, DEF_NICK, NICK_MAXLEN);
# ^
# chat_conf.c:21:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# chat_chnl.c: In function 'chnl_parse':
# chat_chnl.c:31:5: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
# strncpy(status->info.chnlslist, config->channel, CHANNEL_MAXLEN); /* FIXME */
# ^
# chat_chnl.c:31:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# chat_chnl.c: In function 'chnl_deny':
# chat_chnl.c:38:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CHNL_OUT, time_get(), status->channel);
# ^
# chat_conf.c: In function 'conf_init':
# chat_chnl.c: In function 'chnl_getnum':
# chat_conf.c:88:5: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration]
# snprintf(config->file, STR_SIZE, "%s/.%s", getenv("HOME"), CNF_ECHATRC);
# ^
# chat_chnl.c:63:9: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# if (!strncmp(status->chnl[n].name, status->channel, CHANNEL_MAXLEN)) return (n);
# ^
# chat_conf.c:88:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# chat_conf.c:88:5: warning: implicit declaration of function 'getenv' [-Wimplicit-function-declaration]
# chat_conf.c:88:5: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
# chat_chnl.c: In function 'chnl_init':
# chat_chnl.c:75:17: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->channel, str, CHANNEL_MAXLEN);
# ^
# chat_conf.c: In function 'conf_getopt':
# chat_chnl.c: In function 'chnl_kill':
# chat_chnl.c:83:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->channel, status->chnl[0].name, CHANNEL_MAXLEN);
# ^
# chat_conf.c:128:5: warning: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
# if (fgets(buf, STR_SIZE, config_file) == NULL) return 0;
# ^
# chat_conf.c:128:46: error: 'NULL' undeclared (first use in this function)
# if (fgets(buf, STR_SIZE, config_file) == NULL) return 0;
# ^
# chat_conf.c:128:46: note: each undeclared identifier is reported only once for each function it appears in
# chat_chnl.c: In function 'chnl_add':
# chat_chnl.c:88:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->chnl[status->channels].name, status->channel, CHANNEL_MAXLEN);
# ^
# chat_chnl.c: In function 'chnl_del':
# chat_chnl.c:97:13: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(&status->chnl[n-1], &status->chnl[n], sizeof(struct chnl_t));
# ^
# chat_chnl.c:97:13: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# chat_chnl.c:99:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(&status->chnl[status->channels], 0, sizeof(struct chnl_t));
# ^
# chat_chnl.c:99:5: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# chat_chnl.c: In function 'chnl_join':
# chat_chnl.c:113:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CHNL_JOIN, time_get(), status->nick, status->channel);
# ^
# chat_conf.c: In function 'conf_atoibool':
# chat_conf.c:182:9: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# !strncmp(value, "1", 2) ||
# ^
# chat_conf.c: In function 'conf_read':
# chat_chnl.c: In function 'chnl_leave':
# chat_conf.c:194:5: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# if (!(config_file = fopen(config->file, "r"))) {
# ^
# chat_chnl.c:133:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CHNL_LEAVE, time_get(), status->nick, status->channel);
# ^
# chat_conf.c:194:23: warning: assignment makes pointer from integer without a cast [enabled by default]
# if (!(config_file = fopen(config->file, "r"))) {
# ^
# chat_conf.c:207:9: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration]
# if (!strncasecmp(option, "nick", OPTION_MAXLEN)) {
# ^
# chat_conf.c:208:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->nick, value, NICK_MAXLEN);
# ^
# chat_chnl.c: In function 'chat_join':
# chat_conf.c:212:13: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# config->gender = atoi(value);
# ^
# chat_chnl.c:158:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->nick, config->nick, NICK_MAXLEN);
# ^
# chat_conf.c:216:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->channel, value, STR_SIZE);
# ^
# chat_chnl.c:166:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->nick, status->channel, NICK_MAXLEN);
# ^
# chat_conf.c:228:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->answer_dnd, value, STR_SIZE);
# ^
# chat_chnl.c:171:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CHNL_JOINP, time_get(), status->nick);
# ^
# chat_conf.c:232:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->answer_away, value, STR_SIZE);
# ^
# chat_conf.c:236:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->answer_off, value, STR_SIZE);
# ^
# chat_chnl.c: In function 'chat_rejoin':
# chat_conf.c:240:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->me_action, value, STR_SIZE);
# ^
# chat_chnl.c:185:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->nick, status->channel, NICK_MAXLEN);
# ^
# chat_conf.c:244:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->favorite, value, STR_SIZE);
# ^
# chat_chnl.c: In function 'chat_leave':
# chat_conf.c:248:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->ignore, value, STR_SIZE);
# ^
# chat_chnl.c:196:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CHNL_LEAVEP, time_get(), status->nick);
# ^
# chat_conf.c:252:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->ban, value, STR_SIZE);
# ^
# chat_conf.c:256:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->address, value, STR_SIZE);
# ^
# chat_chnl.c: In function 'chat_nick':
# chat_chnl.c:212:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->chnl[chnl_getnum()].name, status->nick, NICK_MAXLEN);
# ^
# chat_conf.c:292:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->head_nick, value, VALUE_MAXLEN);
# ^
# chat_conf.c:296:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->head_top, value, VALUE_MAXLEN);
# ^
# chat_conf.c:300:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->head_users, value, VALUE_MAXLEN);
# ^
# chat_conf.c:304:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->ps, value, VALUE_MAXLEN);
# ^
# chat_conf.c:388:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->log_main, value, PATH_SIZE);
# ^
# chat_conf.c:392:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->log_mesg, value, PATH_SIZE);
# ^
# chat_conf.c:396:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(config->log_priv, value, PATH_SIZE);
# ^
# chat_conf.c:444:5: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# if (fclose(config_file)) {
# ^
# chat_conf.c: In function 'conf_write':
# chat_conf.c:458:23: warning: assignment makes pointer from integer without a cast [enabled by default]
# if (!(config_file = fopen(config->file, "w"))) {
# ^
# chat_conf.c:465:5: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(config_file, "nick \"%s\"\n", config->nick);
# ^
# chat_conf.c:465:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# cc1: error: no include path in which to search for stdc-predef.h
# chat_cmnd.c:8:20: error: no include path in which to search for string.h
# #include
# ^
# chat_cmnd.c:9:20: error: no include path in which to search for unistd.h
# #include
# ^
# In file included from chat_cmnd.c:10:0:
# echat.h:11:20: error: no include path in which to search for stdlib.h
# #include
# ^
# echat.h:12:19: error: no include path in which to search for stdio.h
# #include
# ^
# make: *** [Makefile:34: chat_chnl.o] Error 1
# make: *** Waiting for unfinished jobs....
# Compiling chat_cset.c
# chat_cmnd.c: In function 'cmnd_help':
# chat_cmnd.c:21:5: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration]
# if (!strncasecmp(buf, CMD_QUIT, CMD_MAXLEN) || !strncasecmp(buf, CMD_QUIT1, CMD_MAXLEN) || !strncasecmp(buf, CMD_QUIT2, CMD_MAXLEN)) {
# ^
# chat_cmnd.c:22:9: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration]
# snprintf(message, STR_SIZE, CMND_HQUIT, time_get(), CMD_QUIT, CMD_QUIT1, CMD_QUIT2, NAME);
# ^
# chat_cmnd.c:22:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# chat_cmnd.c:27:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HHELP, time_get(), CMD_HELP, CMD_HELP1, CMD_HELP2);
# ^
# chat_cmnd.c:32:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HVERSION, time_get(), CMD_VERSION, CMD_VERSION1);
# ^
# chat_cmnd.c:37:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HSTATUS, time_get(), CMD_STATUS, CMD_STATUS1);
# ^
# chat_cmnd.c:42:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HKEYS, time_get(), CMD_KEYS, CMD_KEYS1);
# ^
# chat_cmnd.c:47:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HVERBOSE, time_get(), CMD_VERBOSE, CMD_VERBOSE1);
# ^
# chat_cmnd.c:52:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HCLEAR, time_get(), CMD_CLEAR, CMD_CLEAR1);
# ^
# chat_cmnd.c:57:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HSHELL, time_get(), CMD_SHELL);
# ^
# chat_cmnd.c:62:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HLOAD, time_get(), CMD_LOAD);
# ^
# chat_cmnd.c:67:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HSAVE, time_get(), CMD_SAVE);
# ^
# chat_cmnd.c:73:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HANSWER, time_get(), CMD_ANSWER, CMD_ANSWER1);
# ^
# chat_cmnd.c:78:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HGENDER, time_get(), CMD_GENDER, CMD_GENDER1);
# ^
# chat_cmnd.c:83:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HMY, time_get(), CMD_MY);
# ^
# chat_cmnd.c:88:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HIGNORE, time_get(), CMD_IGNORE, CMD_IGNORE1);
# ^
# chat_cmnd.c:93:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HFAVORITE, time_get(), CMD_FAVORITE, CMD_FAVORITE1);
# ^
# make: *** [Makefile:35: chat_conf.o] Error 1
# chat_cmnd.c:98:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HBAN, time_get(), CMD_BAN);
# ^
# chat_cmnd.c:103:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HBCAST, time_get(), CMD_BCAST);
# ^
# chat_cmnd.c:108:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HJOIN, time_get(), CMD_JOIN, CMD_JOIN1);
# ^
# chat_cmnd.c:113:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HLEAVE, time_get(), CMD_LEAVE, CMD_LEAVE1);
# ^
# chat_cmnd.c:119:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HNICK, time_get(), CMD_NICK, CMD_NICK1);
# ^
# chat_cmnd.c:124:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HMESG, time_get(), CMD_MESG, CMD_MESG1, CMD_MESG2);
# ^
# chat_cmnd.c:129:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HMASS, time_get(), CMD_MASS);
# ^
# chat_cmnd.c:134:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HEXEC, time_get(), CMD_EXEC);
# ^
# chat_cmnd.c:139:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HME, time_get(), CMD_ME);
# ^
# chat_cmnd.c:144:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HTOPIC, time_get(), CMD_TOPIC, CMD_TOPIC1);
# ^
# chat_cmnd.c:149:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HADD, time_get(), CMD_ADD);
# ^
# chat_cmnd.c:154:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HMODE, time_get(), CMD_MODE, CMD_MODE1);
# ^
# chat_cmnd.c:159:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HNORMAL, time_get(), CMD_NORMAL, CMD_NORMAL1);
# ^
# chat_cmnd.c:164:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HDND, time_get(), CMD_DND, CMD_DND1);
# ^
# chat_cmnd.c:169:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HAWAY, time_get(), CMD_AWAY, CMD_AWAY1);
# ^
# chat_cmnd.c:174:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HOFF, time_get(), CMD_OFF, CMD_OFF1);
# ^
# chat_cmnd.c:179:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HINFO, time_get(), CMD_INFO, CMD_INFO1, CMD_INFO2);
# ^
# chat_cmnd.c:184:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HBEEP, time_get(), CMD_BEEP, CMD_BEEP1);
# ^
# chat_cmnd.c:189:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HTALK, time_get(), CMD_TALK, CMD_TALK1, CMD_TALK2);
# ^
# chat_cmnd.c:194:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HHERE, time_get(), CMD_HERE);
# ^
# chat_cmnd.c:199:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HACTIVE, time_get(), CMD_ACTIVE);
# ^
# chat_cmnd.c:204:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HCOMMANDS, time_get());
# ^
# chat_cmnd.c:210:5: warning: implicit declaration of function 'strncat' [-Wimplicit-function-declaration]
# strncat(message, buf, STR_SIZE);
# ^
# chat_cmnd.c:210:5: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# chat_cmnd.c:213:9: warning: too many arguments for format [-Wformat-extra-args]
# CMD_FAVORITE, CMD_FAVORITE1, CMD_IGNORE, CMD_IGNORE1, CMD_BAN, CMD_BCAST);
# ^
# chat_cmnd.c: In function 'cmnd_keys':
# chat_cmnd.c:230:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_HKEYWORK, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_version':
# chat_cmnd.c:265:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_VERSION, time_get(),
# ^
# chat_cmnd.c: In function 'cmnd_status':
# chat_cmnd.c:271:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_STATUS, time_get());
# ^
# chat_cmnd.c:273:5: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
# if (config->packet_qchat) strncpy(buf, "qChat", STR_SIZE);
# ^
# chat_cmnd.c:273:31: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# if (config->packet_qchat) strncpy(buf, "qChat", STR_SIZE);
# ^
# chat_cmnd.c:279:5: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(buf, " (", STR_SIZE);
# ^
# chat_cmnd.c: In function 'cmnd_verbose':
# chat_cmnd.c:296:26: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# if (config->verbose) snprintf(message, MSG_SIZE, CMND_VERBOSEON, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_clear':
# chat_cmnd.c:314:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_CLEAR, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_shell':
# chat_cmnd.c:336:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_SHELLD, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_load':
# chat_cmnd.c:342:23: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# if (*buf == '\0') snprintf(config->file, STR_SIZE, "~.%s", CNF_ECHATRC);
# ^
# chat_cmnd.c:343:10: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# else strncpy(config->file, buf, PATH_SIZE);
# ^
# chat_cmnd.c:345:9: warning: implicit declaration of function 'getenv' [-Wimplicit-function-declaration]
# snprintf(buf, PATH_SIZE, "%s/%s", getenv("HOME"), &config->file[1]);
# ^
# chat_cmnd.c:345:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from chat_cset.c:10:0:
# echat.h:11:20: error: no include path in which to search for stdlib.h
# #include
# ^
# echat.h:12:19: error: no include path in which to search for stdio.h
# #include
# ^
# chat_cmnd.c: In function 'cmnd_save':
# chat_cmnd.c:376:23: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# if (*buf == '\0') snprintf(config->file, STR_SIZE, "~.%s", CNF_ECHATRC);
# ^
# chat_cmnd.c:377:10: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# else strncpy(config->file, buf, PATH_SIZE);
# ^
# chat_cmnd.c:379:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
# snprintf(buf, PATH_SIZE, "%s/%s", getenv("HOME"), &config->file[1]);
# ^
# chat_cmnd.c: In function 'cmnd_answer':
# chat_cmnd.c:399:31: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# if (*buf != '\0') strncpy(config->answer_dnd, buf, STR_SIZE);
# ^
# chat_cmnd.c:400:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_ANSDND, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_gender':
# chat_cmnd.c:423:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_GENDERM, time_get());
# ^
# chat_cmnd.c:427:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_GENDERF, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_my':
# chat_cmnd.c:436:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_BEEPALL, time_get());
# ^
# chat_cmnd.c:440:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_BEEPCUR, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_favorite':
# chat_cmnd.c:450:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_FAVORITEN, time_get());
# ^
# chat_cmnd.c:457:17: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(message, status->favorite[n], NICK_MAXLEN);
# ^
# chat_cmnd.c:460:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(message, "\n", 1);
# ^
# chat_cmnd.c:467:13: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# if (!strncmp(status->favorite[n], status->nick, NICK_MAXLEN)) break;
# ^
# make: *** [Makefile:35: chat_cset.o] Error 1
# chat_cmnd.c:470:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_FAVORITEI, time_get(), status->nick);
# ^
# chat_cmnd.c:473:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_FAVORITEU, time_get(), status->nick);
# ^
# chat_cmnd.c: In function 'cmnd_ignore':
# chat_cmnd.c:485:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_IGNOREN, time_get());
# ^
# chat_cmnd.c:492:17: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(message, status->ignore[n], NICK_MAXLEN);
# ^
# chat_cmnd.c:495:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(message, "\n", 1);
# ^
# chat_cmnd.c:505:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_IGNOREI, time_get(), status->nick);
# ^
# chat_cmnd.c:508:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_IGNOREU, time_get(), status->nick);
# ^
# chat_cmnd.c: In function 'cmnd_ban':
# chat_cmnd.c:520:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_BANA, time_get());
# ^
# chat_cmnd.c:527:17: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(message, status->ban[n], NICK_MAXLEN);
# ^
# chat_cmnd.c:530:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(message, "\n", 1);
# ^
# chat_cmnd.c:537:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_INICK, time_get(), status->nick);
# ^
# chat_cmnd.c:541:9: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->address, status->user[user_getnum()].addr, ADDR_SIZE);
# ^
# chat_cmnd.c:546:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_BANB, time_get(), status->address);
# ^
# chat_cmnd.c:549:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_BANU, time_get(), status->address);
# ^
# chat_cmnd.c: In function 'cmnd_bcast':
# chat_cmnd.c:559:31: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# if (config->packet_bcast) snprintf(message, MSG_SIZE, CMND_BCASTON, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_chat':
# chat_cmnd.c:567:9: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->channel, status->room->name, NICK_MAXLEN);
# ^
# chat_cmnd.c:570:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, "<%s> %s\n", config->nick, buf);
# ^
# chat_cmnd.c: In function 'cmnd_join':
# chat_cmnd.c:579:5: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
# if ((strchr(buf, CHR_NICK) != NULL) ||
# ^
# chat_cmnd.c:579:10: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# if ((strchr(buf, CHR_NICK) != NULL) ||
# ^
# chat_cmnd.c:579:35: error: 'NULL' undeclared (first use in this function)
# if ((strchr(buf, CHR_NICK) != NULL) ||
# ^
# chat_cmnd.c:579:35: note: each undeclared identifier is reported only once for each function it appears in
# chat_cmnd.c:589:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_ICHANNEL, time_get(), buf);
# ^
# chat_cmnd.c:596:5: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(status->channel, buf, CHANNEL_MAXLEN-1);
# ^
# chat_cmnd.c: In function 'cmnd_leave':
# chat_cmnd.c:601:23: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# if (*buf == '\0') strncpy(status->channel, status->room->name, CHANNEL_MAXLEN);
# ^
# chat_cmnd.c:604:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_LEAVE, time_get(), status->channel);
# ^
# chat_cmnd.c: In function 'cmnd_nick':
# chat_cmnd.c:622:10: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# if ((strchr(buf, CHR_CHNL) != NULL) ||
# ^
# chat_cmnd.c:622:35: error: 'NULL' undeclared (first use in this function)
# if ((strchr(buf, CHR_CHNL) != NULL) ||
# ^
# chat_cmnd.c:633:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_INICK, time_get(), buf);
# ^
# chat_cmnd.c:637:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->nick, buf, NICK_MAXLEN);
# ^
# chat_cmnd.c:641:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_NICK, time_get(), status->nick);
# ^
# chat_cmnd.c: In function 'cmnd_mesg':
# chat_cmnd.c:654:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->address, status->user[user_getnum()].addr, ADDR_SIZE);
# ^
# chat_cmnd.c:656:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_MESG, time_get(), status->nick);
# ^
# chat_cmnd.c: In function 'cmnd_mass':
# chat_cmnd.c:667:9: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->nick, status->user[n].nick, NICK_MAXLEN);
# ^
# chat_cmnd.c:671:5: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_MASS, time_get());
# ^
# chat_cmnd.c: In function 'cmnd_exec':
# chat_cmnd.c:681:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->address, status->user[user_getnum()].addr, ADDR_SIZE);
# ^
# chat_cmnd.c: In function 'cmnd_me':
# chat_cmnd.c:686:23: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# if (*buf == '\0') strncpy(buf, config->me_action, STR_SIZE);
# ^
# chat_cmnd.c:692:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, " * %s %s\n", config->nick, buf);
# ^
# chat_cmnd.c: In function 'cmnd_topic':
# chat_cmnd.c:700:5: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# int toplen = STR_SIZE - (strlen(config->nick)+4);
# ^
# chat_cmnd.c:700:30: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# int toplen = STR_SIZE - (strlen(config->nick)+4);
# ^
# chat_cmnd.c:705:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_QTOPIC, time_get());
# ^
# chat_cmnd.c:713:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(status->chnl[0].topic, toplen, "%s", buf);
# ^
# chat_cmnd.c:714:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(status->chnl[0].topic, " (", 2);
# ^
# chat_cmnd.c:721:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, MSG_SIZE, CMND_TOPIC, time_get(), status->room->name);
# ^
# chat_cmnd.c:729:13: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(status->room->topic, toplen, "%s", buf);
# ^
# chat_cmnd.c:730:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(status->room->topic, " (", 2);
# ^
# chat_cmnd.c: In function 'cmnd_add':
# chat_cmnd.c:743:35: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if ((toplen = STR_SIZE - (strlen(status->chnl[0].topic)+strlen(config->nick)+4)) < 0) return;
# ^
# chat_cmnd.c:745:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(status->chnl[0].topic, " (", 2);
# ^
# chat_cmnd.c:750:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(status->chnl[0].topic, " ", 1);
# ^
# chat_cmnd.c:758:35: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if ((toplen = STR_SIZE - (strlen(status->room->topic)+strlen(config->nick)+4)) < 0) return;
# ^
# chat_cmnd.c:760:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(status->room->topic, " (", 2);
# ^
# chat_cmnd.c:765:13: warning: incompatible implicit declaration of built-in function 'strncat' [enabled by default]
# strncat(status->room->topic, " ", 1);
# ^
# chat_cmnd.c: In function 'cmnd_mode':
# chat_cmnd.c:777:9: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# (((config->mode = atoi(buf)) != MOD_DND) &&
# ^
# chat_cmnd.c: In function 'cmnd_dnd':
# chat_cmnd.c:792:28: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# else if (*buf != '\0') strncpy(config->answer_dnd, buf, STR_SIZE);
# ^
# chat_cmnd.c: In function 'cmnd_away':
# chat_cmnd.c:801:28: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# else if (*buf != '\0') strncpy(config->answer_away, buf, STR_SIZE);
# ^
# chat_cmnd.c: In function 'cmnd_off':
# chat_cmnd.c:810:28: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# else if (*buf != '\0') strncpy(config->answer_off, buf, STR_SIZE);
# ^
# chat_cmnd.c: In function 'cmnd_info':
# chat_cmnd.c:819:9: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->nick, config->nick, NICK_MAXLEN);
# ^
# chat_cmnd.c:825:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->address, status->user[user_getnum()].addr, ADDR_SIZE);
# ^
# chat_cmnd.c: In function 'cmnd_beep':
# chat_cmnd.c:833:9: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->nick, config->nick, NICK_MAXLEN);
# ^
# chat_cmnd.c:839:13: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->address, status->user[user_getnum()].addr, ADDR_SIZE);
# ^
# chat_cmnd.c: In function 'cmnd_talk':
# chat_cmnd.c:848:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->channel, status->nick, NICK_MAXLEN);
# ^
# chat_cmnd.c: In function 'cmnd_here':
# chat_cmnd.c:857:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(status->channel, status->room->name, CHANNEL_MAXLEN);
# ^
# chat_cmnd.c: In function 'cmnd_parse':
# chat_cmnd.c:983:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
# snprintf(message, STR_SIZE, CMND_UNKNOWN, time_get(), buf);
# ^
# make: *** [Makefile:35: chat_cmnd.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...