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 in this function) >> arfperl.c:183: error: `AR_RETURN_OK' undeclared (first use in this >> > function) > >> arfperl.c: At top level: >> arfperl.c:202: error: syntax error before "int" >> arfperl.c:204: error: syntax error before "ARStatusList" >> arfperl.c: In function `ARPluginCreateInstance': >> arfperl.c:207: error: `status' undeclared (first use in this function) >> arfperl.c:210: error: `object' undeclared (first use in this function) >> arfperl.c:219: error: `AR_RETURN_OK' undeclared (first use in this >> > function) > >> arfperl.c: At top level: >> arfperl.c:234: error: syntax error before "int" >> arfperl.c:236: error: syntax error before "ARStatusList" >> arfperl.c: In function `ARPluginDeleteInstance': >> arfperl.c:239: error: `object' undeclared (first use in this function) >> arfperl.c:247: error: `AR_RETURN_OK' undeclared (first use in this >> > function) > >> arfperl.c: At top level: >> arfperl.c:268: error: syntax error before "void" >> arfperl.c:270: error: syntax error before "ARValueList" >> arfperl.c: In function `ARFilterApiCall': >> arfperl.c:276: error: `STRLEN' undeclared (first use in this function) >> arfperl.c:276: error: syntax error before "n_a" >> arfperl.c:277: error: `AV' undeclared (first use in this function) >> arfperl.c:277: error: `perlArray' undeclared (first use in this function) >> arfperl.c:278: error: `SV' undeclared (first use in this function) >> arfperl.c:278: error: `perlScalar' undeclared (first use in this function) >> arfperl.c:285: error: `inValues' undeclared (first use in this function) >> arfperl.c:291: error: `AR_DATA_TYPE_CHAR' undeclared (first use in this >> function) >> arfperl.c:312: warning: assignment makes pointer from integer without a >> > cast > >> arfperl.c:335: error: `FALSE' undeclared (first use in this function) >> arfperl.c:351: error: `ERRSV' undeclared (first use in this function) >> arfperl.c:353: error: `outValues' undeclared (first use in this function) >> arfperl.c:354: error: `ARValueStruct' undeclared (first use in this >> function) >> arfperl.c:354: error: syntax error before ')' token >> arfperl.c:357: error: `n_a' undeclared (first use in this function) >> arfperl.c:357: warning: passing arg 1 of `strdup' makes pointer from >> integer without a cast >> arfperl.c:377: error: syntax error before ')' token >> arfperl.c:383: warning: assignment makes pointer from integer without a >> > cast > >> arfperl.c:384: error: `AR_DATA_TYPE_NULL' undeclared (first use in this >> function) >> *** Error code 1 >> make: Fatal error: Command failed for target `arfperl.o' >> > >> >> I am wondering whether the arfperl should be better put in a specific >> location like <Remedy install directory>/api ... or I don't know ?? >> Is it the case? Or can I install it anywhere as I understood? >> Any other idea/help? >> Serouche >> >> >> >> >> Richard Hellier wrote: >> >> >>> Serouche, >>> >>> Assuming that your system *does* have the "gcc" compiler (you can tell >>> by using the command "which gcc" in a shell window), you will need to >>> change the Makefile to select "gcc" and not the default C compiler. >>> >>> Cheers, >>> >>> Richard. >>> >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> >>>> Date: Mon, 17 Dec 2007 10:32:32 +0100 >>>> From: [EMAIL PROTECTED] >>>> To: arsperl-users@arsperl.org >>>> Subject: [Arsperl-users] arfperl install issue >>>> >>>> hello all, >>>> >>>> I tried to install ARFperl which looks promising. >>>> But I got the following at the first step: >>>> >>>> >>>> >>>>> make >>>>> >>>>> >>>> cc -D_REENTRANT -G -KPIC -I../../../include -I/usr/bin/perl -c arfperl.c >>>> /usr/ucb/cc: language optional software package not installed >>>> *** Error code 1 >>>> make: Fatal error: Command failed for target `arfperl.o' >>>> >>>> Any help/idea? >>>> Serouche >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> >>> >>>> SF.Net email is sponsored by: >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services >>>> for just about anything Open Source. >>>> >>>> >>>> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> >> >>>> _______________________________________________ >>>> Arsperl-users mailing list >>>> Arsperl-users@arsperl.org >>>> https://lists.sourceforge.net/lists/listinfo/arsperl-users >>>> >>>> >>> ------------------------------------------------------------------------ >>> Everything in one place. All new Windows Live! >>> <http://www.windowslive.co.uk/get-live> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services >>> for just about anything Open Source. >>> >>> >>> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> >> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Arsperl-users mailing list >>> Arsperl-users@arsperl.org >>> https://lists.sourceforge.net/lists/listinfo/arsperl-users >>> >>> >>> >> ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services >> for just about anything Open Source. >> >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> _______________________________________________ >> Arsperl-users mailing list >> Arsperl-users@arsperl.org >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> >> >> ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services >> for just about anything Open Source. >> >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > >> _______________________________________________ >> Arsperl-users mailing list >> Arsperl-users@arsperl.org >> https://lists.sourceforge.net/lists/listinfo/arsperl-users >> >> >> > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Arsperl-users mailing list > Arsperl-users@arsperl.org > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Arsperl-users mailing list > Arsperl-users@arsperl.org > https://lists.sourceforge.net/lists/listinfo/arsperl-users > > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users