Re: [Arsperl-users] arfperl install issue

2007-12-20 Thread Serouche Rahimpour
so now after few changes of the arfperl.c I only get the following when 
I compile:
arfperl.c: In function `ARFilterApiCall':
arfperl.c:374: warning: assignment makes pointer from integer without a cast

Is it very bad?

Any help/advice/idea?

Many thanks.
Serouche



Serouche Rahimpour wrote:
 hey Richard
 
 thanks for the link.
 
 I now get only
   make
 gcc -D_REENTRANT -I/usr/perl5/5.00503/sun4-solaris/CORE 
 -I/usr/perl5/5.00503/sun4-solaris/auto/DynaLoader -c  arfperl.c
 arfperl.c: In function `xs_init':
 arfperl.c:92: warning: passing arg 2 of `Perl_newXS' makes pointer from 
 integer without a cast
 arfperl.c: In function `ARFilterApiCall':
 arfperl.c:369: warning: assignment makes pointer from integer without a 
 cast
 gcc -o arfperl.so arfperl.o -G -L/usr/perl5/5.00503/sun4-solaris/CORE 
 -lperl /usr/perl5/5.00503/sun4-solaris/auto/DynaLoader/DynaLoader.a 
 -lnsl -lw -lpthread
 
 So I believe it is almost done. But still I would prefer to avoid simple 
 warnings as well.
 But I don't see hwo to cast or actually what to cast?
 
 Also I am not sure about what should be done next. Install and that's it?
 Any help?
 
 Cheers
 Serouche
 
 
 
 Richard Hellier wrote:
 Serouche,
 Have a look at this web page:

 http://osdir.com/ml/crm.arsystem.general/2005-02/msg00284.html?rfp=dta

 Cheers,

 Richard.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Serouche 
 Rahimpour
 Sent: 17 December 2007 12:20
 To: ARSperl User Discussion
 Subject: Re: [Arsperl-users] arfperl install issue

 right. So after few changes in the arfperl.c file and in the Makefile 
 I get the following:
  make
 gcc -D_REENTRANT -I/usr/perl5/5.00503/sun4-solaris/CORE -c  arfperl.c
 arfperl.c: In function `xs_init':
 arfperl.c:91: error: `boot_DynaLoader' undeclared (first use in this 
 function)
 arfperl.c:91: error: (Each undeclared identifier is reported only once
 arfperl.c:91: error: for each function it appears in.)
 arfperl.c: In function `ARFilterApiCall':
 arfperl.c:368: warning: assignment makes pointer from integer without 
 a cast
 *** Error code 1
 make: Fatal error: Command failed for target `arfperl.o'

 any help?
 Cheers
 Serouche

 QOD
  From birth to death, learn, learn and learn
 That's gonna keep you busy all the time


 Richard Hellier wrote:
  
 Serouche,

 1)You also need to remove the -KPIC from the CFLAGS and LDFLAGS
 definitions

 2)The -I arguments list the directories that gcc will search for
 include files so you definitely don't want /usr/bin there!  
 Assuming you
 had perl installed in (e.g.) /opt/perl, then you would have
 -I/opt/perl/lib/5.8.0/sun4-solaris/CORE would be an example of a
 
 suitable
  
 value but, of course, you must look at your system to see how things are
 installed there.

 Cheers,

 Richard.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Serouche 
 Rahimpour
 Sent: 17 December 2007 09:54
 To: ARSperl User Discussion
 Subject: Re: [Arsperl-users] arfperl install issue

 of course I already had the gcc so following Richard guess I changed 
 cc for gcc in the Makefile.
 But then I got that /usr/bin/perl (which is the perl on my box) is 
 not a directory. So I changed it for /usr/bin and run again make
 But then I got
   make
 gcc -D_REENTRANT -G -KPIC -I../../../include -I/usr/bin -c  arfperl.c
 gcc: unrecognized option `-KPIC'
 arfperl.c:65:20: EXTERN.h: No such file or directory
 arfperl.c:66:18: perl.h: No such file or directory
 arfperl.c:67:18: XSUB.h: No such file or directory
 arfperl.c:72:25: arfilterapi.h: No such file or directory
 arfperl.c:85: error: syntax error before CV
 arfperl.c: In function `xs_init':
 arfperl.c:90: error: `dXSUB_SYS' undeclared (first use in this function)
 arfperl.c:90: error: (Each undeclared identifier is reported only once
 arfperl.c:90: error: for each function it appears in.)
 arfperl.c: At top level:
 arfperl.c:94: error: syntax error before '*' token
 arfperl.c:94: warning: data definition has no type or storage class
 arfperl.c:112: error: syntax error before int
 arfperl.c:113: error: syntax error before '*' token
 arfperl.c: In function `ARPluginIdentify':
 arfperl.c:117: error: `id' undeclared (first use in this function)
 arfperl.c:117: error: `AR_PLUGIN_TYPE_FILTER' undeclared (first use 
 in this function)
 arfperl.c:119: error: `ARFILTERAPI_PLUGIN_VERSION' undeclared (first 
 use in this function)
 arfperl.c:120: error: `status' undeclared (first use in this function)
 arfperl.c:122: error: `AR_RETURN_OK' undeclared (first use in this
 
 function)
  
 arfperl.c: At top level:
 arfperl.c:138: error: syntax error before int
 arfperl.c:141: error: syntax error before ARStatusList
 arfperl.c: In function `ARPluginInitialization':
 arfperl.c:144: error: `status' undeclared (first use in this function)
 arfperl.c:147: error: `argc' undeclared (first use in this function)
 arfperl.c:147: error: `argv' undeclared (first use

Re: [Arsperl-users] arfperl install issue

2007-12-17 Thread Serouche Rahimpour
hey Richard

thanks for the link.

I now get only
  make
gcc -D_REENTRANT -I/usr/perl5/5.00503/sun4-solaris/CORE 
-I/usr/perl5/5.00503/sun4-solaris/auto/DynaLoader -c  arfperl.c
arfperl.c: In function `xs_init':
arfperl.c:92: warning: passing arg 2 of `Perl_newXS' makes pointer from 
integer without a cast
arfperl.c: In function `ARFilterApiCall':
arfperl.c:369: warning: assignment makes pointer from integer without a cast
gcc -o arfperl.so arfperl.o -G -L/usr/perl5/5.00503/sun4-solaris/CORE 
-lperl /usr/perl5/5.00503/sun4-solaris/auto/DynaLoader/DynaLoader.a 
-lnsl -lw -lpthread

