in reply to Embedding Perl Interpreter/DynaLoader
1) "perl -MExtUtils::Embed -e ccopts -e ldopts" does not work for me when I use it to pass parameters to my cc statement. The cc compiler complains of many unknown options. I took a look at the Config.pm file, and it references the gcc compiler. I don't believe we have that installed on our UNIX server - perhaps the admins loaded a precompiled binary of Perl, rendering ExtUtils useless for me in this fashion?
2) I did use ExtUtils to produce an xsinit.c file, as follows:
But I can not compile this. When I tryperl -MExtUtils::Embed -e xsinit -- -o xsinit.c -std
(gruesome, I know - I've tried to link/add every possible library) I get the following:cc xsinit.c codeGen.c -o codeGen -L/lib/pa1.1 -L/usr/local/lib -I/usr/ +local/include -I/opt/perl/lib/5.6.1/PA-RISC1.1-t hread-multi/CORE -L/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/auto/Dy +naLoader/DynaLoader.a -L/opt/perl/lib/5.6.1/PA-RISC1.1-threa d-multi/CORE -L/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE/libper +l.so -lmalloc -ldld -ldld -lperl -lm -lsec -lnsl -lnm -lpthr ead -lc -lndir -lcrypt -Dbool=char -DHAS_BOOL
My goal is to compile "codeGen.c", which contains an embedded Perl interpreter. What should I be loading in order to use boot_DynaLoader w/o compile problems? I can't think of any more directories to include.xsinit.c: codeGen.c: /usr/ccs/bin/ld: Unsatisfied symbols: boot_DynaLoader (first referenced in xsinit.o) (code)
3) this problem only seems to arise when I attempt to use glob(). What is it about that function that would result in these errors?
Thanks again good monks- I very much appreciate the help
MatthewFrancis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Embedding Perl Interpreter/DynaLoader
by mpeppler (Vicar) on Dec 01, 2003 at 23:26 UTC | |
|
Re: Re: Embedding Perl Interpreter/DynaLoader
by Beechbone (Friar) on Dec 01, 2003 at 23:32 UTC |