<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Here's the output from the commands you mentioned.&nbsp; I also included cc --version as that seems to be the compiler mentioned in Perl -V.<br><br>plxc1000&gt; perl -V<br>Summary of my perl5 (revision 5 version 8 subversion 5) configuration:<br>&nbsp; Platform:<br>&nbsp;&nbsp;&nbsp; osname=linux, osvers=2.6.5-7.97-smp, archname=x86_64-linux<br>&nbsp;&nbsp;&nbsp; uname='linux plxb0325 2.6.5-7.97-smp #1 smp fri jul 2 14:21:59 utc 2004 x86_64 x86_64 x86_64 gnulinux '<br>&nbsp;&nbsp;&nbsp; config_args='-Uusemymalloc -Dprefix=/usr/intel/pkgs/perl/5.8.5 -Dcc=/usr/intel/pkgs/gcc/3.4.2/bin/gcc -Doptimize=none -Dloclibpth=/usr/intel/00r1/lib -Dlocincpth=/usr/intel/00r1/include -Duse64bitall -Uinstallusrbinperl -Duselargefiles -Dperladmin=tmnguye3@sedona.intel.com -Uinstallusrbinperl -des'<br>&nbsp;&nbsp;&nbsp; hint=recommended, useposix=true, d_sigaction=define<br>&nbsp;&nbsp;&nbsp; usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef<br>&nbsp;&nbsp;&nbsp; useperlio=define d_sfio=undef uselargefiles=define usesocks=undef<br>&nbsp;&nbsp;&nbsp; use64bitint=define use64bitall=define uselongdouble=undef<br>&nbsp;&nbsp;&nbsp; usemymalloc=n, bincompat5005=undef<br>&nbsp; Compiler:<br>&nbsp;&nbsp;&nbsp; cc='/usr/intel/pkgs/gcc/3.4.2/bin/gcc', ccflags ='-fno-strict-aliasing -pipe -I/usr/intel/00r1/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',<br>&nbsp;&nbsp;&nbsp; optimize=' ',<br>&nbsp;&nbsp;&nbsp; cppflags='-fno-strict-aliasing -pipe -I/usr/intel/00r1/include'<br>&nbsp;&nbsp;&nbsp; ccversion='', gccversion='3.4.2', gccosandvers=''<br>&nbsp;&nbsp;&nbsp; intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678<br>&nbsp;&nbsp;&nbsp; d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16<br>&nbsp;&nbsp;&nbsp; ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8<br>&nbsp;&nbsp;&nbsp; alignbytes=8, prototype=define<br>&nbsp; Linker and Libraries:<br>&nbsp;&nbsp;&nbsp; ld='/usr/intel/pkgs/gcc/3.4.2/bin/gcc', ldflags =' -L/usr/intel/00r1/lib'<br>&nbsp;&nbsp;&nbsp; libpth=/usr/intel/00r1/lib /lib /usr/lib /usr/local/lib<br>&nbsp;&nbsp;&nbsp; libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc<br>&nbsp;&nbsp;&nbsp; perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc<br>&nbsp;&nbsp;&nbsp; libc=, so=so, useshrplib=false, libperl=libperl.a<br>&nbsp;&nbsp;&nbsp; gnulibc_version='2.3.3'<br>&nbsp; Dynamic Linking:<br>&nbsp;&nbsp;&nbsp; dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'<br>&nbsp;&nbsp;&nbsp; cccdlflags='-fpic', lddlflags='-shared -L/usr/intel/00r1/lib'<br><br><br>Characteristics of this binary (from libperl): <br>&nbsp; Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES<br>&nbsp; Built under linux<br>&nbsp; Compiled at Nov&nbsp; 1 2004 16:34:54<br>&nbsp; %ENV:<br>&nbsp;&nbsp;&nbsp; PERL5LIB="/usr/intel/pkgs/icc/9.0.025/lib:/nfs/pdx/disks/nehalem.pde.077/lib:/nfs/pdx/disks/nehalem.pde.077/instantclient_10_2/:/nfs/pdx/disks/nehalem.pde.077/mysql/5.0.27/lib:/nfs/pdx/disks/nehalem.pde.077/perl/lib/site_perl/5.8.5/x86_64-linux/Alien/SVN:/usr/ucblib:/usr/lib:/usr/intel/pkgs/freeTDS/0.61.2/lib:/nfs/pdx/disks/nehalem.pde.077/perl/lib/site_perl/5.8.5:/nfs/pdx/disks/nehalem.pde.077/perl/lib/5.8.5/:/nfs/pdx/disks/nehalem.pde.077/perl/Inline/lib/site_perl/5.8.5"<br>&nbsp; @INC:<br>&nbsp;&nbsp;&nbsp; /usr/intel/pkgs/icc/9.0.025/lib<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/lib/5.8.5/x86_64-linux<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/lib/5.8.5<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/lib<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/instantclient_10_2/<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/mysql/5.0.27/lib<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/perl/lib/site_perl/5.8.5/x86_64-linux/Alien/SVN<br>&nbsp;&nbsp;&nbsp; /usr/ucblib<br>&nbsp;&nbsp;&nbsp; /usr/lib<br>&nbsp;&nbsp;&nbsp; /usr/intel/pkgs/freeTDS/0.61.2/lib<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/perl/lib/site_perl/5.8.5/x86_64-linux<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/perl/lib/site_perl/5.8.5<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/perl/lib/5.8.5//x86_64-linux<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/perl/lib/5.8.5/<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/perl/Inline/lib/site_perl/5.8.5/x86_64-linux<br>&nbsp;&nbsp;&nbsp; /nfs/pdx/disks/nehalem.pde.077/perl/Inline/lib/site_perl/5.8.5<br>&nbsp;&nbsp;&nbsp; /usr/intel/pkgs/perl/5.8.5/lib/5.8.5/x86_64-linux<br>&nbsp;&nbsp;&nbsp; /usr/intel/pkgs/perl/5.8.5/lib/5.8.5<br>&nbsp;&nbsp;&nbsp; /usr/intel/pkgs/perl/5.8.5/lib/site_perl/5.8.5/x86_64-linux<br>&nbsp;&nbsp;&nbsp; /usr/intel/pkgs/perl/5.8.5/lib/site_perl/5.8.5<br>&nbsp;&nbsp;&nbsp; /usr/intel/pkgs/perl/5.8.5/lib/site_perl<br><br>plxc1000&gt; cc --version<br>cc (GCC) 3.3.3 (SuSE Linux)<br>Copyright (C) 2003 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.&nbsp; There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>plxc1000&gt; gcc --version<br>gcc (GCC) 3.4.2<br>Copyright (C) 2004 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.&nbsp; There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>Inline is version: 0.44<br><br>A Perl upgrade could potentially be quite painful, but if there's no obvious fix for this issue I'm willing to give it a shot.&nbsp; I find that getting the compiler options/directives correct is pretty tough for us new guys :)<br><br>Thanks!<br><br><br>&gt; From: jaleto@gmail.com<br>&gt; Date: Tue, 12 May 2009 00:26:41 -0700<br>&gt; Subject: Re: [Pdx-pm] Inline::C search.h 'Perl_push_scope'<br>&gt; To: vortix@hotmail.com<br>&gt; CC: pdx-pm-list@pm.org<br>&gt; <br>&gt; Howdy,<br>&gt; <br>&gt; Providing the output of "perl -V" , "gcc --version" and the version of<br>&gt; Inline would be useful. Also, Perl 5.8.3 is quite old, so upgrading to<br>&gt; a more recent version of Perl and Inline may solve your issue without<br>&gt; the need for exotic debugging, if that is possible.<br>&gt; <br>&gt; Cheers,<br>&gt; <br>&gt; <br>&gt; <br>&gt; 2009/5/11 Thomas Thompson &lt;vortix@hotmail.com&gt;:<br>&gt; &gt; Hi guys,<br>&gt; &gt;<br>&gt; &gt; This is my first post to this list.&nbsp; I'm not an expert in Perl and<br>&gt; &gt; definitely a beginner with C.&nbsp; I'm trying to rewrite a short section of some<br>&gt; &gt; Perl code in C, but I've bumped into the following issue:<br>&gt; &gt;<br>&gt; &gt; #!/usr/bin/perl -w<br>&gt; &gt;<br>&gt; &gt; use Inline C;<br>&gt; &gt; use strict;<br>&gt; &gt;<br>&gt; &gt; hello_inline();<br>&gt; &gt;<br>&gt; &gt; __END__<br>&gt; &gt; __C__<br>&gt; &gt; #include &lt;stdio.h&gt;<br>&gt; &gt;<br>&gt; &gt; void hello_inline( ) {<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf( "Hello World. Best Regards from Inline\n" );<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; The above code works fine, and the output is:<br>&gt; &gt;<br>&gt; &gt; plxc1000&gt; test_c3.pl<br>&gt; &gt; Hello World. Best Regards from Inline<br>&gt; &gt;<br>&gt; &gt; However, the following code (adding the search.h header file):<br>&gt; &gt;<br>&gt; &gt; #!/usr/bin/perl -w<br>&gt; &gt;<br>&gt; &gt; use Inline C;<br>&gt; &gt; use strict;<br>&gt; &gt;<br>&gt; &gt; hello_inline();<br>&gt; &gt;<br>&gt; &gt; __END__<br>&gt; &gt; __C__<br>&gt; &gt; #include &lt;stdio.h&gt;<br>&gt; &gt; #include &lt;search.h&gt;<br>&gt; &gt;<br>&gt; &gt; void hello_inline( ) {<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf( "Hello World. Best Regards from Inline\n" );<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; Results in this output:<br>&gt; &gt;<br>&gt; &gt; plxc1000&gt; test_c3.pl<br>&gt; &gt; /usr/bin/perl /usr/lib/perl5/5.8.3/ExtUtils/xsubpp&nbsp; -typemap<br>&gt; &gt; /usr/lib/perl5/5.8.3/ExtUtils/typemap&nbsp;&nbsp; test_c3_pl_f52f.xs &gt;<br>&gt; &gt; test_c3_pl_f52f.xsc &amp;&amp; mv test_c3_pl_f52f.xsc test_c3_pl_f52f.c<br>&gt; &gt; cc -c&nbsp; -I/nfs/pdx/disks/nehalem.pde.077/projects/rapttr/src -D_REENTRANT<br>&gt; &gt; -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE<br>&gt; &gt; -D_FILE_OFFSET_BITS=64 -O2 -fmessage-length=0 -Wall -Wall -pipe<br>&gt; &gt; -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC<br>&gt; &gt; "-I/usr/lib/perl5/5.8.3/x86_64-linux-thread-multi/CORE"&nbsp;&nbsp; test_c3_pl_f52f.c<br>&gt; &gt; In file included from test_c3_pl_f52f.xs:6:<br>&gt; &gt; /usr/include/search.h:66: error: `Perl_push_scope' redeclared as different<br>&gt; &gt; kind of symbol<br>&gt; &gt; /usr/lib/perl5/5.8.3/x86_64-linux-thread-multi/CORE/proto.h:590: error:<br>&gt; &gt; previous declaration of `Perl_push_scope'<br>&gt; &gt; /usr/include/search.h:66: error: parse error before '(' token<br>&gt; &gt; make: *** [test_c3_pl_f52f.o] Error 1<br>&gt; &gt;<br>&gt; &gt; A problem was encountered while attempting to compile and install your<br>&gt; &gt; Inline<br>&gt; &gt; C code. The command that failed was:<br>&gt; &gt; &nbsp; make &gt; out.make 2&gt;&amp;1<br>&gt; &gt;<br>&gt; &gt; Looking through the search.h header file, I don't see any instance of<br>&gt; &gt; Perl_push_scope being redeclared, especially not on line 66 (which seems to<br>&gt; &gt; be the middle of an enum type declaration).&nbsp; I have not modified any of<br>&gt; &gt; these header files.&nbsp; This is on SUSE LINUX Enterprise Server 9 (x86_64).<br>&gt; &gt;<br>&gt; &gt; Any ideas to help out a new guy? :)&nbsp; Let me know if I missed information I<br>&gt; &gt; should provide when asking this type of question and I'll make certain to<br>&gt; &gt; make certain to provide everything you guys need in the future.&nbsp; I<br>&gt; &gt; appreciate the help!<br>&gt; &gt;<br>&gt; &gt; Thomas<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Insert movie times and more without leaving HotmailŪ. See how.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Pdx-pm-list mailing list<br>&gt; &gt; Pdx-pm-list@pm.org<br>&gt; &gt; http://mail.pm.org/mailman/listinfo/pdx-pm-list<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; <br>&gt; Jonathan Leto<br>&gt; jonathan@leto.net<br>&gt; http://leto.net<br><br /><hr />Insert movie times and more without leaving HotmailŪ. <a href='http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009' target='_new'>See how.</a></body>
</html>