[Pkg-javascript-devel] Bug#922075: Bug#922075: npm: segfault during extract on i386

Ondrej Zary ondrej at zary.sk
Tue Sep 21 09:58:47 BST 2021


On Tuesday 21 September 2021, Bastien ROUCARIES wrote:
> Le mar. 21 sept. 2021 à 07:55, Ondrej Zary <ondrej at zary.sk> a écrit :
> >
> > On Monday 20 September 2021, Bastien Roucariès wrote:
> > > Le lundi 20 septembre 2021, 19:32:52 UTC Bastien ROUCARIES a écrit :
> > > Could you try one by one the following untested patch. Please compile and run
> > > the testsuite.
> >
> > The first one fails to compile:
> > In file included from ../src/util-inl.h:28,
> >                  from ../src/aliased_buffer.h:7,
> >                  from ../src/memory_tracker.h:12,
> >                  from ../src/memory_tracker-inl.h:6,
> >                  from ../src/base_object.h:27,
> >                  from ../src/async_wrap.h:27,
> >                  from ../src/async_wrap-inl.h:27,
> >                  from ../src/async_wrap.cc:22:
> > ../src/util.h:210:11: error: ‘Persistent’ does not name a type; did you mean ‘gethostent’?
> >      const Persistent<TypeName>& persistent);
> 
> Add on the top of the files using v8::Global;
> and replace  const Persistent<TypeName>& persistent by const
> Global<Function>& persistent

You probably mean Global<TypeName>& persistent.

Then ENVIRONMENT_STRONG_PERSISTENT_VALUES is undefined:
In file included from ../src/env-inl.h:28,
                 from ../src/base_object-inl.h:28,
                 from ../src/async_wrap-inl.h:28,
                 from ../src/async_wrap.cc:22:
../src/env.h:1036:40: error: ‘V’ has not been declared
   ENVIRONMENT_STRONG_PERSISTENT_VALUES(V)
                                        ^
../src/env.h:1036:41: error: ISO C++ forbids declaration of ‘ENVIRONMENT_STRONG_PERSISTENT_VALUES’ with no type [-fpermissive]
   ENVIRONMENT_STRONG_PERSISTENT_VALUES(V)
                                         ^
../src/env.h:1036:41: error: expected ‘;’ at end of member declaration
   ENVIRONMENT_STRONG_PERSISTENT_VALUES(V)
                                         ^
                                          ;

-- 
Ondrej Zary



More information about the Pkg-javascript-devel mailing list