AIX and 64 bit compilations
Jan. 6th, 2009 08:50 pmBack in October, I started porting some of my utilities over to AIX. Most compiled without problem, but one, a curses application written in C++, suffered from a number of strange problems. Initially, I had trouble getting the link step to complete because the editor kept on complaining about missing symbols, despite the fact that the symbols appeared to be visible in the archive. Then, when I finally managed to generate an executable, I found that it aborted with weird IO trap errors, although the curses routines were writing out of bounds — something I suspected might be due a mismatch between the compiler used to build the application and the compiler used to build the library.
Finally, today, whilst working on something else, I had a breakthrough: I realised that someone had made a global change on the system to set the
Talk about an annoying waste of time...
Finally, today, whilst working on something else, I had a breakthrough: I realised that someone had made a global change on the system to set the
OBJECT_MODE environment variable, forcing the compilers into 64 bit mode. Suspecting that this was the cause of the various link errors I'd been seeing, I unset it and retried my build, and sure enough my curses application built flawlessly.Talk about an annoying waste of time...