First of all I send greetings to all members of the forum, in particular to all readers of my thread.
I am currently dealing with a strange compilation issue on Kubuntu 12.04.02 64BE concerning the source code of procps, which is actually written in C, but I suspect most forum members to handle that language as well.
Being part of procps, my KDE plasmoid uses top as a frontend, and as I wish to enhance functionality I downloaded the latest release, changed it in my favour and compiled it successfully on both processor architectures. However, on the 64-bit edition, the original program as well as the modified version do not behave as expected. Some variables of the central struct called "proc_t" are corrupted. Weirdly enough, the installed Ubuntu binaries work flawlessly, so I suppose there are two possible scenarios:
The ubuntu developers/packagers used a different source code (I couldn't find the code in question) or I don't get my compiler to work properly (incorrect padding), although I considered the hints in the provided README file.
You can download and view the code here: http://procps.sourceforge.net/
I'd appreciate compiling tips or compilation attempts (extract, change directory and type "make") on other 64-bit linux systems. Please note that some hidden errors may only get visible after a change in standard top settings.
Thanks for your help in advance,