2010/1/3 Michael StJohns <[email protected]>:
> Try running the compile with "-O2 -Wall --pedantic" and report the errors
> back to identify the specific place where this might be an issue.

Han created an account on his ARM system for me so I can find the problem.
Here is what I wrote him. Maybe someone has an idea to explain what I see.

" I can't reproduce the problem using the SVN version.
I can reproduce the problem using version 1.5.5. But using
-fno-strict-aliasing does not solve the problem.

What happens is strange.

I instrumented the code (winscard_clnt.c line 2433) like this:
printf("%s:%d %lX %X\n", __FILE__, __LINE__, hCard,
scControlStructExtended->hCard);
       scControlStructExtended->hCard = hCard;
printf("%s:%d %lX %X\n", __FILE__, __LINE__, hCard,
scControlStructExtended->hCard);

I have the output:
winscard_clnt.c:2433 13469 0
winscard_clnt.c:2435 13469 34690001

Note that 34690001h is 13469h but with the two 16bits words inverted.
I don't know what is causing that. "

I guess the compiler is doing some optimisations that are not
compatible with the way pcsc-lite is playing with pointers and casts.

This problem is no more present in the SVN version so no need to fix
it. I am more interested in understanding what is happening.

Bye

-- 
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to