aix

Why this warning from IBM XL C/C++ compiler?

Here's a minimum code example that illustrates the problem: #include <iostream> class Thing { // Non-copyable Thing(const Thing&); Thing& operator=(const Thing&); int n_; public: Thing(int n) : n_(n) {} int getValue() const { return n_;} }; void show(const Thing& t) { std::cout << t.getValue() << std::endl; } ...

How to check whether thread management initialization finished?

I am developing a class, which can be instantiated before main() is called. I have a critical sections protected by a mutex is the code. Unfortunately, the application fails on AIX as the code is called before threads are initialized. I want to add a check to the code to avoid mutex locking if threads are not ready and use the locking af...

lightweight/portable VCS for server-hopping DBA?

I'm looking for a VCS that'll help me keep all of my work scripts in-sync. Requirements: Portable (as in flash drive, not code-level) Run on Windows XP and Server 2003+ No installation dependencies (Cygwin, perl, Python) I use Mercurial on my work machine for version control of the various T-SQL, ksh, perl, and CMD/BAT scripts that ...

Python on AIX: What are my options?

I need to make some Python applications for a work project. The target platform is AIX 5.3. My question is: What version of Python should I be using? My requirements are: The Python version must be easy to install on the target machines. Others will do that according to instructions that I write, so no compiling from source or anythi...

Problem compiling Python 2.6.4 on AIX 5.3

I'm trying to build Python 2.6.4 on AIX 5.3. I'm running configure like this: ./configure --prefix=/home/chenf/python --disable-ipv6 --disable-shared --with-libs='/usr/lib/libncurses.a' --without-threads --disable-threads --with-ncurses=/utv/sad/ncurses/lib/libncurses.a I seem to be having linking problems with ncurses (see below), w...

Getting error while linking an OCCI program on AIX

Hi All , I have written one sample program for connecting Oracle in C++ using OCCI.. It is giving me a runtime error . ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode,void*,void*(*)(void*,unsigned long),void*(*)(void*,void*,unsigned long),void(*)(void*,void*)) ...

Advanced grep unix

Usually grep command is used to display the line contaning the specified pattern. Is there any way to display n lines before and after the line which contains the specified pattern? Can this will be achieved using awk? ...

Programatically reading contents of /etc

I want to programatically read the contents of the /etc directory. If possible please reply with the code to achieve this. ...

AIX monitoring directory changes

Hello, I'm on AIX 5.3 and I'm a total noob with that OS. I was wondering if there is something like inotify on AIX so that one can monitor directories and files for changes instead of polling. I'm going to do this from Java so solutions using Java or C (I can just wrap it with jni or jna) are fine. I'd rather not use any shell scripting ...

How come we pass the linking stage and still miss symbols ? ?

Hi All And thanks in advance. operating system: AIX 5.3. compiler: xlC_r build system is: "Unix Makefiles" our application uses several static (.a) libs and several shared (.so) libs. the build process pass successfully (we do get some duplicate symbol warnings). but when we try to execute we are getting symbol missing errors. Note:...

Determining whether a library archive for AIX is 32-bit, 64-bit, or both, from Linux

On AIX, I would run: ar -X32 -t libdb2.a and check for output to determine if there is a 32-bit object in the archive. Similarly with -X64 for checking for a 64-bit object. However, what about if I'm on another platform, and need to check the archive to see what it has? Usually I'm on Linux when I need to check, but I could just as...

SWIG crashes on AIX (with python, and probably everything else SWIG support)

SWIG compiles and install easily on AIX. Unfortunately, a simple SWIG hello world (which also compiles - but not so easily) crashes with Segmentation Fault or Illegal Instruction (depending on some details of the compilation/linker process). This happens with both gcc and xlc (IBM c compiler). I tried only the native AIX linker ld, becau...

Concept of "Sticky" library on AIX ?

We have a problem when loading a dynamic library multiple times (>200) on AIX. The page : http://www-01.ibm.com/support/docview.wss?uid=isg1IY93339 states a similar problem and the suggested solution is to "make the library sticky" to load it in memory a single time...But does the concept still exist on AIX 5.3 and above ? It does not se...

AIX (vs) Unix commands

I need all the Unix commands which are specific to AIX machines. For e.g.: for Unix top is equivalent to topas in AIX. I need the list of similar commands. Where can I find it? Is there any documentation for this? ...

AIX emulator on Windows

Is there such a thing? Or more generally, any way of running AIX shell scripts on other OSes? ...

Unix: fast 'remove directory' for cleaning up daily builds

Is there a faster way to remove a directory then simply submitting rm -r -f *directory* ? I am asking this because our daily cross-platform builds are really huge (e.g. 4GB per build). So the harddisks on some of the machines are frequently running out of space. This is namely the case for our AIX and Solaris platforms. Maybe there ...

SNMP on AIX 5.3

I need to monitor a system with AIX 5.3, but can't find a good source for the OIDs. Does anybody know the OIDs for CPU, Memory and Harddisk values? ...

JVM system time and time inconsistency OS system

Using websphere application server 6.0.1.23 on aix 5.3 In applications (Lotus connections), working on an application server (WAS). Entries that make application users are recorded with the wrong date, not one that grants the date command. Has anyone encountered a similar situation? ...

Counting program unaligned address accesses on Sun OS, AIX

How to count program unaligned address accesses on Sun OS and AIX. Or how to measure time to system handling this exception on Sun OS and AIX ? ...

libsnmp restore on AIX

Hi, One of product removed libsnmp file of client AIX box. Now we want to restore it back. So,... 1.- Is it possible to restore it back ? 2.- Which process installs this libsnmp, like clusters or...? Here it removal of product is not possible. Plz let me know for further details. Thanks in advance... :-) ...