x86_64 software issues part 1
Posted 03-06-2012 at 09:39 AM by Rod3775
This was my first experience with 64 bit software. I did a stock install of Slackware64, and ran into the following issues:
(a) wpa_supplicant could not reauthenticate after a disconnect.
(b) wmctrl did not work correctly (could not return window list)
(a) I tried to patch wpa_cli to monitor wpa_supplicant and restart it, and discovered that when it is compiled with -O2 (as specified in its Makefile), gcc-4.5.2 compiled bad code - the return value of a function returning a pointer to a structure that was optimized into a register DID NOT return the pointer - it returned NULL! Removing -O2 from the Makefile fixed the problem. The changes to wpa_cli were too extensive for patch, I have a new program, wpa_mon, based on it, that I will make available to anyone interested.
(b) 64 bit XWindows returns pointers claiming they are 32 bit, but they are actually 64 bit. See part 2
(a) wpa_supplicant could not reauthenticate after a disconnect.
(b) wmctrl did not work correctly (could not return window list)
(a) I tried to patch wpa_cli to monitor wpa_supplicant and restart it, and discovered that when it is compiled with -O2 (as specified in its Makefile), gcc-4.5.2 compiled bad code - the return value of a function returning a pointer to a structure that was optimized into a register DID NOT return the pointer - it returned NULL! Removing -O2 from the Makefile fixed the problem. The changes to wpa_cli were too extensive for patch, I have a new program, wpa_mon, based on it, that I will make available to anyone interested.
(b) 64 bit XWindows returns pointers claiming they are 32 bit, but they are actually 64 bit. See part 2
Total Comments 0