Thu Nov 15 06:57:05 2012: Request 81172 was acted upon.
Transaction: Correspondence added by peter.smoczyn...@i-new.com
       Queue: Inline
     Subject: [rt.cpan.org #81172] using Inline with => 'Event' fails to compile
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: peter.smoczyn...@i-new.com
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=81172 >


Hi Rob!

here is the BUILD_NOISY output on version 0.48:

Sun-A3 root 261/0 (~/peter/inline_fails_to_compile)# la
total 4
-rw-r--r--   1 root     root         529 Nov 14 17:05 compile_test_1.t
-rw-r--r--   1 root     root         581 Nov 15 10:47 compile_test_2.t
Sun-A3 root 262/0 (~/peter/inline_fails_to_compile)# 
/opt/perl5.12.2.debug/bin/perl compile_test_2.t
Starting Build Preprocess Stage
Finished Build Preprocess Stage

Starting Build Parse Stage
Finished Build Parse Stage

Starting Build Glue 1 Stage
Finished Build Glue 1 Stage

Starting Build Glue 2 Stage
Finished Build Glue 2 Stage

Starting Build Glue 3 Stage
Finished Build Glue 3 Stage

Starting Build Compile Stage
   Starting "perl Makefile.PL" Stage
Writing Makefile for compile_test_2_t_a7b1
   Finished "perl Makefile.PL" Stage

   Starting "make" Stage
/opt/perl5.12.2.debug/bin/perl 
/opt/perl5.12.2.debug/lib/5.12.2/ExtUtils/xsubpp  -typemap 
/opt/perl5.12.2.debug/lib/5.12.2/ExtUtils/typemap 
compile_test_2_t_a7b1.xs > compile_test_2_t_a7b1.xsc && mv 
compile_test_2_t_a7b1.xsc compile_test_2_t_a7b1.c
gcc -c  -I/root/peter/inline_fails_to_compile -I/usr/local/include 
-I/usr/local/BerkeleyDB.4.5/include -DDEBUGGING -fno-strict-aliasing 
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -g -DVERSION=\"0.00\" 
-DXS_VERSION=\"0.00\" -fPIC 
"-I/opt/perl5.12.2.debug/lib/5.12.2/i86pc-solaris/CORE" 
compile_test_2_t_a7b1.c
compile_test_2_t_a7b1.xs:5: error: expected ')' before '*' token
make: *** [compile_test_2_t_a7b1.o] Error 1

A problem was encountered while attempting to compile and install your 
Inline
C code. The command that failed was:
   make

The build directory was:
/root/peter/inline_fails_to_compile/_Inline/build/compile_test_2_t_a7b1

To debug the problem, cd to the build directory, and inspect the output 
files.

  at compile_test_2.t line 11
BEGIN failed--compilation aborted at compile_test_2.t line 28.
Sun-A3 root 263/2 (~/peter/inline_fails_to_compile)#

the location of EventAPI.h is:

Sun-A3 root 264/0 (~/peter/inline_fails_to_compile)# find 
/opt/perl5.12.2.debug/ -name EventAPI.h -print
/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event/EventAPI.h

yep!, setting the cpath variable

Sun-A3 root 261/0 (~/peter/inline_fails_to_compile)# setenv CPATH 
/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event; 
/opt/perl5.12.2.debug/bin/perl -c compile_test_1.t
compile_test_1.t syntax OK

acts as a workaround -- though on my tcsh it took me a little while..;-)

thanx!, peter



Reply via email to