Page 1 of 1

error: ‘struct sigcontext’ has no member named ‘cr2’

Posted: Thu Oct 01, 2009 5:31 pm
by rc3
Hi,
I am trying to install ZoneMinder 1.24.2 from source to my sheevaplug (which is not x86 based) running Debian Lenny (5.0). ./configure runs without error but when I run the command run, I got:

zm_signal.cpp: In function ‘void zm_die_handler(int, sigcontext)’:
zm_signal.cpp:90: error: ‘struct sigcontext’ has no member named ‘cr2’
make[2]: *** [zm_signal.o] Error 1
make[2]: Leaving directory `/home/sysuser/dl/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sysuser/dl/ZoneMinder-1.24.2'
make: *** [all] Error 2

Any ideas/suggestions?

Posted: Sat Oct 03, 2009 6:30 pm
by solsrch
You might lose a bit of crash debugging capability but you can just comment out the two lines in zm_signal.cpp that contain "cr2".

Posted: Sat Oct 10, 2009 8:59 pm
by rc3
Well the fix turned out to be changing cr2 to fault_address in zm_signal.cpp. I forgot where I got that solution from but it compiles without problem now.