Operating System - HP-UX
1832059 Members
3051 Online
110034 Solutions
New Discussion

Re: Problem with /usr/lib/dld.sl

 
SOLVED
Go to solution

Problem with /usr/lib/dld.sl

Hi,
I have a problem when I try to run a C program in HP-UX 11.11.
This program runs very well in HP-UX 10.20.
The error message showed is:
/usr/lib/dld.sl: Unresolved symbol: getccnam (code) from /usr/cognos/ib33d/lib/
gds.sl
Abort
I explain all my process in the attachment.
Thanks
Rich
21 REPLIES 21
Cheryl Griffin
Honored Contributor

Re: Problem with /usr/lib/dld.sl

Has your program been recompiled to run at 11.11?

Cheryl
"Downtime is a Crime."
Jeff Schussele
Honored Contributor

Re: Problem with /usr/lib/dld.sl

Hi Ricardo,

Not positive if this is the cause but:

11.0 => libdld.sl -> libdld.2

10.2 => libdld.sl -> libdld.1

11.0 has BOTH libdld.1 & libdld.2, but libdld.sl is linked to libdld.2
10.2 has ONLY libdld.1 & libdld.sl is linked to it.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: Problem with /usr/lib/dld.sl

Forgot to add that in 11.0
libdld.0 -> libdld.1

So maybe if you need what's in libdld.1 you should use either libdld.1 (directly) or libdld.0 on the command line.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!

Re: Problem with /usr/lib/dld.sl

Thanks for help.

I tried to use directly libdld.0 but did not result.

I'm downloading the PHSS_26263 patch, what do you thing about?

Rich.
Rich
Jeff Schussele
Honored Contributor

Re: Problem with /usr/lib/dld.sl

Certainly worth a try.
Seems to address some of the types of problem you're having.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!

Re: Problem with /usr/lib/dld.sl

Hi,

I installed the patch PHSS_26263 and when compiled the program again one of the warnings desapeard, this one:
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ejerep1.o) was detec
ted. The linked output may not run on a PA 1.x system.

But when I run the program send the same message:
/usr/lib/dld.sl: Unresolved symbol: getccnam (code) from /usr/cognos/ib33d/lib/

I tried this action:
cc -v $1.c -lcurses -L /lib/libcurses.sl /usr/cognos/ib33d/lib/gds.sl /usr/lib/
libdld.1 -o $1
like you said Jeff, but did not result. What can I do?
Rich

Re: Problem with /usr/lib/dld.sl

Now what can I do?.
I stalled the patch, but the error doesn't fix.

It's very urgent....
Rich

Re: Problem with /usr/lib/dld.sl

Michael:

The getccnam symbol isn??t in my program code it belong to the gds.sl library from Cosgnos Interbase 3.3d.

But why in 10.20 works?
Rich
Jeff Schussele
Honored Contributor

Re: Problem with /usr/lib/dld.sl

Hi (again) Ricardo,

Is the Cognos Interbase 3.3d SW specifically for HP-UX 11.11?
Remember that 10.2 is 32-bit whereas 11.11 can run 32 or 64 bit. Are you running 11.11 64 bit?
What is the model of your server?
If you haven't done so already, you may need to upgrade the Cognos SW to get 64 bit support.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!

Re: Problem with /usr/lib/dld.sl

Is the Cognos Interbase 3.3d SW specifically for HP-UX 11.11?: I don??t know exactly because this version is from 1994, but I can work with the database and 11.11 very well. Just this program in C is the problem.

Remember that 10.2 is 32-bit whereas 11.11 can run 32 or 64 bit. Are you running 11.11 64 bit?: How can I check this?

What is the model of your server? HP9000 L2000

Thanks.
Rich
Jeff Schussele
Honored Contributor

Re: Problem with /usr/lib/dld.sl

You can determine bits with
#getconf KERNEL_BITS

And since you have an L & 11.11, I'd be fairly certain that you are running 64 - but check.

About the last thing to do would be to compile with another product like GNU gcc.
A lot of free GNU binaries for HP-UX can be obtained at:

http://hpux.cs.utah.edu/hppd/hpux/Gnu/

NOTE: Read all the readme files as you may need to download more than just the gcc binaries before you can use gcc.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!

Re: Problem with /usr/lib/dld.sl

Thanks Jeff.

It??s running in 64 bits.

I will try with gcc.
Rich
H.Merijn Brand (procura
Honored Contributor

Re: Problem with /usr/lib/dld.sl

That gcc is a 32bit port. Look at

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

for a 3.0.2/64 port for 11i

or

https://www.beepz.com/personal/merijn/

for a 3.1.1/64 port for 11.00 [ be sure to read the notes in that link ]
Enjoy, Have FUN! H.Merijn
Jeff Schussele
Honored Contributor

Re: Problem with /usr/lib/dld.sl

Thanks Merijn...didn't realize that.
Ricardo....get that for your system.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!

Re: Problem with /usr/lib/dld.sl

How can I set my server to work with 32 bits?

I think that this could be the trouble.
Rich
Jeff Schussele
Honored Contributor
Solution

Re: Problem with /usr/lib/dld.sl

Hi Ricardo,

Although the L-class systems can support applications running 32-bits, it cannot run any other OS than 64-bit.

I still believe your best bet is to recompile that C program with another compiler & I'm speculating that the HP supplied compiler is having trouble linking something & that another, such as gcc, might be able to do so.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Shannon Petry
Honored Contributor

Re: Problem with /usr/lib/dld.sl

By the error it does not look to be a 32 or 64 bit problem. The error is telling you that the library file "/usr/cognos/ib33d/lib/gds.sl" can not find the symbol mentioned in any libraries.
This boils down to 1 of 2 causes.
1. you are using a discontinued lib call from standard HP-UX.
2. the program is not loading libraries properly.

Try first setting LD_LIBRARY_PATH and SHLIB_PATH to contain /lib:/usr/lib:/usr/cognos/ib33d/lib and see if this fixes the problem.

The 32bit libs from your vendor should work fine in the 64bit OS (hence backwards compatability), as long as they are referencing current library calls properly. I.E. Linking to /usr/lib/libc.1 instead of /usr/lib/libc.sl


Your vendor may be able to shed light on what library it is trying to reference for the call, and give you an alternative/fix.

Regards,
Shannon
Microsoft. When do you want a virus today?

Re: Problem with /usr/lib/dld.sl

How can I see the value of SHLIB_PATH and LD_LIBRARY_PATH and then configurate it?
Rich
Jeff Schussele
Honored Contributor

Re: Problem with /usr/lib/dld.sl

Login as the user that would normally run the program & enter

#echo $SHLIB_PATH
#echo $LD_LIBRARY_PATH

Check the results. Then if necessary enter this into the user's .profile

export SHLIB_PATH=/path/to/proper/dir
export LD_LIBRARY_PATH=/path/to/proper/dir

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!

Re: Problem with /usr/lib/dld.sl

Ok, I installed gcc and now how use it?.
Rich

Re: Problem with /usr/lib/dld.sl

Thanks you all, my problem has been fixed.

I compile again my program in HP-UX 10.20 and then copied the exe in HP-UX 11.11 and finally run.

Bye.
Rich