problem about hp-ux-Collection of common programming errors


  • Sash
    bash error-handling hp-ux
    I am attempting to handle an unexpected output from a command within a for loop. I am using a proprietary unzip utility (mfunzip), however when the utility encounters a corrupt file, it begins to echo out an endless “Fatal error in InputBit!” message.I am attempting to capture the output and continue the loop onto the next file.for FILE in $(ls); doif [ -d “$FILE” ]; then……# without command output, it runs indefinitelyoutput=$(mfunzip $currentfile $extractdir)# it never reaches hereecho $out

  • j0k
    gcc hp-ux
    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 some global constructor. In fact, gdb can’t even get me info on where this actual global object is. The si_code is SEGV_ACCERR – Invalid Permissions for object and the

  • j0k
    c# unix sharepoint-2010 mono hp-ux
    I was wondering if it was possible to run/convert/compile/recompile a small c# program, tasked with invoking a webservice and passing it the usual xml file with, for unix. The unix version if HP ux 11.23(released in 2003).Wherever I looked for it the only reasonable answer was “mono”. However while searching I also came across this: http://www.mono-project.com/Mono:HPUXCurrently only the Mono Interpreter (mint) will work on HPUX. At this time, Mono’s JIT does not work with HPUX.Only thing keepin

  • GEOCHET
    unix solaris hp-ux
    When using HP-UX I can use the chatr utility to report on various internal attributes of a shared library. It will also allow me to modify the internal attributes of shared libraries that I have built.The chatr utility can report, and in some cases modify, such things as:the run-time binding behaviour, the embedded library path list created at build time, whether the library is subject to run-time path lookup, internal names, etc., etc.Is such a utility available for Solaris?Edit: Freaky! Thanks

  • j0k
    linux scheduling hp-ux
    On Linux and HPUX I see that the default timeslice duration, as observed by measuring the average sleep time for a “too small” duration sleep (100-1000 microseconds), has changed from about 10 and 20 milliseconds respectively, to about 4 and 10 milliseconds respectively.On Linux, is there a /proc mechanism to tell at runtime what this duration is? How about hpux or any other platform? Other platforms of specific interest for my purposes are: Windows, AIX, Solaris, and MacOSX.I expect that this

  • rahul
    c++ gdb crash-dumps hp-ux
    I have a program which crashes due to a segmentation fault. The core file is produced.running the core in gdb gives me the following:HP gdb 6.1 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3. Core was generated by `gcpf1fwcApp’.Program terminated with signal 6, Aborted.I used the commandthread apply all btWhen I check the stack trace I get error in the main thread which is in waiting state.However when I run the same program in GDB I get a completely different error in stack tra

  • Morinar
    c gdb hp-ux
    I have a C application we have deployed to a customers site. It was compiled and runs on HP-UX. The user has reported a crash and we have obtained a core dump. So far, I’ve been unable to duplicate the crash in house. As you would suspect, the core file/deployed executable is completely devoid of any sort of symbols. When I load it up in gdb and do a bt, the best I get is this:(gdb) bt #0 0xc0199470 in ?? ()I can do a ‘strings core’ on the file, but my understanding is that all I get there

  • Miguel Rentes
    c++ gcc g++ jni hp-ux
    uname -mr: B.11.23 ia64g++ –version: g++ (GCC) 4.4.0java -version:Java(TM) SE Runtime Environment (build 1.6.0.06-jinteg_20_jan_2010_05_50-b00) Java HotSpot(TM) Server VM (build 14.3-b01-jre1.6.0.06-rc1, mixed mode)I’m trying to run a Java application that uses JNI. It is crashing inside the JNI code with the following (abbreviated) stack trace:(0) 0xc0000000249353e0 VMError::report_and_die{_ZN7VMError14report_and_dieEv} + 0x440 at /CLO/Components/JAVA_HOTSPOT/Src/src/share/vm/utilities/vmError

  • j0k
    c gdb hp-ux dbx core-file
    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!

  • j0k
    linux solaris hp-ux memory-mapping 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?

  • LanceBaynes
    linux solaris aix shutdown hp-ux
    What parameters do the “shutdown” command [or other command?] NEED, TO BE SURE that the machine reboots or shuts down for SURE?e.x.: version for Linux: # cat /etc/SuSE-release SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 4e.x.: version for AIX: $ oslevel -s 6100-05-01-1016e.x.: version for SunOS: cat /etc/releaseSolaris 10 10/09 s10s_u8wos_08a SPARCCopyright 2009 Sun Microsystems, Inc. All Rights Reserved.Use is subject to license terms.Assembled 16 September 2009 # e.x.:

  • Bert
    hp-ux
    Anything I install via depothelper on HP-UX 11.23 (ia64) seems to crash. I installed the packages using the following command:/depothelper -a ia64 -c /var/tmp/mydir -o 11.23 vimAnd here is what I get when I try to execute the programs:bash-2.05b# whereis vim whereisvim: /usr/local/bin/vim /usr/local/man/man1/vim.1 /usr/local/share/man/man1/vim.1 bash-2.05b# whereis rsync rsync: /usr/local/bin/rsync /usr/local/share/man/man1/rsync.1 bash-2.05b# /usr/local/bin/rsync Bus error (core dumped) bash-2.

  • Gilles
    permissions acl hp-ux
    I have a shell script that I execute after uninstalling a web application. The script is meant to clean up permissions that were needed during the execution of the application.find /opt/path -exec setacl -d user:myUser {} ‘;’After this executes and the acl is removed I am left with an acl that looks as follows user:101:— /opt/pathHow can I properly call setacl to remove the user without leaving behind a uid?

  • dsolimano
    unix hp-ux
    I have HP-Unix 11.11 installed on an HP-9000 series server. I want to know what happen to the server if the root partition gets full? Will this affect the RAM or crash the server? Also, will any applications running on the server be affected?

  • j0k
    c++ c linux gcc hp-ux
    In the process of porting an HP-UX C++ application over to LINUX, I’ve noticed that there was a function of type int where not all code paths appear to return an integer value. When I compile and run the application under HP-UX (using the acc compiler for compilation), it returns a 0 through a codepath that does not explicitly state a return value. However, when I compile and run the same application under LINUX, I get a return value of -72 and the application presents an error consequently (th

  • Justin
    c++ linux gcc g++ hp-ux
    I have this issue with one of my functions in this C++ program I’m porting over from HP-UX to LINUX. Basically, what seems to be the problem is that for the functionconst char * Dictionary::lookup(const DictionaryKey &, …)the gcc compiler appears to be complaining that I cannot pass objects of type const Dictionary through …The source code for the program is pretty old and looks to utilize a lot of C-style constructs. This particular function accepts a variable list of arguments as allo

  • j0k
    ruby hp-ux
    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.

  • Jay
    c hp-ux acc
    I am building a .sl library using aCC in HP-UX 11.00. I am able to build it and then link it to the application also successfully.But, when I execute the exe, it gives the below error/usr/lib/dld.sl: Unresolved Symbol: __shlinit(code) from mylib.slAny pointers towards resolving this problem will be helpful

  • Koushik
    c hp-ux acc
    I am trying to compile a console C application on HP-UX machine using the aCC compiler [HP C/aC++ B3910B A.06.26].The compilation always failing with the below error :******”Common/Common.c”, line 153: error #2020: identifier “snprintf” is undefinedsnprintf( BufferMessage, MSG_SIZE,^ 1 error detected in the compilation of “Common/Common.c”. gmake: *****[Common/Common.o] Error 2********However the Common.C file include already the library which contain normally the method snprintf. any idea t

  • Gilles
    grep hp-ux recursive portability
    I need to find which files (they can have space in the filename) of a directory contains a string using only sh and system’s commands (Perl is not an option).For a few files, this command works fine:# grep -l word * file 1 file1But if I have 270k file, I obtain the following error:# grep -l word * sh: /usr/bin/grep: The parameter list is too long.In HP-UX, the xargs command doesn’t have the -0 option, so I can’t use this:# find . -print0 |xargs -0 grep -l xargs: unknown option: -0Do you know wh

  • j0k
    c++ hp-ux
    I am using 3 HP-UX PA RISC machines for testing. My binary is failing on one PA RISC machine where as others it working. Note that, even though binary is executed with version check i.e. it just print version and exit and don’t perform any other operation , still binary is giving segmentation fault. what could be probable reason for Segmentation fault. It is important to me to find out root cause of the failure on one box. As program is working on 2 HP-UX, it seems that it is environment issue

  • j0k
    perl 64bit hp-ux
    We were trying to compile the LibXML module for perl in 64 bit HPUX machine.We ran the .configure like below:./configure –prefix=/software/opt/HPUX11/ia64/libxml2-2.7.7 –target=ia64-hpuxThe compiler is set to 64 bit: export CC=”cc +DD64″Then we ran gmake install, the following error occured:gmake[1]: Entering directory `/software/src/libxml2-2.7.7′ /bin/sh ./libtool –tag=CC –mode=link cc +DD64 -o xmllint xmllint.o ./libxml2.la -lpthread -lm libtool: link: cc +DD64 -o .libs/xmllint xm

  • j0k
    c unix hp-ux
    I have a test script which is internally calling make to compile a sample C programme. But for some unknown reasons, the compilation is not going through. It is throwing below error:08-27 20:23:45.777 make program cc -o /mnt2/pfst.4183/bin/program program.c cc: error: cannot open message catalog: ecc.cat cc: error 1901: unknown message *** Error exit code 1Stop. Ret = 1When I tried to compile the same program on command prompt, it is going through successfully. The same script is workin

Web site is in building