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

Forum for questions and support relating to the 1.24.x releases only.
Locked
rc3
Posts: 4
Joined: Thu Oct 01, 2009 1:18 pm

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

Post 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?
solsrch
Posts: 5
Joined: Tue Jul 28, 2009 6:37 pm

Post 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".
rc3
Posts: 4
Joined: Thu Oct 01, 2009 1:18 pm

Post 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.
Locked