hpux

Curses Window in Linux Causing Abort

I have some legacy C code that I recently compiled on Linux. On the original HPUX the application opens and closes multiple curses windows. On the Linux box it can handle one window, but if I close that window, it crashes the program with an error message of "Aborted". Any ideas? ...

/usr/ldbin/resetpw varient for Linux

I've got a application that makes a shell call out to the HPUX resetpw command. It doesn't exist in Linux. Is there another command with similar functionality I could reference from my code? ...

HPUX machinfo equivalent for Linux? or What hardware am I using?

In HPUX the command "machinfo" list machine information such as Number of CPUs, Clock speed, Bus speed, processor type, Cache information, total memory, and OS version information. Is there an equivalent Linux utility? ...

how to get the command line args passed to a running process on unix/linux systems?

On SunOS there is pargs command that prints the command line aruguments passed to the running process. Is there is any similar command on other Unix environments? ...

Stack unwinding on HP-UX and Linux

I need to get the stack information of my C application in certain points. I've read the documentation and searched the Net but still cannot figure out how I can do it. Can you point to a simple process explanation? Or, even better, to an example of stack unwinding. I need it for HP-UX (Itanium) and Linux. Thanks ...

Compiling Ruby 1.9.1-p129 on HPUX

I am trying to compile Ruby on HPUX but get the following: cc: "transcode.c", line 1489: error 1588: "SIZE_MAX" undefined. cc: "transcode.c", line 1489: error 1563: Expression in if must be scalar. ...

Dynamic changes to thread stack size in Solaris 9 ?

Hello, I am looking for a configurable / tunable on Solaris 9 through which I can change the default thread stack size without recompiling the code to use "pthread_attr_setstacksize" For example on HPUX 11.11 / 11.23 the environment variable "PTHREAD_DEFAULT_STACK_SIZE" can be exported (available via HPUX patches PHCO_38307 / PHCO_3895...

Add linker option to boost build on HPUX

On HPUX I need to use the +h link option to get the boost 1.39.0 shared libraries to contain correct paths. -Wl,+h$(SPACE)-Wl,$(<[-1]:D=) (From http://www.nabble.com/HPUX-aCC:-Howto-avoid-building-boost-libraries-containing-absolute-library-path-references-when-calling-bjam-install-td17619511.html) I've tested that this works by hack...

Checking memory leaks on HPUX

What fields of getrusage do I use in order to check for memory leak on HPUX (what is the parallel to RES in 'top')? ...

executable failing in malloc_y function

we are trying to port our application from HP machine to AIX machine. it was running fine on HP machine but now its failing in malloc_y funtion. but we cant find any clue for this. who is calling this malloc_y function?? please advice. ...

Static/global constructors on GCC 4.1 / HP-UX 11.23

Quick summary: Lots of existing code that works fine on numerous platforms under gcc 4.1, aCC, VisualAge, and MSVC. I am working on getting this up to snuff on HP-UX currently. The output consists of multiple (8-10) shared libraries. Everything compiles fine now, but when attempting to run any test apps, they immediately segfault in so...

What is the difference between a .sl and a .so on HPUX?

Since you can link your application to a .sl file and a .so file what exactly are the differences between .so and .sl files? ...

Idle tcp file descriptor after failed connect on HPUX

I have a client tcp socket (in c++) that has a loop where it retries to open a socket and connect to a server at a certain interval until it succeeds. A bug in the program caused close not to be called on the file descriptor after a failed connect, and the same (open) descriptor was used again when calling socket and connect in the next...

How to extract .depot file on HPUX?

How can I extract extract a .depot file on HPUX? The .depot file is a tarred dir stucture, with some of the files gzipped under the same name as original. Note that my environment is quite limited - I can't have root, I don't have swinstall. http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1259826031876+283...

how to get the memory mapping for a core on Linux/HPUX (pmap)

On solaris i can run the pmap command on a core file to get the memory map of a crashed process. Unfortunately the pmap command available on HPUX and Linux doesn't provide this option. Any pointers how i can get this information on these platforms? Thanks! ...

Why can't I pipe the output of uuencode to mailx in a single Perl open statement?

Here's my code that is not working: print "To: "; my $to=<>; chomp $to; print "From: "; my $from=<>; chomp $from; print "Attach: "; my $attach=<>; chomp $attach; print "Subject: "; my $subject=<>; chomp $subject; print "Message: "; my $message=<>; chomp $message; my $mail_fh = \*MAIL; open $mail_fh, "uuencode $attach $attach |mailx...

process identification

Let's say i have 15 processes/daemons running in the background. let's say one of the process has dumped the core. how could i identify which process has dumped the core. i am using hpux! ...

activate RTTI in c++

Hi, Can anybody tell me how to activate RTTI in c++ when working on unix. I heard that it can be disabled and enabled. on my unix environment,how could i check whether RTTI is enabled or disabled? I am using the aCC compiler on HPUX. ...

Alien::SVN build error on HP UX 11.23

when trying ./Build on HP-UX 11.23 to install Alien::SVN, it exits with message: checking build system type... Invalid configuration `n': machine `n' not recognized configure: error: /bin/sh build/config.sub n failed configuring SVN failed at inc/My/SVN/Builder.pm line 108, <STDIN> line 3. Something went wrong with the Subversion config...

Is there an equivalent to pldd for HP-UX PA-RISC

On Solaris and HP-UX Itanium, pldd $process_id will give the shared objects loaded for that process. AIX has procldd and Linux has pmap that have the same functionality. Is there an equivalent for HP-UX PA-RISC? If not - what approach should be taken to writing one. Use ttrace() maybe? ...