ARSperl 1.90 doesn't support ARS 4.0 any more. Concerning the core dump, do you call ars_GetEntryBLOB with AR_LOC_BUFFER or AR_LOC_FILENAME? Does the core dump occur with both of those variants?
If it occurs only with AR_LOC_FILENAME, it might help to change line 756 of the file "ARS.xs" from loc.u.filename = locFile; to loc.u.filename = strdup(locFile); and compile again. (The line number refers to ARS.xs in version 1.90 and might be different in 1.85) Regards, Thilo Stapff Allan Yates wrote: > I have a Solaris server: > > # uname -a > SunOS ottqa05 5.6 Generic_105181-35 sun4u sparc > I can compile ARSperl 1.8001, 1.81, 1.82, and 1.85 successfully. However > 1.90 fails. ARS version is 4.0. > > The reason I am trying to get a new version working, is that > ars_GetEntryBLOB is intermittentantly core dumping and I was hoping a > new version of the API might fix that. If I retrieve attachments in a > given field order on a service request then it core dumps every time, if > I reverse the order then it succeeds each time. > > Any ideas on the compile problem (or the core dump)? > > > Thanks, > > Allan. > > 1.90: > > # make > Skip blib/lib/ARSarerrno-h.pm (unchanged) > Skip blib/lib/ARSnparm.pm (unchanged) > Skip blib/lib/_h2ph_pre.ph (unchanged) > Skip blib/lib/ARSar-h.pm (unchanged) > Skip blib/lib/ARSnt-h.pm (unchanged) > Skip blib/lib/ARSnterrno-h.pm (unchanged) > Skip blib/lib/ARSOOsup.pm (unchanged) > Skip blib/lib/ARSOOmsgs.pm (unchanged) > Skip blib/lib/ARSOOform.pm (unchanged) > Skip blib/lib/ARS.pm (unchanged) > gcc -B/usr/ccs/bin/ -c -I/usr/ar/api/include -fno-strict-aliasing > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.90\" > -DXS_VERSION=\"1.90\" -fPIC > "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" -g -DARS32 > -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=0 -DPERL_BASEREV_IS=50 ARS.c > In file included from ARS.xs:28: > supportrev_generated.h:69: parse error before "ARCharMenuDDFieldStruct" > supportrev_generated.h:72: parse error before "ARCharMenuDDFormStruct" > supportrev_generated.h:75: parse error before "ARCharMenuDDStruct" > supportrev_generated.h:90: parse error before "ARCharMenuSSStruct" > supportrev_generated.h:105: parse error before "ARCompoundSchemaList" > supportrev_generated.h:111: parse error before "ARContainerOwnerObjList" > supportrev_generated.h:184: parse error before "ARFieldLimitList" > supportrev_generated.h:190: parse error before "ARFieldMappingList" > supportrev_generated.h:262: parse error before "ARQualifierList" > supportrev_generated.h:308: parse error before "ARUnsignedIntList" > ARS.c: In function `XS_ARS_ars_SetImpersonatedUser': > ARS.c:8526: `ARAccessNameType' undeclared (first use in this function) > ARS.c:8526: (Each undeclared identifier is reported only once > ARS.c:8526: for each function it appears in.) > ARS.c:8526: parse error before "impersonatedUser" > ARS.c:8535: `impersonatedUser' undeclared (first use in this function) > make: *** [ARS.o] Error 1 > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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