Operating System - HP-UX
1752733 Members
5494 Online
108789 Solutions
New Discussion юеВ

problems generating a program. Unsitisfied symbols

 
SOLVED
Go to solution
Eder Urruela
Frequent Advisor

problems generating a program. Unsitisfied symbols

Hi HPUX Gurus.

On another Threat I had problems with an invalid magic number.
Finally I got to generate the program ivibuild, but it will not work because the linker returns me the following error.

/opt/XPADE/v3/usr/ccs/lbin/ld32: Unsatisfied symbols:
GetUserLimits (first referenced in ivibuild.o) (code)
myhome (first referenced in ivibuild.o) (data)
DZsystem (first referenced in ivibuild.o) (data)
DzInitSharedArgs (first referenced in ivibuild.o) (code)
XtShellStrings (first referenced in ../../lib/libZtddServ.a) (data)
.
.
.

and more unsatified symbols like these. All this functions has been compiled in other source files and had been included in .a file which is included in the compilation.
I have tested that all the necesary files where included in the library and I have also tested that all the function where in the source files and that all of them were compiled when the library was created.

Any ideas?

Thants!
9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: problems generating a program. Unsitisfied symbols

Where should these symbols be defined?

>had been included in .a file which is included in the compilation.

Be specific. (There is no compilation here, only link.)

>I have tested that all the necessary files where included in the library

How? The only tool you can use is "odump -lstexport".

I suspect you used the wrong ar(1). You must use /opt/XPADE/v3/usr/ccs/ar.
Eder Urruela
Frequent Advisor

Re: problems generating a program. Unsitisfied symbols

I didn├В┬┤t use the /opt/XPADE/v3/usr/ccs/ar. and I compiled the libraris with this ar, so it`s very possible it could be the problem.

However I have to compile again my libraries becase I want to compile my .c files in integrity and make new libraries.
Now my question is how can I change mi compilation mode to integrity?

Thanks!
Dennis Handly
Acclaimed Contributor

Re: problems generating a program. Unsitisfied symbols

>I have to compile again my libraries because I want to compile my .c files for Integrity How can I change my compilation mode to integrity?

There is no mode. You will have to purchase the Integrity HP C/aC++ Developer's Bundle and get a license for every core on your machine.
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=e9083a7373f021103a7373f02110275d6e10RCRD
(Or you could use GNU.)
Eder Urruela
Frequent Advisor

Re: problems generating a program. Unsitisfied symbols

I'm working on Itanium server, so I suppose I have the license for work in integrity.
Dennis Handly
Acclaimed Contributor

Re: problems generating a program. Unsitisfied symbols

>so I suppose I have the license for work in Integrity.

There is no connection between the two.
Do you have /opt/aCC/bin/aCC installed?
Eder Urruela
Frequent Advisor

Re: problems generating a program. Unsitisfied symbols

Yes I have it
Eder Urruela
Frequent Advisor

Re: problems generating a program. Unsitisfied symbols

I have intalled the aCC and I also have the /opt/XPADE.

Thanks
Dennis Handly
Acclaimed Contributor
Solution

Re: problems generating a program. Unsitisfied symbols

>I have installed the aCC

Then you just use /opt/aCC/bin/aCC or /opt/aCC/bin/cc in your makefiles.
Eder Urruela
Frequent Advisor

Re: problems generating a program. Unsitisfied symbols

I have find that pint and in mi HOME path I had redirectionated .profile file to the XPADE, I had remove and mi makefile is using the aCC mode.

I hope now it work...

Thanks!