Leo Schalkwyk wrote:

> oops-- spoke too soon about Inline-CPR.  Although 'make test' 

The CPR 'make test' is pretty flimsy. It's not that easy to test because 
it's such an oddball thingy.

> manages to produce a 'hello world', my own hello world has
> run into problems.  So far, cpr is installed in /usr/local/bin
> as cpr.pl , and without a shebang.  Also I get an error from Cwd about 

There should be 2 components in /usr/local/bin, 'cpr' and 'cpr.pl'. 
'cpr' is a binary "interpreter", that really just invokes perl to run 
cpr.pl with your program name as an argument. No hashbang is needed 
because the path to your perl is hardcoded/compiled into 'cpr'.

> the constant declaration in line 6.  Goes away if I use cwd() instead of cwd('.')
> 
> at this point build dir is produced but there's still a problem.
> perlld's shellexec sub fails on one of the dllwrap calls.  out.make
> attached  ... in case you feel like looking at it over Christmas!

No way! I'm resting for a couple days :)

CPR will be fixed for windows and cygwin soon enough. I just wanted to 
get it out for people (like you) to play with.

Thanks for your time, and have a great holiday!

Brian

> 
> Leo
> 
> 
> ------------------------------------------------------------------------
> 
> Writing Makefile for main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688
> 
> 
> ------------------------------------------------------------------------
> 
> mkdir blib
> mkdir blib/lib
> mkdir blib/arch
> mkdir blib/arch/auto
> mkdir blib/arch/auto/main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688
> mkdir blib/lib/auto
> mkdir blib/lib/auto/main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688
> /usr/local/bin/perl -I/usr/local/lib/perl5/5.6.0/cygwin -I/usr/local/lib/perl5/5.6.0 
>/usr/local/lib/perl5/5.6.0/ExtUtils/xsubpp  -typemap 
>/usr/local/lib/perl5/5.6.0/ExtUtils/typemap 
>main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.xs > 
>main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.xsc && mv 
>main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.xsc 
>main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.c
> gcc -c  -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -g     
>-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"  -I/usr/local/lib/perl5/5.6.0/cygwin/CORE  
>main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.c
> Running Mkbootstrap for main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688 ()
> chmod 644 main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.bs
> LD_RUN_PATH="" ld2 -o 
>blib/arch/auto/main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688/main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.dll
>  -s -L/usr/local/lib main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.o   
>/usr/local/lib/perl5/5.6.0/cygwin/CORE/libperl5_6_0.a  
> dllwrap --dllname main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.dll --driver-name 
>gcc --dlltool dlltool --export-all-symbols --as as --output-def 
>libmain_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.def --output-lib 
>libmain_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.a \
>  -s -L/usr/local/lib main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.o 
>/usr/local/lib/perl5/5.6.0/cygwin/CORE/libperl5_6_0.a
> Warning: no export definition file provided
> dllwrap will create one, but may not be what you want
> main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.o: In function `XS_main_cpr_main':
> 
>/tmp/.cpr_blib/main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688/main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.c:39:
> undefined reference to `cpr_main'
> collect2: ld returned 1 exit status
> dllwrap: gcc exited with status 1
> perlld: *** system() failed to execute
> dllwrap --dllname main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.dll --driver-name 
>gcc --dlltool dlltool --export-all-symbols --as as --output-def 
>libmain_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.def --output-lib 
>libmain_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.a \
>  -s -L/usr/local/lib main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.o 
>/usr/local/lib/perl5/5.6.0/cygwin/CORE/libperl5_6_0.a
> 
> make: *** 
>[blib/arch/auto/main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688/main_CPR_cpr_pl_5fa2a5a7ca951e16a291a35110b58688.dll]
> Error 1
> 
> 
> ------------------------------------------------------------------------
> 
> 
> OUT~1.MAK
> 
> Content-Type:
> 
> text/plain
> 
> 
> ------------------------------------------------------------------------
> OUT~2.MAK
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 8bit
> 
> 
> ------------------------------------------------------------------------
> attachment.txt
> 
> Content-Type:
> 
> text/plain

Reply via email to