aix

Why does GDB says "Architecture of file not recognized"?

Hi All, I m using gdb on a aix shared lib running on aix 5.3? When i try to run gdb for this file i get a error message saying ""Architecture of file not recognized" Don't know how to get this fixed. Does anybody know why i get this message ""Architecture of file not recognized"?. gdb runs fine on other executables compiled by xlc. ...

Java cannot resolve DNS address from AIX: UnknownHostException.

I'm having this strange error. On AIX, if I can reach my server from the command line ( using ping / telnet ) But If I try using java I've got UnkownHostException This is due to Java cannot somehow "use" the DNS but I don't know why. If I use the IP address it works fine. This is my test program. import java.net.*; public ...

Running UNIX commands as different user, from Java

Trying to write a Java program capable of running a UNIX command as a different UNIX user. I have the user's password, and I know the command I want to run, but the command has to be run as that user - so I have to login as that user first. For example: say we have a user, jim, who wants to see what's in bob's home directory, and (for w...

Invalid Month in Date - Date format in Informix reverts sporadically

So we have an AIX (ugh) server that runs an ERP system. This system's built in reports suck so I am of course tasked with building the reports we need. I've got many reports I run and most of course are for specific dates, etc. The coding is done in C# running in ASP.net on a Windows 2003 Standard Server box. It uses the Informix CSDK t...

How to Make a AIX shell script executable?

I write a simple shell script which could be run like this $ksh script1 But i donn't know how to execute it.Like $script1 thanks. ...

How can I generate call graphs for Perl modules and scripts?

Hi All, I have a bunch of Perl scripts and Perl modules given to me by someone. I have a driver program that tests all these scripts and modules. I want to generate a call graph and see the flow. Is there something available for Perl for doing this? I'd like something like pycallgraph (for python). I am running all this in AIX. Thank...

AIX 4.3 - Backup entire system over the network?

I want to backup a AIX 4.3.2.0 machine to a network location. In the past, I've used dd/netcat to backup a system like linux. The server does not appear to NFS or netcat on it. I see that I should this command mksysb to complete backup rootvg -- but I don't have a tape for the tape drive. What are my options here? ...

AIX/XP Curses get key/modifier key in a cross platform fashion.

Hello All. I am working on a simple console app to get my feet wet with curses again. I am having a bit of a problem porting my app from xp to AIX. Here is a sample chunk of code. int main(void) { WINDOW *_window = initscr(); int _rows; int _cols; cbreak(); /* Accept all keys */ keypad(_window, true); ...

How to execute a job in AIX to load and unload the DB2 tables

Hi, Can anyone help me on following questions related to AIX 1) How to execute a job in AIX to load and unload the DB2 tables 2) how to execute a cobol promotion in AIX- meand process to promote a modified COBOl code from one specific region to next higher region on AIX 3) how to execute a DB2 data promotion from AIX to Mainframe. Any...

Conditional sections in AIX Makefiles

How do I make a makefile that works on AIX, Linux and SunOS and has the ability to provide different compiler options for each environment? I have access to an environment variable which describes the OS, but the AIX make utility does not like ifeq, so I can't do something like: ifeq($(OS), AIX) CFLAGS = $(CFLAGS) <IBM compiler opt...

How do I get C++ programs to link with gcc's stack protector feature on AIX?

I'm a bit of an AIX newbie. I'm trying to compile a program using gcc's stack protector feature. I installed gcc on server using pware's GCC package and I can compile a sample program like: #include <stdio.h> int main(int argc,char **argv) { printf("hello world\n"); return 0; } When I turn on stack-protector though, I get: g++ -...

Code review tools to work with SCCS?

Possible Duplicate: Best tools for code reviews Hi All, I want a code review tool , that is simple to use , nothing fancy and must be able to pull source or integrate with SCCS. Could be web based or a desktop client. I will be using this on linux. AIX would be preferable. Code i will be reviewing is perl, but that shouldn...

JVMXM008: Error occured while initialising System ClassException in thread "main" Could not create the Java virtual machine.

I am unable to execute the java command in a specific folder , throwing error as below JVMXM008: Error occured while initialising System ClassException in thread "main" Could not create the Java virtual machine. With same user, I am able to run java in home directory but I am not able to run in application config directory. echo $JAV...

viewing the stack when a crash happens

hi, i am using AIX OS.here i am facing a problem that when ever the process crashes there is no stack written in the log.it just gives an information of signal1/10/4 has occured. but no stack is shown. since the code is an optimized code i am even not able to debud using dbx.gdb is not installed. could you please suggest how to see the ...

How do I pass runtime options to AIX COBOL?

I need to pass the TRAP(OFF) runtime option to an IBM AIX COBOL application. The problem is, I have no idea how to do that, and I can't find anything in the IBM documentation on how to do that. I've tried export TRAP=OFF in my runscript, but that didnt do it. Does anyone know how to do this? ...

AIX 5.3 (ld-xlc) equivalent option Linux (ld-gcc) -rpath

My compiler:xlc version 10.1 Environment: AIX5.3 Linker: ld When i work on Linux , with gcc (4.4.1) i use the following option -Wl,-rpath (-Wl for the linker options) it adds a directory to the runtime library search path. What's the equivalent for xlc compiler ? or what's the equivalent to -rpath for the linker. Thank you. ...

apr-util configuration problem on AIX 52 and AIX 53 OS

I am trying to build apr-util subversion dependency library on AIX. Configure errors out saying "configure: error: C compiler cannot create executables. See `config.log' for more details." I am not sure what am i missing in configuration flags that the config.log ends up saying configure:3064: checking for C compiler default output fi...

AIX - How to find the value of the WAIT Queue as in topas

I want to write a very simple C program on AIX to return the value of the system's wait queue as displayed in the 'topas' tool. I can't seem to locate a simple system reference that shows how to do this. ...

AIX- Does not install shared lib

I am able to build the shared object successfully using the holy native compiler "xlc" on AIX.It does build the shared object library but does not install the shared object library. Configure command is: ./configure --prefix=/PATH/to/install --exec-prefix=/PATH/to/install --enable-shared --enable-static=no --enable-module=so --build=pow...

hash_map on AIX?

Hi, I am porting a program to AIX which takes use of hash_map in many places. For linux and solaris hash_map is included in _gnu_cxx package and stlport. However, I can't find hash_map on AIX platform. Anybody know? Btw, I have to use IBM compiler /usr/vacpp/bin/xlC. Thanks. ...