Operating System - HP-UX
1833648 Members
4697 Online
110062 Solutions
New Discussion

Re: Unsatisfied symbols: error

 
Vineesh U S
Occasional Advisor

Unsatisfied symbols: error

Hi All,
I am compiling and building a code base for my application. During the build I am getting the following error:

***************************************************************************************
gmake[4]: Entering directory `/bldspace5/Build/vuz/MsgServer/Beta/HP-UX/ns/serve
r/msg/tools/migrate/moveuser/src'
>>>linking: HP-UXB.11.11_DBG.OBJ/MoveUser
/opt/aCC/bin/aCC \
\
\
\
HP-UXB.11.11_DBG.OBJ/imapcopy.o HP-UXB.11.11_DBG.OBJ/moveuser.o \
\
\
\
-L../../../../lib/async/HP-UXB.11.11_DBG.OBJ -L../../../../lib/yasr/HP-U
XB.11.11_DBG.OBJ -L../../../../lib/cyrus/HP-UXB.11.11_DBG.OBJ -L../../../../lib/
mee/HP-UXB.11.11_DBG.OBJ -L../../../../lib/msgsrvu/HP-UXB.11.11_DBG.OBJ -L../../
../../lib/mailwave/HP-UXB.11.11_DBG.OBJ -L../../../../lib/mtpcore/HP-UXB.11.11_D
BG.OBJ -L../../../../tools/migrate/moveuser/c-client/HP-UXB.11.11_DBG.OBJ -L../.
./../../../external/sasl/HP-UXB.11.11_DBG.OBJ/lib -L../../../../../external/db/H
P-UXB.11.11_DBG.OBJ/lib -L../../../../../external/security/HP-UXB.11.11_DBG.OBJ/
lib -L../../../../../external/icu/HP-UXB.11.11_DBG.OBJ/lib -L../../../../../exte
rnal/ldap/HP-UXB.11.11_DBG.OBJ/lib -L../../../../../external/adminsdk/HP-UXB.11.
11_DBG.OBJ/lib \
-lcclient -lmsgsrvu -lmailwave -lmtpcore -lmee -lcyrus -lyasr -lsasl -ly
asrmainwrap -lasync -ldb-4.2 -licui18n -licuuc -licudata -lasock -lnss3 -lssl3 -
lsoftokn3 -lnspr4 -lplc4 -lplds4 -lnss3 -lssldap50 -lprldap50 -ladminutil53 -lsi
18n -lldap50 \
\
-AA -Wl,-a,shared_archive -Wl,+b,\$ORIGIN/../lib:.:../lib:/usr/lib:/lib
\
\
\
\
-lsec -lrt \
\
\
\
-o HP-UXB.11.11_DBG.OBJ/MoveUser
/usr/ccs/bin/ld: Unsatisfied symbols:
rfc822_date (first referenced in ../../../../tools/migrate/moveuser/c-client/
HP-UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
myusername_full (first referenced in ../../../../tools/migrate/moveuser/c-cli
ent/HP-UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
tcp_aopen (first referenced in ../../../../tools/migrate/moveuser/c-client/HP
-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
lockname (first referenced in ../../../../tools/migrate/moveuser/c-client/HP-
UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
mail_valid(mail_stream *,char *,char *) (first referenced in ../../../../tool
s/migrate/moveuser/c-client/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code)
tcp_open (first referenced in ../../../../tools/migrate/moveuser/c-client/HP-
UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
mailboxfile (first referenced in ../../../../tools/migrate/moveuser/c-client/
HP-UXB.11.11_DBG.OBJ/libcclient.a(dummy.o)) (code)
chk_notsymlink (first referenced in ../../../../tools/migrate/moveuser/c-clie
nt/HP-UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
tcp_parameters (first referenced in ../../../../tools/migrate/moveuser/c-clie
nt/HP-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
fatal (first referenced in HP-UXB.11.11_DBG.OBJ/imapcopy.o) (code)
tcp_close (first referenced in ../../../../tools/migrate/moveuser/c-client/HP
-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
tcp_soutr (first referenced in ../../../../tools/migrate/moveuser/c-client/HP
-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
max(long,long) (first referenced in ../../../../tools/migrate/moveuser/c-clie
nt/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code)
mail_parameters(mail_stream *,long,void *) (first referenced in ../../../../t
ools/migrate/moveuser/c-client/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code
)
tcp_getline (first referenced in ../../../../tools/migrate/moveuser/c-client/
HP-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
bsd_flock (first referenced in ../../../../tools/migrate/moveuser/c-client/HP
-UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
myhomedir (first referenced in ../../../../tools/migrate/moveuser/c-client/HP
-UXB.11.11_DBG.OBJ/libcclient.a(smanager.o)) (code)
nms_fs_get (first referenced in HP-UXB.11.11_DBG.OBJ/imapcopy.o) (code)
tcp_getbuffer (first referenced in ../../../../tools/migrate/moveuser/c-clien
t/HP-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
sysinbox (first referenced in ../../../../tools/migrate/moveuser/c-client/HP-
UXB.11.11_DBG.OBJ/libcclient.a(dummy.o)) (code)
cpystr(const char *) (first referenced in ../../../../tools/migrate/moveuser/
c-client/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code)
tcp_localhost (first referenced in ../../../../tools/migrate/moveuser/c-clien
t/HP-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
strcrlflen (first referenced in ../../../../tools/migrate/moveuser/c-client/H
P-UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
mm_fatal(char *) (first referenced in ../../../../tools/migrate/moveuser/c-cl
ient/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code)
mylocalhost (first referenced in ../../../../tools/migrate/moveuser/c-client/
HP-UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
mailboxdir (first referenced in ../../../../tools/migrate/moveuser/c-client/H
P-UXB.11.11_DBG.OBJ/libcclient.a(dummy.o)) (code)
mm_log(char *,long) (first referenced in ../../../../tools/migrate/moveuser/c
-client/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code)
default_proto (first referenced in ../../../../tools/migrate/moveuser/c-clien
t/HP-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
tcp_sout (first referenced in ../../../../tools/migrate/moveuser/c-client/HP-
UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
min(long,long) (first referenced in ../../../../tools/migrate/moveuser/c-clie
nt/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code)
env_parameters (first referenced in ../../../../tools/migrate/moveuser/c-clie
nt/HP-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
tcp_port (first referenced in ../../../../tools/migrate/moveuser/c-client/HP-
UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
strcrlfcpy (first referenced in ../../../../tools/migrate/moveuser/c-client/H
P-UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
mm_login(net_mailbox *,char *,char *,long) (first referenced in ../../../../t
ools/migrate/moveuser/c-client/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code
)
safe_write (first referenced in ../../../../tools/migrate/moveuser/c-client/H
P-UXB.11.11_DBG.OBJ/libcclient.a(bezerk.o)) (code)
nms_fs_resize (first referenced in ../../../../tools/migrate/moveuser/c-clien
t/HP-UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
tcp_host (first referenced in ../../../../tools/migrate/moveuser/c-client/HP-
UXB.11.11_DBG.OBJ/libcclient.a(mail.o)) (code)
nms_fs_give (first referenced in HP-UXB.11.11_DBG.OBJ/imapcopy.o) (code)
lcase(char *) (first referenced in ../../../../tools/migrate/moveuser/c-clien
t/HP-UXB.11.11_DBG.OBJ/libcclient.a(osdep.o)) (code)
gmake[4]: *** [HP-UXB.11.11_DBG.OBJ/MoveUser] Error 1
gmake[4]: *** Deleting file `HP-UXB.11.11_DBG.OBJ/MoveUser'
gmake[4]: Leaving directory `/bldspace5/Build/vuz/MsgServer/Beta/HP-UX/ns/server
/msg/tools/migrate/moveuser/src'
gmake[3]: *** [link] Error 255
gmake[3]: Leaving directory `/bldspace5/Build/vuz/MsgServer/Beta/HP-UX/ns/server
/msg/tools/migrate/moveuser'
gmake[2]: *** [link] Error 255
gmake[2]: Leaving directory `/bldspace5/Build/vuz/MsgServer/Beta/HP-UX/ns/server
/msg/tools/migrate'
gmake[1]: *** [link] Error 255
gmake[1]: Leaving directory `/bldspace5/Build/vuz/MsgServer/Beta/HP-UX/ns/server
/msg/tools'
gmake: *** [link] Error 255
***************************************************************************************

I am using aCC: HP ANSI C++ B3910B A.03.55

Is it due to some name mangling problems I am getting this error?

When I ran "nm -s" on the library it gave some diferent value. I am attaching the trace of nm -s.

Please give me some pointers on this regard.

Thank you
Vineesh
1 REPLY 1
Stephen Keane
Honored Contributor

Re: Unsatisfied symbols: error

The rfc822_date function for example is name-mangled in libcclient.a (osdep.o) - as an external reference - and unmangled in libcclient.a (beserk.o). If the library is being compiled and linked using a C++ compiler I would expect the names to be mangled correctly, unless a header file has specifically declared the function with C linkage. Do you know in which header file the function rfc822_date is declared? Does it have something to the effect of extern "C" { ... } wrapped around it? Are you using pre-compiled headers?