Operating System - HP-UX
1833771 Members
2172 Online
110063 Solutions
New Discussion

compatibility of bundled C compiler (HP-UX 11.0)

 
SOLVED
Go to solution
Reggie Chang
Frequent Advisor

compatibility of bundled C compiler (HP-UX 11.0)

Hello all,

A software verdor gave me an executable code.
When I ran it, I got error messages like
# C_Demo
/usr/lib/dld.sl: Unresolved symbol: __ZStaticCtorTable_Start (data) from /usr/lib/libCsup.2

/usr/lib/dld.sl: Unresolved symbol: __ZStaticCtorTable_End (data) from /usr/lib/libCsup.2

/usr/lib/dld.sl: Unresolved module for symbol: __shlinit (code) from /usr/lib/libCsup.2
Abort(coredump)
# ls

We only has C compiler bundled with HP-UX 11.0.
Does it mean the libraries that we have are not
compatible with those used by the vendor?

Your information is very much appreciated.

Reggie
5 REPLIES 5
Bill Hassell
Honored Contributor

Re: compatibility of bundled C compiler (HP-UX 11.0)

The C compiler for HP-UX (and had always been) the K&R C compiler which is not ANSI. It's sole purpose is to generate kernels. To compile anything more complicated than the classic HelloWorld program, you need a development environment. Most customers purchase applications rather than writing, compiling and debugging them so the development tools (ANSI compiler, loader, linker, debugger, libraries) are optional extras.

You can download the gcc compiler from HP's software.hp.com website. There are numerous other zero-cost packages at that website. You can also get additional tools from http://hpux.connect.org.uk/


Bill Hassell, sysadmin
benoit Bruckert
Honored Contributor

Re: compatibility of bundled C compiler (HP-UX 11.0)

HI,
If i understand your question, i don't think that the compiler is concerned.
a vendor sold you a binary product which start with errors + core .
These errors from what i can see concerned the dynamic library subsystem (especially the libCsup library).
If it doesn't work on your system, this means that your vendor didn't give you all the prerequisite, or compiled the binary with another level or architecture of the OS. I think it's probably a patch level which is not the same between your host and the vendor's one.
check with the version of this lib to compare !
You should have the ability to run anything whatever developpment tools is installed or not on your host. If you have all the prerequisites.

hope that help,
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Steven Gillard_2
Honored Contributor
Solution

Re: compatibility of bundled C compiler (HP-UX 11.0)

If you're not actually compiling code the version of the compiler doesn't make a difference. It looks like the version of the libCsup.2 library you have is different to the one on the system where the code was built.

Try installing patch PHSS_26945 which will update that library to the latest version. If that doesn't work you'll need to contact the vendor.

Regards,
Steve

Steve Steel
Honored Contributor

Re: compatibility of bundled C compiler (HP-UX 11.0)

Hi

Bill is certainly right about the compiler and the others about the loading.

See http://mailman.cs.uchicago.edu/pipermail/swig/1999-July/000402.html

For a good example

This software is not compatible with your setup


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Francis_12
Trusted Contributor

Re: compatibility of bundled C compiler (HP-UX 11.0)

Hello,

Can you check :

#ldd -v C_Demo

This will display where the executable is looking for shlibs. This will display if dld.sl is able to load libCsup.2.

#chatr C_Demo

To see exactly which shlibs are loaded and the executable bits particularities.

#nm -xv /usr/lib/libCsup.2 | grep -i ctortable

This will display if the symbols (for instance ZStaticCtorTable_Start) are there.

Hope this helps, Bye.

Francis - HP-UX ASCE.