So I believe it is almost done. But still I would prefer to avoid simple 
warnings as well.
But I don't see hwo to cast or actually what to cast?

Also I am not sure about what should be done next. Install and that's it?
Any help?

Cheers
Serouche



Richard Hellier wrote:
 Serouche,
   Have a look at this web page:

 http://osdir.com/ml/crm.arsystem.general/2005-02/msg00284.html?rfp=dta

 Cheers,

 Richard.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Serouche Rahimpour
 Sent: 17 December 2007 12:20
 To: ARSperl User Discussion
 Subject: Re: [Arsperl-users] arfperl install issue

 right. So after few changes in the arfperl.c file and in the Makefile I 
 get the following:
  make
 gcc -D_REENTRANT -I/usr/perl5/5.00503/sun4-solaris/CORE -c  arfperl.c
 arfperl.c: In function `xs_init':
 arfperl.c:91: error: `boot_DynaLoader' undeclared (first use in this 
 function)
 arfperl.c:91: error: (Each undeclared identifier is reported only once
 arfperl.c:91: error: for each function it appears in.)
 arfperl.c: In function `ARFilterApiCall':
 arfperl.c:368: warning: assignment makes pointer from integer without a cast
 *** Error code 1
 make: Fatal error: Command failed for target `arfperl.o'

 any help?
 Cheers
 Serouche

 QOD
  From birth to death, learn, learn and learn
 That's gonna keep you busy all the time


 Richard Hellier wrote:
   
 Serouche,

 1)   You also need to remove the -KPIC from the CFLAGS and LDFLAGS
 definitions

 2)   The -I arguments list the directories that gcc will search for
 include files so you definitely don't want /usr/bin there!  Assuming you
 had perl installed in (e.g.) /opt/perl, then you would have
 -I/opt/perl/lib/5.8.0/sun4-solaris/CORE would be an example of a
 
 suitable
   
 value but, of course, you must look at your system to see how things are
 installed there.

 Cheers,

 Richard.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Serouche Rahimpour
 Sent: 17 December 2007 09:54
 To: ARSperl User Discussion
 Subject: Re: [Arsperl-users] arfperl install issue

 of course I already had the gcc so following Richard guess I changed cc 
 for gcc in the Makefile.
 But then I got that /usr/bin/perl (which is the perl on my box) is not a 
 directory. So I changed it for /usr/bin and run again make
 But then I got
   make
 gcc -D_REENTRANT -G -KPIC -I../../../include -I/usr/bin -c  arfperl.c
 gcc: unrecognized option `-KPIC'
 arfperl.c:65:20: EXTERN.h: No such file or directory
 arfperl.c:66:18: perl.h: No such file or directory
 arfperl.c:67:18: XSUB.h: No such file or directory
 arfperl.c:72:25: arfilterapi.h: No such file or directory
 arfperl.c:85: error: syntax error before CV
 arfperl.c: In function `xs_init':
 arfperl.c:90: error: `dXSUB_SYS' undeclared (first use in this function)
 arfperl.c:90: error: (Each undeclared identifier is reported only once
 arfperl.c:90: error: for each function it appears in.)
 arfperl.c: At top level:
 arfperl.c:94: error: syntax error before '*' token
 arfperl.c:94: warning: data definition has no type or storage class
 arfperl.c:112: error: syntax error before int
 arfperl.c:113: error: syntax error before '*' token
 arfperl.c: In function `ARPluginIdentify':
 arfperl.c:117: error: `id' undeclared (first use in this function)
 arfperl.c:117: error: `AR_PLUGIN_TYPE_FILTER' undeclared (first use in 
 this function)
 arfperl.c:119: error: `ARFILTERAPI_PLUGIN_VERSION' undeclared (first use 
 in this function)
 arfperl.c:120: error: `status' undeclared (first use in this function)
 arfperl.c:122: error: `AR_RETURN_OK' undeclared (first use in this
 
 function)
   
 arfperl.c: At top level:
 arfperl.c:138: error: syntax error before int
 arfperl.c:141: error: syntax error before ARStatusList
 arfperl.c: In function `ARPluginInitialization':
 arfperl.c:144: error: `status' undeclared (first use in this function)
 arfperl.c:147: error: `argc' undeclared (first use in this function)
 arfperl.c:147: error: `argv' undeclared (first use in this function)
 arfperl.c:154: error: `AR_RETURN_OK' undeclared (first use in this
 
 function)
   
 arfperl.c: At top level:
 arfperl.c:170: error: syntax error before int
 arfperl.c:171: error: syntax error before '*' token
 arfperl.c: In function `ARPluginTermination':
 arfperl.c:174: error: `status' undeclared (first use