Problem with 64bit,FC13

Moderators: cyao, soliday

Post Reply
wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

Problem with 64bit,FC13

Post by wmliu » 26 Aug 2010, 12:37

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,

michael_borland
Posts: 1959
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Problem with 64bit,FC13

Post by michael_borland » 26 Aug 2010, 12:41

Did you also rebuild the SDDS libraries? They are in epics/extensions/src/SDDS/SDDSlib.

--Michael

wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

Re: Problem with 64bit,FC13

Post by wmliu » 26 Aug 2010, 13:06

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

soliday
Posts: 405
Joined: 28 May 2008, 09:15

Re: Problem with 64bit,FC13

Post by soliday » 26 Aug 2010, 13:49

I am setting up a virtual Fedora 13 64bit system now so I can try to duplicate the problem.

wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

Re: Problem with 64bit,FC13

Post by wmliu » 26 Aug 2010, 23:21

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,

soliday
Posts: 405
Joined: 28 May 2008, 09:15

Re: Problem with 64bit,FC13

Post by soliday » 27 Aug 2010, 11:34

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.

Post Reply