Fri Nov 16 06:51:09 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!

at first it looked to me that the trouble did come with the double 
quotes enclosing the -I options in v0.51.
but looking at the two generated commandlines I had a 2nd thought!

v0.48:

gcc
  -c
  -I/root/peter/inline_fails_to_compile
  -I /opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event
  -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

v0.51:

gcc
  -c
  -I"/root/peter/inline_fails_to_compile"
  "-I /opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event"
  -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_1_t_a7b1.c

wondering about the two identical include options for the perl CORE headers?

so I gave it another try:

Sun-A3 root 290/0 
(~/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1)# 
gcc -c  -I"/root/peter/inline_fails_to_compile" "-I 
/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event" 
-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_1_t_a7b1.c
compile_test_1_t_a7b1.xs:5:22: error: EventAPI.h: No such file or directory
compile_test_1_t_a7b1.xs:6: error: expected ')' before '*' token
compile_test_1_t_a7b1.c: In function 'XS_main_evdmp_event_c':
compile_test_1_t_a7b1.c:99: error: 'pe_event' undeclared (first use in 
this function)
compile_test_1_t_a7b1.c:99: error: (Each undeclared identifier is 
reported only once
compile_test_1_t_a7b1.c:99: error: for each function it appears in.)
compile_test_1_t_a7b1.c:99: error: 'event' undeclared (first use in this 
function)
compile_test_1_t_a7b1.c:99: error: expected expression before ')' token

Sun-A3 root 291/1 
(~/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1)# 
gcc -c -I"/root/peter/inline_fails_to_compile" 
"-I/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event" 
-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_1_t_a7b1.c
Sun-A3 root 292/0 
(~/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1)#

in fact it's the space(!) and not the double quotes!

i.e.

"-I /opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event"

vs.

"-I/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event"

cheers, peter


Reply via email to