Getting following error on HPUX 11.00 (170 Views)
Reply
Honored Contributor
Padma Asrani
Posts: 594
Registered: ‎01-18-2006
Message 1 of 11 (170 Views)
Accepted Solution

Getting following error on HPUX 11.00

Hello

I am getting following error after running a binary on HPUX

/usr/lib/dld.sl: Unresolved symbol: _end (data) from /usr/lib/libc.2
/usr/lib/dld.sl: Unresolved module for symbol: _curbrk (data) from /usr/lib/libc.2
/usr/lib/dld.sl: Unresolved module for symbol: mallopt (code) from /usr/lib/libCsup.2
Abort(coredump)

Am I missing any patches?

Regards
PAdma
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 11 (170 Views)

Re: Getting following error on HPUX 11.00

Shalom,

May just be SHLIB_PATH is not correct. Check the files exist and then make sure /usr/lib is part of SHLIB_PATH

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 3 of 11 (170 Views)

Re: Getting following error on HP-UX 11.00

[ Edited ]

>SEP: May just be SHLIB_PATH is not correct.

I doubt this has anything to do with SHLIB_PATH. It seems Padma has some unsats.

The symbol _end is defined in the executable. The unsat chain starts with libCsup calling mallopt. This probably needs _curbrk which probably needs _end.

Has this application worked before? What changed?

Years ago I added the mallopt call to libCsup and that may cause issues if you linked with both shared and archive versions of libc.

To see of _end is exported from your executable you need to do:
# /usr/ccs/bin/odump -slexport your-exec | grep _end

Please use plain text.
Honored Contributor
Padma Asrani
Posts: 594
Registered: ‎01-18-2006
Message 4 of 11 (170 Views)

Re: Getting following error on HPUX 11.00

Hi

Thanks for the response. I am building on a two different build machine. If I build on one machine it works perfectly fine and if I build on other machine application doesn't run and it gives me the error which I earlier described. The only difference between the two machines is the difference in architecture.
HP-UX nnm11b2 B.11.00 A 9000/785 2003835268 two-user license
HP-UX ovhpx08 B.11.00 A 9000/800 818990680 two-user license

I was wondering if it is because of difference in patch level on both the machine. Do you any patch which can help to eliminate this problem?

Regards
PAdma
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 5 of 11 (170 Views)

Re: Getting following error on HP-UX 11.00

[ Edited ]

>I was wondering if it is because of difference in patch level on both the machine. Do you any patch which can help to eliminate this problem?

This could be very possible. The point I was trying to make, was that if you had the patch that implemented the mallopt call, that may cause it.

This was implemented in A.03.33, PHSS_24627, Dec 2001.
Otherwise you may have a bad dld patch.

Can you do the above odump command.
And then do a what(1) on /usr/lib/libCsup.2 and /usr/lib/dld.sl.

Please use plain text.
Honored Contributor
Padma Asrani
Posts: 594
Registered: ‎01-18-2006
Message 6 of 11 (170 Views)

Re: Getting following error on HPUX 11.00

Hello

It gives me the following output.

Regards
Padma
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 7 of 11 (170 Views)

Re: Getting following error on HP-UX 11.00

[ Edited ]

>It gives me the following output.

You forgot to paste or attach the output from both machines??

(Please make sure you indicate which is which.)

Please use plain text.
Honored Contributor
Padma Asrani
Posts: 594
Registered: ‎01-18-2006
Message 8 of 11 (170 Views)

Re: Getting following error on HPUX 11.00

Sorry yes I did. here it is.

$ what /usr/lib/dld.sl
/usr/lib/dld.sl:
SMART_BIND
92453-07 dld dld dld.sl B.11.30 011005
$ what /usr/lib/libCsup.2
/usr/lib/libCsup.2:
HP aC++ B3910B A.03.13 Language Support Library
$
Please use plain text.
Honored Contributor
Padma Asrani
Posts: 594
Registered: ‎01-18-2006
Message 9 of 11 (170 Views)

Re: Getting following error on HPUX 11.00

Sorry for the incomplete reply

Previous one was on a non working machine. And this one is on where binary is working properly

/usr/lib/libCsup.2:
HP aC++ B3910B A.03.37 Language Support Library
/usr/lib/dld.sl:
SMART_BIND
92453-07 dld dld dld.sl B.11.37 030909


Thanks
Padma
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 10 of 11 (170 Views)

Re: Getting following error on HP-UX 11.00

[ Edited ]

Was this the good or bad one?

>/usr/lib/dld.sl:
92453-07 dld dld dld.sl B.11.30 011005

This is very old. The latest is: PHSS_35380

>/usr/lib/libCsup.2:
HP aC++ B3910B A.03.13 Language Support Library

PHSS_16587 is also very old, and can't have that mallopt call. The latest is PHSS_33943.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 11 of 11 (170 Views)

Re: Getting following error on HP-UX 11.00

[ Edited ]

>Previous one was on a non working machine. And this one is on where binary is working properly

It seems the solution is simple, go to later patches. ;-)

A complete list of aC++ versions and patches can be found on:
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html

One quick test you can do is to copy over the libCsup.2 from your good system to your bad one. Put the copy in some temp directory.

Then you can use SEP's SHLIB_PATH to point to that directory. If this works, then you know it is because of libCsup.2.
$ SHLIB_PATH=temp-directory your-executable ...

Note: To enable SHLIB_PATH, the application must be linked with +s. To enable it after, use:
$ chatr +s enable your-executable

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation