Perl 5.6: Linux Threading
[email protected] (Jiten Goel) Thu, 08 Feb 2001 20:40:50 -0800
| Newsgroups | perl.perl6.build |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have problem with Perl Threading on Linux.
I compiled 5.6 on Linux and trying to create threads.
Sample program:
============
#!/usr/bin/perl -w
#file : test.pl
use Thread;
$thr = new Thread \&foo;
sub foo()
{
print "hi";
}
==========
$./test.pl
Error: No threads in this perl at ./test.pl line 4
Thanks in advance for your help.
-Jiten
============= CURRENT perl Conf ===============
:!perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.0.34c52_sk, archname=mips-linux-thread-multi
uname='linux hosting15.hispeedhosting.com 2.0.34c52_sk #1 tue nov 30
18:14:40 pst 1999 mips unknown '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef
usesocks=undef
Compiler:
cc='cc', optimize='-O2', gccversion=2.7.2
cppflags='-D_REENTRANT'
ccflags ='-D_REENTRANT -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=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt
libc=/lib/libc-2.0.7.so, 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'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Feb 7 2001 01:42:44
@INC:
/home/sites/site20/users/perl/lib/5.6.0/mips-linux-thread-multi
/home/sites/site20/users/perl/lib/5.6.0
/home/sites/site20/users/perl/lib/site_perl/5.6.0/mips-linux-thread-multi
/home/sites/site20/users/perl/lib/site_perl/5.6.0
/home/sites/site20/users/perl/lib/site_perl