1752806 Members
5976 Online
108789 Solutions
New Discussion юеВ

Unsatisfied symbol

 
DELAIRE_1
Occasional Advisor

Unsatisfied symbol

Hello,

First, i'm french so i'm sorry for my english ! :-)

I must be recompilate a program, and during it, i have this error :

|Building runnable image of lttx . . . |
|/usr/ccs/bin/ld: Unsatisfied symbols: |
| csrValpro (first referenced in abextract.obj) (code)

But i have a message which said that the compilation is ok :

|The image was built successfully.

When i run the programm i have this error :

/usr/lib/dld.sl: Unresolved symbol: csrValpro (code) from /appli/logist/dift/di
ftlt/pack/exe_HP-UX/lttx
/bin/sh: 16785 Abort

I had search since last friday and i haven't progress ...

Thanks for your help.
8 REPLIES 8
Suraj K Sankari
Honored Contributor

Re: Unsatisfied symbol

Hi,
Did you copy your code from windows machine to unix box ?

open your code into vi check is there any special character are there or not.

for check any special character open your code into vi
press Ecs
:se list

you can see spical character into this mode

Suraj
DELAIRE_1
Occasional Advisor

Re: Unsatisfied symbol

Thanks for your answer.

i have copy the file since an other server.

i will migrate the server so i have copy the files then i have recompil all the program. i haven't have a problem with the others.

do you think that i must do re-copy the file in binary mode ?

i have see the code in "se list" mode i have see only a "^" or a "$" characters, so i think it's ok.
Dennis Handly
Acclaimed Contributor

Re: Unsatisfied symbol

>I have a message which said that the compilation is ok

What has this to do with anything? This is a link/load time error.

Where is csrValpro suppose to be defined? Where is it used in lttx?

You can link lttx with -Wl,-ycsrValpro to see who references csrValpro.

>Suraj: Did you copy your code from windows machine. check if there any special character are there or not.

Why do you think this is the case? I would expect some compiler errors if so.

>do you think that I must do re-copy the file in binary mode?

No. No need to be looking for those zebras, there are plenty of horses.

>I have see the code in "set list" mode

What were you looking at?
Suraj K Sankari
Honored Contributor

Re: Unsatisfied symbol

Hi,
>>i have see the code in "se list" mode i have see only a "^" or a "$" characters, so i think it's ok.

"$" is ok but I don't think "^" is ok, can you remove this character and re-compile again your program.

Suraj
DELAIRE_1
Occasional Advisor

Re: Unsatisfied symbol

Thansk for your answer

Dennis,

I don't know where is define csrValpro ... I haven't develop this application ... Do you know a command which allow to know that ?

I'm sorry, but i haven't understand :
"You can link lttx with -Wl,-ycsrValpro to see who references csrValpro."

About the "set list", i looking at a bad caracter, such as said Suraj.


Suraj,

when i have look again, i have see "^I" rather that "^"



----

I think the problem doesn't come about the compilation beacause on the old server, i have the same error during it ...
But, on the old server, when i run the program, it's ok.

Thanks.
Dennis Handly
Acclaimed Contributor

Re: Unsatisfied symbol

>I don't know where is define csrValpro. I haven't develop this application. Do you know a command which allow to know that?

You could use:
nm -pxAN path-to-libs/lib* | grep csrValpro

>I don't understand: "You can link lttx with -Wl,-ycsrValpro to see who references csrValpro."

This driver option will show you which source references csrValpro, which may tell you what it does.

>About the "set list", I looking at a bad character

I was saying why look for a bad character, that won't cause unsats.

>on the old server I have the same error during it. But on the old server, when I run the program it's ok.

What same error? Unresolved symbol is an error, unless you link with -Wl,-B,nonfatal.
DELAIRE_1
Occasional Advisor

Re: Unsatisfied symbol

Thanks for you answer,

The problem is resolved.

The function was define such as "CsrValpro" and no as "csrValpro" ...

I don't understand why it's ok on the old server.

Thanks for your help.

DELAIRE_1
Occasional Advisor

Re: Unsatisfied symbol

it's ok.