+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/rpld.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QyRbN6 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rpld-1.8 + /usr/bin/gzip -dc /builddir/build/SOURCES/rpld-1.8-beta-1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rpld-1.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (rpld_1.8beta1-6.diff.gz):' Patch #0 (rpld_1.8beta1-6.diff.gz): + /usr/bin/gzip -dc /builddir/build/SOURCES/rpld_1.8beta1-6.diff.gz + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file debian/patches/002_target_dirs.patch patching file debian/patches/001_multiline_fix.patch patching file debian/patches/004_mac_address_range_fix.patch patching file debian/patches/003_avoid_makedepend.patch patching file debian/compat patching file debian/README.Debian patching file debian/watch patching file debian/dirs patching file debian/rules patching file debian/init.d patching file debian/init-default patching file debian/changelog patching file debian/control patching file debian/copyright + for I in debian/patches/* + patch -p1 -i debian/patches/001_multiline_fix.patch patching file rpld_conf.y + for I in debian/patches/* + patch -p1 -i debian/patches/002_target_dirs.patch patching file Makefile + for I in debian/patches/* + patch -p1 -i debian/patches/003_avoid_makedepend.patch patching file Makefile + for I in debian/patches/* + patch -p1 -i debian/patches/004_mac_address_range_fix.patch patching file client.c patching file rpld_conf.lex + echo 'Patch #1 (rpld-1.8-makefile.patch):' Patch #1 (rpld-1.8-makefile.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.omjMxi + umask 022 + cd /builddir/build/BUILD + cd rpld-1.8 + make 'OPT=-fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' -j4 yacc -d -b rpld_conf rpld_conf.y gcc -MM protocol.c rpld.c util.c rpl.c client.c config.c llc-nit.c linux-nit.c > .depend Now type make again to build rpld + make 'OPT=-fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' -j4 gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o protocol.o protocol.c gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o rpld.o rpld.c gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o util.o util.c gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o rpl.o rpl.c rpld.c: In function 'usage': rpl.c: In function 'rpl_token': rpl.c:73:26: warning: implicit declaration of function 'ntohl' [-Wimplicit-function-declaration] p->themightyzero = ntohl (*(u32 *) pp); ^~~~~ rpld.c:149:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (1); ^~~~ rpld.c:149:3: warning: incompatible implicit declaration of built-in function 'exit' rpld.c:149:3: note: include '' or provide a declaration of 'exit' rpl.c:89:21: warning: implicit declaration of function 'ntohs' [-Wimplicit-function-declaration] p->framelen = ntohs (*(u16 *) pp); ^~~~~ rpld.c: In function 'main': rpld.c:185:27: warning: implicit declaration of function 'strtol'; did you mean 'strtok'? [-Wimplicit-function-declaration] rpl_sap = strtol (optarg + 2, NULL, 16); ^~~~~~ strtok rpl.c:66:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ util.c: In function 'ethtoa': rpl.c: In function 'rpl_frag': rpl.c:157:28: warning: too many arguments for format [-Wformat-extra-args] syslog (LOG_ERR, "Unexpected end of packet", s); ^~~~~~~~~~~~~~~~~~~~~~~~~~ util.c:65:19: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] len += sprintf (ethtoaret + len, "%02x", *(p++)); ^~~~~~~~~ rpld.c:244:50: warning: pointer targets in passing argument 4 of 'lld->recv' differ in signedness [-Wpointer-sign] len = lld->recv (lld, buf, sizeof (buf), smac, NULL, &tv); ^~~~ In file included from /usr/include/features.h:428:0, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from project.h:71, from util.c:53: /usr/include/bits/stdio2.h:34:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ rpld.c:244:50: note: expected 'unsigned char *' but argument is of type 'char *' util.c:68:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] len += sprintf (ethtoaret + len, ":%02x", *(p++)); ^~~~~~~~~ In file included from /usr/include/features.h:428:0, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from project.h:71, from util.c:53: /usr/include/bits/stdio2.h:34:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) ^ rpld.c:158:18: warning: unused variable 'h' [-Wunused-variable] struct llchdr *h = (struct llchdr *) buf; ^ util.c: In function 'daemonize': util.c:97:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (1); ^~~~ util.c:97:7: warning: incompatible implicit declaration of built-in function 'exit' util.c:97:7: note: include '' or provide a declaration of 'exit' rpl.c: In function 'write_short': rpl.c:188:20: warning: implicit declaration of function 'htons' [-Wimplicit-function-declaration] *((u16 *) ptr) = htons (v); ^~~~~ rpl.c: In function 'write_long': rpl.c:195:20: warning: implicit declaration of function 'htonl' [-Wimplicit-function-declaration] *((u32 *) ptr) = htonl (v); ^~~~~ rpl.c: In function 'send_found_frame': rpl.c:273:66: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=] syslog (LOG_ERR, "FOUND packet: doesn't match RE case %x!=%x", ~^ %lx rpl.c: In function 'send_file_data_frame': rpl.c:334:70: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=] syslog (LOG_ERR, "FILE.DATA packet: doesn't match RE case %x!=%x", ~^ %lx At top level: At top level: rpld.c:19:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[] = "$Id: rpld.c,v 1.35 2001/11/01 15:30:29 root Exp $"; ^~~~~ util.c:23:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[] = "$Id: util.c,v 1.9 2001/11/01 15:24:26 root Exp $"; ^~~~~ protocol.c:166:1: warning: return type defaults to 'int' [-Wimplicit-int] file_data_frame (struct llcdrv *lld, struct client *c) ^~~~~~~~~~~~~~~ protocol.c: In function 'file_data_frame': protocol.c:174:5: warning: 'return' with no value, in function returning non-void return; ^~~~~~ protocol.c:166:1: note: declared here file_data_frame (struct llcdrv *lld, struct client *c) ^~~~~~~~~~~~~~~ protocol.c:171:7: warning: unused variable 'addr' [-Wunused-variable] u32 addr = 0x10000; ^~~~ At top level: rpl.c:20:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[] = "$Id: rpl.c,v 1.13 2001/11/01 15:23:59 root Exp $"; ^~~~~ protocol.c: In function 'send_file_frame': protocol.c:219:21: warning: unused variable 'out' [-Wunused-variable] struct rpl_packet out; ^~~ protocol.c: In function 'rpl_packet_recvd_callback': protocol.c:264:62: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=] syslog (LOG_ERR, "Incomplete FIND frame 0x%x vs 0x%x\n", ~^ %lx protocol.c:277:66: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=] "Incomplete SEND.FILE.REQUEST frame 0x%x vs 0x%x\n", ~^ %lx At top level: protocol.c:19:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[] = ^~~~~ protocol.c: In function 'file_data_frame': protocol.c:212:10: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] return (i); ^ gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o client.o client.c gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o config.o config.c gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o llc-nit.o llc-nit.c gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o linux-nit.o linux-nit.c client.c:395:1: warning: return type defaults to 'int' [-Wimplicit-int] clients_check_status () ^~~~~~~~~~~~~~~~~~~~ client.c:415:1: warning: return type defaults to 'int' [-Wimplicit-int] client_dispatch (struct llcdrv *lld) ^~~~~~~~~~~~~~~ client.c: In function 'cache_locally': client.c:145:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd, f->data, len); ^~~~~~~~~~~~~~~~~~~~~~~ client.c: In function 'clients_check_status': client.c:413:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ client.c: In function 'client_dispatch': client.c:429:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ At top level: client.c:19:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[] = "$Id: client.c,v 1.34 2001/11/01 15:30:29 root Exp $"; ^~~~~ config.c: In function 'do_linux_kernel': config.c:141:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (1); ^~~~ config.c:141:7: warning: incompatible implicit declaration of built-in function 'exit' config.c:141:7: note: include '' or provide a declaration of 'exit' config.c:147:7: warning: incompatible implicit declaration of built-in function 'exit' exit (1); ^~~~ config.c:147:7: note: include '' or provide a declaration of 'exit' config.c: In function 'parse_config': config.c:192:7: warning: incompatible implicit declaration of built-in function 'exit' exit (1); ^~~~ config.c:192:7: note: include '' or provide a declaration of 'exit' config.c:197:3: warning: implicit declaration of function 'yyparse'; did you mean 'pause'? [-Wimplicit-function-declaration] yyparse (); ^~~~~~~ pause At top level: config.c:19:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[] = "$Id: config.c,v 1.27 2001/11/01 15:30:29 root Exp $"; ^~~~~ lex -orpld_conf.yy.c rpld_conf.lex gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o rpld_conf.tab.o rpld_conf.tab.c gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ana.c linux-nit.c -o ana linux-nit.c: In function 'get_hwaddr': linux-nit.c:125:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (-1); ^~~~ linux-nit.c:125:7: warning: incompatible implicit declaration of built-in function 'exit' linux-nit.c:125:7: note: include '' or provide a declaration of 'exit' linux-nit.c: In function 'nit_open': linux-nit.c:187:22: warning: implicit declaration of function 'htons' [-Wimplicit-function-declaration] sll.sll_protocol = htons (ETH_P_802_2); ^~~~~ linux-nit.c:204:15: warning: pointer targets in passing argument 1 of 'get_hwaddr' differ in signedness [-Wpointer-sign] get_hwaddr (name, n->mac); ^~~~ linux-nit.c:107:1: note: expected 'unsigned char *' but argument is of type 'char *' get_hwaddr (unsigned char *name, unsigned char *addr) ^~~~~~~~~~ linux-nit.c: In function 'nit_send': linux-nit.c:229:16: warning: unused variable 'iov' [-Wunused-variable] struct iovec iov; ^~~ linux-nit.c: In function 'nit_recv': linux-nit.c:301:66: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] recvfrom (n->fd, buf, len, 0, (struct sockaddr *) &from, &fromlen); ^ In file included from /usr/include/sys/socket.h:269:0, from linux-nit.c:79: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, ^~~~~~~~ cp rpld.conf.man rpld.conf.5 cp rpld.man rpld.8 gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o rpld_conf.yy.o rpld_conf.yy.c ana.c:71:1: warning: return type defaults to 'int' [-Wimplicit-int] dump_hex (unsigned char *pp, int pl) ^~~~~~~~ ana.c:79:1: warning: return type defaults to 'int' [-Wimplicit-int] dump_hexa (unsigned char *pp, int pl) ^~~~~~~~~ ana.c:91:1: warning: return type defaults to 'int' [-Wimplicit-int] ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c: In function 'ana_token': ana.c:99:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:103:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:106:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:109:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:112:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:116:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:119:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:122:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:127:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:144:7: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:91:1: note: declared here ana_token (int s, unsigned char *pp, int pl) ^~~~~~~~~ ana.c:93:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ ana.c: In function 'ana_frag': ana.c:167:11: warning: 'return' with no value, in function returning non-void return; ^~~~~~ ana.c:155:1: note: declared here ana_frag (unsigned char *pp, int pl) ^~~~~~~~ ana.c: In function 'main': ana.c:224:43: warning: implicit declaration of function 'ntohs' [-Wimplicit-function-declaration] pbuf[1], pbuf[2], plen, ntohs (*(short *) &pbuf[3])); ^~~~~ ana.c:227:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] pptr = pbuf; ^ ana.c:232:21: warning: pointer targets in passing argument 1 of 'dump_hex' differ in signedness [-Wpointer-sign] dump_hex (pptr, plen); ^~~~ ana.c:71:1: note: expected 'unsigned char *' but argument is of type 'char *' dump_hex (unsigned char *pp, int pl) ^~~~~~~~ ana.c:236:31: warning: pointer targets in passing argument 1 of 'pull_short' differ in signedness [-Wpointer-sign] switch (pull_short (pptr)) ^~~~ ana.c:43:1: note: expected 'unsigned char *' but argument is of type 'char *' pull_short (unsigned char *c) ^~~~~~~~~~ ana.c:251:49: warning: pointer targets in passing argument 1 of 'pull_short' differ in signedness [-Wpointer-sign] printf (" 0x%04x ?:", pull_short (pptr)); ^~~~ ana.c:43:1: note: expected 'unsigned char *' but argument is of type 'char *' pull_short (unsigned char *c) ^~~~~~~~~~ ana.c:257:25: warning: pointer targets in passing argument 1 of 'ana_frag' differ in signedness [-Wpointer-sign] s = ana_frag (pptr, plen); ^~~~ ana.c:155:1: note: expected 'unsigned char *' but argument is of type 'char *' ana_frag (unsigned char *pp, int pl) ^~~~~~~~ ana.c:264:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (0); ^~~~ ana.c:264:3: warning: incompatible implicit declaration of built-in function 'exit' ana.c:264:3: note: include '' or provide a declaration of 'exit' ana.c:186:10: warning: variable 's' set but not used [-Wunused-but-set-variable] int i, s; ^ ana.c:186:7: warning: unused variable 'i' [-Wunused-variable] int i, s; ^ ana.c: In function 'dump_hex': ana.c:77:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ana.c: In function 'dump_hexa': ana.c:89:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ At top level: ana.c:4:14: warning: 'rcsid' defined but not used [-Wunused-variable] static char *rcsid = "$Id: ana.c,v 1.5 2000/09/26 03:48:23 root Exp $"; ^~~~~ rpld_conf.y: In function 'process_thing': rpld_conf.y:189:105: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:230:11: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Unknown top-level parameter block"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:230:11: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Unknown top-level parameter block"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:230:11: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Unknown top-level parameter block"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:244:11: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Only a FILE parameter block can be included in a HOST block"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:244:11: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Only a FILE parameter block can be included in a HOST block"); ^~~~~~~~~~~ rpld_conf.y:250:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ rpld_conf.y:250:4: note: include '' or provide a declaration of 'exit' rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:263:22: note: in expansion of macro 'THROW_ERROR' if (!ci.have_mac) THROW_ERROR("Must specify an ethernet (MAC) address for host"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:263:22: note: in expansion of macro 'THROW_ERROR' if (!ci.have_mac) THROW_ERROR("Must specify an ethernet (MAC) address for host"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:264:32: note: in expansion of macro 'THROW_ERROR' else if (!ci.have_run_addr) THROW_ERROR("Must specify an initial execute address for host"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:264:32: note: in expansion of macro 'THROW_ERROR' else if (!ci.have_run_addr) THROW_ERROR("Must specify an initial execute address for host"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:265:29: note: in expansion of macro 'THROW_ERROR' else if (!ci.have_files) THROW_ERROR("Must specify at least one file to load for host"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:265:29: note: in expansion of macro 'THROW_ERROR' else if (!ci.have_files) THROW_ERROR("Must specify at least one file to load for host"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:278:24: note: in expansion of macro 'THROW_ERROR' if (!cfi.have_path) THROW_ERROR("Must specify a path for file"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:278:24: note: in expansion of macro 'THROW_ERROR' if (!cfi.have_path) THROW_ERROR("Must specify a path for file"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:279:34: note: in expansion of macro 'THROW_ERROR' else if (!cfi.have_load_addr) THROW_ERROR("Must specify a load address for file"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:279:34: note: in expansion of macro 'THROW_ERROR' else if (!cfi.have_load_addr) THROW_ERROR("Must specify a load address for file"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:299:4: note: in expansion of macro 'THROW_ERROR' THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:299:4: note: in expansion of macro 'THROW_ERROR' THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:303:25: note: in expansion of macro 'THROW_ERROR' if (ci.have_pacing) THROW_ERROR("Directive nospew incompatible with pacing "); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:303:25: note: in expansion of macro 'THROW_ERROR' if (ci.have_pacing) THROW_ERROR("Directive nospew incompatible with pacing "); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:304:25: note: in expansion of macro 'THROW_ERROR' if (ci.have_nospew) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:304:25: note: in expansion of macro 'THROW_ERROR' if (ci.have_nospew) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:307:11: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:307:11: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:310:25: note: in expansion of macro 'THROW_ERROR' if (!cfi.have_path) THROW_ERROR("A path to a valid kernel must precede linux"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:310:25: note: in expansion of macro 'THROW_ERROR' if (!cfi.have_path) THROW_ERROR("A path to a valid kernel must precede linux"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:318:4: note: in expansion of macro 'THROW_ERROR' THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:318:4: note: in expansion of macro 'THROW_ERROR' THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:320:10: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:320:10: note: in expansion of macro 'THROW_ERROR' } else THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:326:4: note: in expansion of macro 'THROW_ERROR' THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:326:4: note: in expansion of macro 'THROW_ERROR' THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:331:6: note: in expansion of macro 'THROW_ERROR' THROW_ERROR("Directive must be followed by a (partial or complete) ethernet address"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:331:6: note: in expansion of macro 'THROW_ERROR' THROW_ERROR("Directive must be followed by a (partial or complete) ethernet address"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:332:27: note: in expansion of macro 'THROW_ERROR' else if (ci.have_mac) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:332:27: note: in expansion of macro 'THROW_ERROR' else if (ci.have_mac) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:347:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by a memory address"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:347:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by a memory address"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:348:35: note: in expansion of macro 'THROW_ERROR' else if (ci.have_run_addr==2) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:348:35: note: in expansion of macro 'THROW_ERROR' else if (ci.have_run_addr==2) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:355:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by an integer "); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:355:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by an integer "); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:356:33: note: in expansion of macro 'THROW_ERROR' else if (ci.have_blocksize) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:356:33: note: in expansion of macro 'THROW_ERROR' else if (ci.have_blocksize) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:363:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by an integer "); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:363:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by an integer "); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:364:33: note: in expansion of macro 'THROW_ERROR' else if (ci.have_framesize) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:364:33: note: in expansion of macro 'THROW_ERROR' else if (ci.have_framesize) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:371:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by an integer "); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:371:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by an integer "); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:372:25: note: in expansion of macro 'THROW_ERROR' if (ci.have_nospew) THROW_ERROR("Directive pacing incompatible with nospew "); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:372:25: note: in expansion of macro 'THROW_ERROR' if (ci.have_nospew) THROW_ERROR("Directive pacing incompatible with nospew "); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:373:25: note: in expansion of macro 'THROW_ERROR' if (ci.have_pacing) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:373:25: note: in expansion of macro 'THROW_ERROR' if (ci.have_pacing) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:377:9: note: in expansion of macro 'THROW_ERROR' else THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:377:9: note: in expansion of macro 'THROW_ERROR' else THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:381:23: note: in expansion of macro 'THROW_ERROR' if (type != TEXT) THROW_ERROR("Directive must be followed by a filename"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:381:23: note: in expansion of macro 'THROW_ERROR' if (type != TEXT) THROW_ERROR("Directive must be followed by a filename"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:382:29: note: in expansion of macro 'THROW_ERROR' else if (cfi.have_path) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:382:29: note: in expansion of macro 'THROW_ERROR' else if (cfi.have_path) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:390:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by a memory address"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:390:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by a memory address"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:391:34: note: in expansion of macro 'THROW_ERROR' else if (cfi.have_load_addr) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:391:34: note: in expansion of macro 'THROW_ERROR' else if (cfi.have_load_addr) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:399:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by a memory address"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:399:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by a memory address"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:400:31: note: in expansion of macro 'THROW_ERROR' else if (cfi.have_offset) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:400:31: note: in expansion of macro 'THROW_ERROR' else if (cfi.have_offset) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:408:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by a memory address"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:408:25: note: in expansion of macro 'THROW_ERROR' if (type != NUMBER) THROW_ERROR("Directive must be followed by a memory address"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:409:31: note: in expansion of macro 'THROW_ERROR' else if (cfi.have_length) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:409:31: note: in expansion of macro 'THROW_ERROR' else if (cfi.have_length) THROW_ERROR("Repeated directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:415:9: note: in expansion of macro 'THROW_ERROR' else THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:415:9: note: in expansion of macro 'THROW_ERROR' else THROW_ERROR("Unknown directive"); ^~~~~~~~~~~ rpld_conf.y:189:105: warning: incompatible implicit declaration of built-in function 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:419:12: note: in expansion of macro 'THROW_ERROR' default: THROW_ERROR("Mistake"); ^~~~~~~~~~~ rpld_conf.y:189:105: note: include '' or provide a declaration of 'exit' #define THROW_ERROR(a) do { fprintf(stderr, "rpld: config line %d: %s near `%s'\n", lineno, (a), name); exit(1); } while(0) ^ rpld_conf.y:419:12: note: in expansion of macro 'THROW_ERROR' default: THROW_ERROR("Mistake"); ^~~~~~~~~~~ rpld_conf.y:211:2: warning: case value '257' not in enumerated type 'THING {aka enum }' [-Wswitch] case BLOCK_START: ^~~~ rpld_conf.y:255:2: warning: case value '258' not in enumerated type 'THING {aka enum }' [-Wswitch] case BLOCK_END: ^~~~ rpld_conf.tab.c: In function 'yyparse': rpld_conf.tab.c:71:16: warning: implicit declaration of function 'yylex' [-Wimplicit-function-declaration] # define YYLEX yylex() ^ rpld_conf.tab.c:627:18: note: in expansion of macro 'YYLEX' yychar = YYLEX; ^~~~~ At top level: rpld_conf.y:81:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[]="$Id: rpld_conf.y,v 1.8 2001/11/01 15:23:59 root Exp $"; ^~~~~ rpld_conf.yy.c:1343:16: warning: 'input' defined but not used [-Wunused-function] static int input (void) ^~~~~ rpld_conf.yy.c:1300:17: warning: 'yyunput' defined but not used [-Wunused-function] static void yyunput (int c, char * yy_bp ) ^~~~~~~ rpld_conf.lex:79:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[]="$Id: rpld_conf.lex,v 1.7 2001/11/01 15:23:59 root Exp $"; ^~~~~ linux-nit.c: In function 'get_hwaddr': linux-nit.c:125:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit (-1); ^~~~ linux-nit.c:125:7: warning: incompatible implicit declaration of built-in function 'exit' linux-nit.c:125:7: note: include '' or provide a declaration of 'exit' linux-nit.c: In function 'nit_open': linux-nit.c:187:22: warning: implicit declaration of function 'htons' [-Wimplicit-function-declaration] sll.sll_protocol = htons (ETH_P_802_2); ^~~~~ linux-nit.c:204:15: warning: pointer targets in passing argument 1 of 'get_hwaddr' differ in signedness [-Wpointer-sign] get_hwaddr (name, n->mac); ^~~~ linux-nit.c:107:1: note: expected 'unsigned char *' but argument is of type 'char *' get_hwaddr (unsigned char *name, unsigned char *addr) ^~~~~~~~~~ linux-nit.c: In function 'nit_send': linux-nit.c:229:16: warning: unused variable 'iov' [-Wunused-variable] struct iovec iov; ^~~ linux-nit.c: In function 'nit_recv': linux-nit.c:301:66: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] recvfrom (n->fd, buf, len, 0, (struct sockaddr *) &from, &fromlen); ^ In file included from /usr/include/sys/socket.h:269:0, from linux-nit.c:79: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, ^~~~~~~~ gcc -fPIE -pie -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -o rpld protocol.o rpld.o util.o rpl.o client.o config.o llc-nit.o linux-nit.o rpld_conf.yy.o rpld_conf.tab.o Now type make install to install rpld or make nics to assemble the adapter utilities or make realtime to capture and analyse RPL traffic + mv LICENCE LICENSE + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.FlpIu2 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64 + cd rpld-1.8 + mkdir -p /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/sbin /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/man/man8 /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/man/man5 + make install DESTDIR=/builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64 BINMODE=755 MANMODE=644 install -c -m 755 rpld /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/sbin install -c -m 644 rpld.8 /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/man/man8/rpld.8 install -c -m 644 rpld.conf.5 /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/man/man5/rpld.conf.5 you can find a sample configuration file in this directory called rpld.conf.sample your config file should be placed in /etc/rpld.conf + find /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64 -type f -name '*.la' -exec rm -f '{}' ';' + install -d /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/etc/sysconfig + install -m 0644 /builddir/build/SOURCES/rpld.sysconfig /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/etc/sysconfig/rpld + install -d /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/lib/systemd/system + install -m 0644 /builddir/build/SOURCES/rpld.service /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/lib/systemd/system/rpld.service + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: rpld-1.8-0.25.beta1.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.8FZzjO + umask 022 + cd /builddir/build/BUILD + cd rpld-1.8 + DOCDIR=/builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/doc/rpld + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/doc/rpld + cp -pr README /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/doc/rpld + cp -pr LICENSE /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/doc/rpld + cp -pr INSTALL /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/doc/rpld + cp -pr rpld.conf.sample /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64/usr/share/doc/rpld + exit 0 Provides: rpld = 1.8-0.25.beta1.fc28 rpld(riscv-64) = 1.8-0.25.beta1.fc28 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64 Wrote: /builddir/build/SRPMS/rpld-1.8-0.25.beta1.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/rpld-1.8-0.25.beta1.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.w7e59d + umask 022 + cd /builddir/build/BUILD + cd rpld-1.8 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rpld-1.8-0.25.beta1.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff