Page 1 of 1

Problem with 64bit,FC13

Posted: 26 Aug 2010, 12:37
by wmliu
I rebuilt the latest elegant under a 64bit FC13 and then ran into a problem with beam input file. The elegant always complain that "Unable to process column selection--unrecognized column name yypp seen (SDDS_SetColumnsOfInterest)". I tracked it down to SDDS_CopyString function call but couldn't go any further. It looks like SDDS_CopyString copied yp from the source into yypp in the destination. Could any body tell me where is this function implemented? This problem may be unique with my 64bit FC13, because I don't get this error in cygwin.
Right now I bypassed this function call by calling SDDS_SetColumnsOfInterest in sdds_beam.c with a different set of arguments for the same objective.

Thanks,

Re: Problem with 64bit,FC13

Posted: 26 Aug 2010, 12:41
by michael_borland
Did you also rebuild the SDDS libraries? They are in epics/extensions/src/SDDS/SDDSlib.

--Michael

Re: Problem with 64bit,FC13

Posted: 26 Aug 2010, 13:06
by wmliu
Michael,
Thanks for your reply.
Yes, I rebuilt both the base and extension of epics.
The default compiler is gcc4, but did try with gcc3.4. Both having the same problem.

Wanming

Re: Problem with 64bit,FC13

Posted: 26 Aug 2010, 13:49
by soliday
I am setting up a virtual Fedora 13 64bit system now so I can try to duplicate the problem.

Re: Problem with 64bit,FC13

Posted: 26 Aug 2010, 23:21
by wmliu
Found the problem with SDDS_GetToken. Added in few lines as bellow and solved it.
char *temp;
/* update the original string to delete the token */
SDDS_CopyString(&temp,s);
strcpy(ptr0, temp);
free(temp);
/* return the string length */

Thanks,

Re: Problem with 64bit,FC13

Posted: 27 Aug 2010, 11:34
by soliday
I was able to duplicate the problem on Fedora 13. I was also able to verify that your patch works. So our next release will include this fix.