develooper Front page | perl.perl5.porters | Postings from February 2015


Thread Previous | Thread Next
Dave Mitchell
February 23, 2015 09:04
Message ID:
On Sun, Feb 22, 2015 at 10:00:23PM +0000, Dave Mitchell wrote:
> On Sun, Feb 22, 2015 at 08:49:54PM +0000, Dave Mitchell wrote:
> > The branch smoke-me/davem/op_signature, currently being smoked
> and now a hopefully more win32-compilable revision pushed as
> smoke-me/davem/op_signature2

Hmmm, still failing to build on non-useithreads win32 builds:

perldll.def : error LNK2001: unresolved external symbol Perl_op_relocate_sv
..\perl521.lib : fatal error LNK1120: 1 unresolved externals

Can anyone advise me on this? I made a threads-only static function
into a non-static function because I needed to access it from another
source file.

In embed.fnc I have:

    #if defined(USE_ITHREADS)
    pXo	|void	|op_relocate_sv	|NN SV** svp|NN PADOFFSET* targp

In op.c I have

    #ifdef USE_ITHREADS
    Perl_op_relocate_sv(pTHX_ SV** svp, PADOFFSET* targp)

then in various places in op.c and toke.c I have lines like:

    #ifdef USE_ITHREADS
        Perl_op_relocate_sv(aTHX_ &cSVOPo->op_sv, &o->op_targ);

So everything is protected by ifdefs. The only generated file it appears
in, proto.h, is also protected.

In my day, we used to edit the inodes by hand.  With magnets.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About