Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485914 - net-analyzer/libnasl-2.2.9-r1 with sys-devel/bison-3 - nasl_grammar.y:132:16: error: 'parm' undeclared (first use in this function)
Summary: net-analyzer/libnasl-2.2.9-r1 with sys-devel/bison-3 - nasl_grammar.y:132:16:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: bison-3-breakage
  Show dependency tree
 
Reported: 2013-09-25 02:43 UTC by Patrick Lauer
Modified: 2015-03-16 06:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libnasl-2.2.9-r1.ebuild.patch (libnasl-2.2.9-r1.ebuild.patch,463 bytes, patch)
2014-06-26 08:41 UTC, Charlie Gehlin
Details | Diff
libnasl-2.2.9-nasl_grammar.patch (libnasl-2.2.9-nasl_grammar.patch,673 bytes, patch)
2014-06-26 08:43 UTC, Charlie Gehlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-09-25 02:43:39 UTC
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
Comment 1 Charlie Gehlin 2014-06-26 08:41:48 UTC
Created attachment 379706 [details, diff]
libnasl-2.2.9-r1.ebuild.patch

Patched and verified to compile from local overlay.
Comment 2 Charlie Gehlin 2014-06-26 08:43:42 UTC
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.
Comment 3 Charlie Gehlin 2014-06-26 08:53:24 UTC
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
Comment 4 cmuelle8 2015-01-22 03:11:29 UTC
(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.
Comment 5 Toralf Förster gentoo-dev 2015-03-01 16:44:43 UTC
 net-analyzer/libnasl-2.2.9-r1 stills fails, so shouldn't hits patch go into main tree ?
Comment 6 Charlie Gehlin 2015-03-11 16:03:23 UTC
Hit my own solution for another machine. Again.. Perhaps it's time for a private distributed local overlay :P
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2015-03-16 06:42:45 UTC
Fixed without revision bump. Thanks for the patch!