regex.c:4083:13: note: in expansion of macro 'POP_FAILURE_POINT' POP_FAILURE_POINT (sdummy, pdummy, ^ regex.c:2334:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2413:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (lowest_active_reg); \ ^ regex.c:4116:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (0, 0, -2); ^ regex.c:2334:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2416:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (highest_active_reg); \ ^ regex.c:4116:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (0, 0, -2); ^ regex.c:2334:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2413:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (lowest_active_reg); \ ^ regex.c:4129:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (0, 0, -2); ^ regex.c:2334:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item ^ regex.c:2416:5: note: in expansion of macro 'PUSH_FAILURE_ITEM' PUSH_FAILURE_ITEM (highest_active_reg); \ ^ regex.c:4129:11: note: in expansion of macro 'PUSH_FAILURE_POINT' PUSH_FAILURE_POINT (0, 0, -2); ^ regex.c:2501:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] high_reg = (unsigned) POP_FAILURE_ITEM (); \ ^ regex.c:4297:11: note: in expansion of macro 'POP_FAILURE_POINT' POP_FAILURE_POINT (d, p, ^ regex.c:2504:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] low_reg = (unsigned) POP_FAILURE_ITEM (); \ ^ regex.c:4297:11: note: in expansion of macro 'POP_FAILURE_POINT' POP_FAILURE_POINT (d, p, ^ /bin/sh /var/tmp/portage/net-analyzer/libnasl-2.2.9-r1/work/libnasl/libtool --silent x86_64-pc-linux-gnu-gcc -pipe -O2 -pipe -march=native `sh ./cflags` -c nasl_debug.c /bin/sh /var/tmp/portage/net-analyzer/libnasl-2.2.9-r1/work/libnasl/libtool --silent x86_64-pc-linux-gnu-gcc -pipe -O2 -pipe -march=native `sh ./cflags` -c nasl_grammar.tab.c nasl_grammar.y: In function 'naslparse': nasl_grammar.y:132:16: error: 'parm' undeclared (first use in this function) ((naslctxt*)parm)->tree = $1; ^ nasl_grammar.y:132:16: note: each undeclared identifier is reported only once for each function it appears in nasl_grammar.y:287:8: error: too many arguments to function 'naslparse' if (! naslparse(&subctx)) ^ nasl_grammar.tab.c:63:25: note: declared here #define yyparse naslparse ^ nasl_grammar.tab.c:1362:1: note: in expansion of macro 'yyparse' yyparse (void) ^ nasl_grammar.y: In function 'init_nasl_ctx': nasl_grammar.y:523:7: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(line, sizeof(line) - 1, pc->fp); ^ make[1]: *** [nasl_grammar.tab.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/net-analyzer/libnasl-2.2.9-r1/work/libnasl/nasl' make: *** [all] Error 2 * ERROR: net-analyzer/libnasl-2.2.9-r1::gentoo failed (compile phase): * emake failed
Created attachment 379706 [details, diff] libnasl-2.2.9-r1.ebuild.patch Patched and verified to compile from local overlay.
Created attachment 379708 [details, diff] libnasl-2.2.9-nasl_grammar.patch Patched and verified to compile from local overlay. To put in files-directory.
Forgot to mention; my source for this is the attached patch for a bug in compilation of openvas-libraries, slightly modified to fit our patch-set: https://wald.intevation.de/tracker/?func=detail&atid=222&aid=6490&group_id=29
(In reply to Charlie Gehlin from comment #2) > Created attachment 379708 [details, diff] [details, diff] > libnasl-2.2.9-nasl_grammar.patch > > Patched and verified to compile from local overlay. > To put in files-directory. works here, thx.
net-analyzer/libnasl-2.2.9-r1 stills fails, so shouldn't hits patch go into main tree ?
Hit my own solution for another machine. Again.. Perhaps it's time for a private distributed local overlay :P
Fixed without revision bump. Thanks for the patch!