develooper Front page | perl.perl5.porters | Postings from January 2001

[ID 20010116.015] perlcall(1) examples don't work with perl 5.6.0with threads

January 16, 2001 15:01
[ID 20010116.015] perlcall(1) examples don't work with perl 5.6.0with threads
Message ID:

This is a bug report for perl from,
generated with the help of perlbug 1.26 running under perl 5.006.

[Please enter your report here]

I tried compiling the simple example in the perlcall manpage with
a threaded perl 5.60, I've been able to use the perlcall routines
fine with my perl 5.005_03

  perl_call_pv("some_func", G_DISCARD|G_NOARGS);

And I get unfortunate error: `thr' undeclared (first use this function)

Seems that the perl macros are being expanded to use some "thr" object:

  extern int Perl___notused  ;
  register SV **sp = (thr ->Tstack_sp)  ;
  if (++ (thr ->Tmarkstack_ptr)  == (thr ->Tmarkstack_max) )    Perl_markstack_grow(thr ) ;     * (thr ->Tmarkstack_ptr)  = (  sp ) - (thr ->Tstack_base)  ;
  Perl_call_pv(thr ,    "call"  ,   2 | 8   )  ;

What is this thr object?

[Please do not change anything below this line]

This perlbug was built using Perl 5.00503 - Mon Aug 30 23:08:56 EDT 1999
It is being executed now by  Perl 5.006 - Sat Jan 13 17:44:23 PST 2001.

Site configuration information for perl 5.006:

Configured by madison at Sat Jan 13 17:44:23 PST 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
    osname=linux, osvers=2.2.14, archname=i686-linux-thread-multi
    uname='linux madison 2.2.14 #1 smp wed jan 26 18:32:50 pst 2000 i686 unknown '
    config_args='-Dusethreads -Duse5005threads'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=define use5005threads=define useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
    cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
    cppflags='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccflags ='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldl -lm -lpthread -lc -lposix -lcrypt
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:

@INC for perl 5.006:

Environment for perl 5.006:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About