The compiling problem was for the first few debugging calls, a two argument
printk was being used. The solution was to uncomment and make the "minor"
variable available again. Unfortunately I didn't get any further.
So I took a link from a Gentoo ebuild that Harvey sent and disected it to
make sure I had a sane build environment on my FC5 distro.
I created debug versions of the ozscrtlx kernel module and lib_OZSCR.so
library. Then used "pcscd -f -a -d".
This time it showed in the library when the seg fault occurs:
[EMAIL PROTECTED] ozctapi]# pcscd -f -a -d
pcscdaemon.c:259:main() pcscd set to foreground with debug send to stderr
debuglog.c:236:DebugLogSetCategory() Debug options: APDU
debuglog.c:207:DebugLogSetLevel() debug level=debug
pcscdaemon.c:508:clean_temp_files() Cannot unlink /var/run/pcscd.comm: No
such file or directory
readerfactory.c:1095:RFInitializeReader() Attempting startup of O2Micro
SmartCardBus Reader 00 00.
readerfactory.c:933:RFBindFunctions() Loading IFD Handler 2.0
ifdhandler.c:121:IFDHCreateChannel Lun 0, Channel F10000
ctapi.c:106:CT_init CT_init enter
ctapi.c:119:CT_init Try to open channel dev/ozscrlx
Segmentation fault
In the ctapi.c code:
118 case PORT_Pcmcia:
119 DebugLogA("Try to open channel dev/ozscrlx");
120 BretVal = ICC_Open_Channel("/dev/ozscrlx");
121 break;
I don't know what the problem with the device node I created:
[EMAIL PROTECTED] ozctapi]# ls -l /dev/o*
crw-rw-r-- 1 root tty 123, 0 Aug 7 23:15 /dev/ozscrlx
I also determined that the results are the same regardless of whether the
module is loaded.
This tells me there's something incorrect in the library code and not the
kernel module.
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle