Operating System - Linux
1751750 Members
5027 Online
108781 Solutions
New Discussion юеВ

Linking problem with HPUX

 
Vikas Poonia
Occasional Advisor

Linking problem with HPUX

Hello everyone
When i compile my code it gives me following errors
Can anyone tell me the reason for these errors

ld: Unsatisfied symbol "ACE_Recursive_Thread_Mutex::release()" in file ./release
/mTalkThrTask.o
ld: Unsatisfied symbol "ACE_Thread::getspecific(int, void**)" in file ./release/
mTalk_TSS.o
ld: Unsatisfied symbol "ACE_Recursive_Thread_Mutex::acquire()" in file ./release
/mTalkThrTask.o
ld: Unsatisfied symbol "ACE_Semaphore::release(unsigned int)" in file ./release/
mTalkThrTask.o
ld: Unsatisfied symbol "ACE_Time_Value::ACE_Time_Value(long, long)" in file ./re
lease/m27_Event.o
ld: Unsatisfied symbol "ACE_Semaphore::acquire()" in file ./release/mTalkThrTask
.o
ld: Unsatisfied symbol "ACE_Reactor::end_event_loop()" in file ./release/mTalkTh
rTask.o
ld: Unsatisfied symbol "ACE_SOCK_Dgram::~ACE_SOCK_Dgram()" in file ./release/m27
_UDPConnection.o
ld: Unsatisfied symbol "ACE_Recursive_Thread_Mutex::tryacquire_read()" in file .
/release/m27_CriticalSection.o
ld: Unsatisfied symbol "ACE_SOCK_Dgram::ACE_SOCK_Dgram()" in file ./release/m27_
UDPConnection.o
ld: Unsatisfied symbol "ACE_Recursive_Thread_Mutex::tryacquire_write()" in file
./release/m27_CriticalSection.o
ld: Unsatisfied symbol "mtalkproc_1_svc" in file ./release/mTalk_svc.o
ld: Unsatisfied symbol "ACE_Recursive_Thread_Mutex::tryacquire()" in file ./rele
ase/m27_CriticalSection.o
ld: Unsatisfied symbol "CreatePersistenceManager()" in file ./release/m27_bof.o
ld: Unsatisfied symbol "localtime_r(long const*, tm*)" in file ./release/mTalkUt
ilities.o
ld: Unsatisfied symbol "mTalk_Main()" in file ./release/mTalk_svc.o
ld: Unsatisfied symbol "typeinfo for biz_ppmProtocolParameter" in file ./release
/biz_cfgConfig.o
ld: Unsatisfied symbol "FreePersistenceManager(i_m27_persistencemgr*)" in file .
/release/m27_bof.o
ld: Unsatisfied symbol "ACE_SOCK_Dgram::recv(void*, unsigned long, ACE_Addr&, in
t) const" in file ./release/m27_UDPConnection.o
ld: Unsatisfied symbol "biz_ppmProtocolParameter::Define_OMM(m27_OMM&, bool, boo
l, bool, bool)" in file ./release/biz_nppNetworkProtocolParameter.o
ld: Unsatisfied symbol "ACE_SOCK_Dgram::send(void const*, unsigned long, ACE_Add
r const&, int) const" in file ./release/m27_UDPConnection.o
ld: Unsatisfied symbol "ACE_Reactor::event_loop_done()" in file ./release/mTalkT
hrTask.o
ld: Unsatisfied symbol "ACE_Recursive_Thread_Mutex::tryacquire_write_upgrade()"
in file ./release/m27_CriticalSection.o
ld: Unsatisfied symbol "GetLogInterface()" in file ./release/m27_trace.o
ld: Unsatisfied symbol "mtalk_prog_1_freeresult" in file ./release/mTalk_svc.o
ld: Unsatisfied symbol "ACE_Thread_Mutex::release()" in file ./release/mTalk_TSS
.o
ld: Unsatisfied symbol "ACE_Lock::ACE_Lock()" in file ./release/m27_CriticalSect
ion.o
ld: Unsatisfied symbol "MAX_NO_OF_PENDING_REQUEST" in file ./release/m27_MQSerie
sIPC.o
ld: Unsatisfied symbol "ACE_Thread_Mutex::acquire()" in file ./release/mTalk_TSS
.o
ld: Unsatisfied symbol "ACE_Thread::keycreate(int*, void (*)(void*), void*)" in
file ./release/mTalk_TSS.o
ld: Unsatisfied symbol "vtable for biz_ppmProtocolParameter" in file ./release/b
iz_ppmProtocolParameter.o
ld: Unsatisfied symbol "ACE_Thread_Semaphore::~ACE_Thread_Semaphore()" in file .
/release/mTalkThrTask.o
ld: Unsatisfied symbol "ACE_Thread::kill(int, int)" in file ./release/m27_UDPCon
nection.o
ld: Unsatisfied symbol "ACE_Errno_Guard::ACE_Errno_Guard(int&)" in file ./releas
e/mTalk_TSS.o
ld: Unsatisfied symbol "ACE_Thread::setspecific(int, void*)" in file ./release/m
Talk_TSS.o
ld: Unsatisfied symbol "ACE_Recursive_Thread_Mutex::acquire_read()" in file ./re
lease/m27_CriticalSection.o
ld: Unsatisfied symbol "GLogAppInfo()" in file ./release/m27_FileLog.o
ld: Unsatisfied symbol "ACE_Errno_Guard::~ACE_Errno_Guard()" in file ./release/m
Talk_TSS.o
ld: Unsatisfied symbol "ACE_Thread::spawn(void* (*)(void*), void*, long, int*, i
nt*, long, void*, unsigned long, ACE_Thread_Adapter*)" in file ./release/m27_UDP
Connection.o
ld: Unsatisfied symbol "ACE_Reactor::run_event_loop()" in file ./release/mTalkTh
rTask.o
ld: Unsatisfied symbol "ACE_Recursive_Thread_Mutex::acquire_write()" in file ./r
elease/m27_CriticalSection.o
41 errors.
collect2: ld returned 1 exit status
gmake: *** [release/mTalk] Error 1
galaxy(mtalk):268/home/mtalk/src/unix/mTalk3 >

But when i include -shared option in my makefile it compile successfully and giving no errors but at that time the final output is not executable and it is shared library.
can anyone tell me what option i include in place of -shared in makefile so that it can be executable.........

Thanx a lot
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Linking problem with HP-UX

To be executable you need to fix your unsat issues. Where are these functions suppose to be?

Vikas Poonia
Occasional Advisor

Re: Linking problem with HPUX

I m not getting what do u means by unsat issue
Dennis Handly
Acclaimed Contributor

Re: Linking problem with HP-UX

>I'm not getting what do you means by unsat issue

You are missing certain functions. Where are they suppose to be defined? What source and object file?

And why did you try to create a shared lib?

Vikas Poonia
Occasional Advisor

Re: Linking problem with HPUX

Sir

I dont want to make shared library but i want to check what is the problem so i use option -shared in makefile and it gives no error but when i try to make executable it gives me 41 errors.
And i m not able to find any missing functions let me try again but i suppose i have to mention any option in makefile so that it will not give any error ...
thanx
Dennis Handly
Acclaimed Contributor

Re: Linking problem with HP-UX

>I try to make executable it gives me 41 errors.

Then you need to address the unsats and find why you don't have those. Is there an ACE makefile option to remove threading?

If you want to test out your program, even with those errors, you can simply use "chmod a+x your-executable".

You'll probably soon get a dld error of the same type.