Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perlcall(1) examples don't work with perl 5.6.0 with threads #3130

p5pRT opened this issue Jan 16, 2001 · 4 comments

perlcall(1) examples don't work with perl 5.6.0 with threads #3130

p5pRT opened this issue Jan 16, 2001 · 4 comments


Copy link

p5pRT commented Jan 16, 2001

Migrated from (status was 'rejected')

Searchable as RT5210$

Copy link

p5pRT commented Jan 16, 2001


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​:​:26​: `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?

Perl Info

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)

Copy link

p5pRT commented Jul 14, 2005

From @schwern

5.005 threads have been deprecated and will be removed in 5.10. Please
consider using ithreads instead.

Copy link

p5pRT commented Jul 14, 2005

@schwern - Status changed from 'open' to 'resolved'

@p5pRT p5pRT closed this as completed Jul 14, 2005
Copy link

p5pRT commented Jul 14, 2005

@schwern - Status changed from 'resolved' to 'rejected'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant