Dear Inline list members:
I have just begun playing with Inline.pm (version 0.44 downloaded from
CPAN scant hours ago, MD5 (Inline-0.44.tar.gz) =
840f47d9b6cef39e68370faf9dceab2c), having just read Brian Ingerson's
article from 2001 on Perl.com about it. Immediately I ran into
trouble using it. I've looked for a FAQ concerning my problem and
searched the web for an answer, but found none. However, I've just
been looking at it for an hour or two, so if I missed something
obvious, my apologies.
When I try to use Inline like so on my machine "burden", the following
happens during compilation:
burden[jwjr]: perl
use Inline C => <<'END_C';
void greet() {
printf ("Hello, World\n");
}
END_C
Couldn't find an appropriate DIRECTORY for Inline to use.
at - line 1
BEGIN failed--compilation aborted at - line 5.
No joy, as you can see.
When I try specifying a directory, it tells me, rather more bizarrely:
burden[jwjr]: perl
use Inline (
DIRECTORY => '/tmp',
C => <<'END_C',
void greet() {
printf ("Hello, World\n");
}
END_C
);
Inline assumes '/tmp' is a filename,
and that file does not exist.
at - line 2
BEGIN failed--compilation aborted at - line 8.
I can assure you that /tmp exists. I have also tried other
directories that exist and the same happens there. My machine and
Perl have the characteristics following in the postscript.
My apologies if I have missed an obvious resource for solving this
problem for myself, and I will certainly appreciate any help anyone
can offer.
Regards,
James Wetterau
P.S.
burden[jwjr]: uname -v
NetBSD 1.6ZE (BURDEN) #2: Fri Nov 7 13:13:25 EST 2003
[EMAIL PROTECTED]:/usr/obj/sys/arch/i386/compile/BURDEN
burden[jwjr]: uname -a
NetBSD burden 1.6ZE NetBSD 1.6ZE (BURDEN) #2: Fri Nov 7 13:13:25 EST
2003 [EMAIL PROTECTED]:/usr/obj/sys/arch/i386/compile/BURDEN i386
burden[jwjr]: perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1)
configuration:
Platform:
osname=netbsd, osvers=1.6k, archname=i386-netbsd
uname='netbsd burden 1.6k netbsd 1.6k (generic_laptop) #0: thu nov
21 22:31:44 utc 2002
[EMAIL
PROTECTED]:autobuildheadi386objautobuildheadsrcsysarchi386compilegeneric_laptop i386 '
config_args='-sde -Dprefix=/usr/pkg -Dscriptdir=/usr/pkg/bin
-Darchname=i386-netbsd -Doptimize=-O2 -I/usr/pkg/include -Dcc=cc -Uusemymalloc
-Uinstallusrbinperl -Dlibswanted=m crypt -Duseshrplib'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/pkg/include',
optimize='-O2 -I/usr/pkg/include',
cppflags='-fno-strict-aliasing -I/usr/pkg/include'
ccversion='', gccversion='2.95.3 20010315 (release) (NetBSD nb3)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
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 ='-Wl,-R/usr/pkg/lib -L/usr/pkg/lib'
libpth=/usr/pkg/lib /usr/lib
libs=-lm -lcrypt
perllibs=-lm -lcrypt
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-whole-archive
-lgcc -Wl,-no-whole-archive -Wl,-E -Wl,-R/usr/pkg/lib
-Wl,-R/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE'
cccdlflags='-DPIC -fPIC ', lddlflags='--whole-archive -shared -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under netbsd
Compiled at Nov 25 2002 19:06:24
@INC:
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd
/usr/pkg/lib/perl5/site_perl/5.6.1
/usr/pkg/lib/perl5/site_perl
/usr/pkg/lib/perl5/5.6.1/i386-netbsd
/usr/pkg/lib/perl5/5.6.1
.