1847906 Members
4614 Online
104021 Solutions
New Discussion

Unsatisfied symbols

 
ambika_1
Frequent Advisor

Unsatisfied symbols

Hi,
While compiling cyrussasl product code i am getting following error.

gcc -g -O2 -Wl,+nodefaultrpath -o saslauthd mechanisms.o auth_dce.o auth_getpwent.o auth_krb5.o auth_krb4.o auth_pam.o auth_rimap.o auth_shadow.o auth_sia.o auth_sasldb.o lak.o auth_ldap.o cache.o cfile.o krbtf.o utils.o ipc_unix.o ipc_doors.o saslauthd-main.o md5.o -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam
/usr/ccs/bin/ld: Unsatisfied symbols:
ntohs (first referenced in ipc_unix.o) (code)
htons (first referenced in ipc_unix.o) (code)
collect2: ld returned 1 exit status
gmake[1]: *** [saslauthd] Error 1
gmake[1]: Leaving directory `/home/ambika/cyrus-sasl-2.1.21/saslauthd'
gmake: *** [all] Error 2

How to resolve this error?

11 REPLIES 11
Muthukumar_5
Honored Contributor

Re: Unsatisfied symbols

May be you are missing some libraries which has to be appeneded.

--
Muthu
Easy to suggest when don't know about the problem!
Ermin Borovac
Honored Contributor

Re: Unsatisfied symbols

As the man page (man 3n byteorder) says ntohs and htons are null macros defined in .

So you could include in ipc_unix.c or whatever c source file is used to make ipc_unix.o.
ambika_1
Frequent Advisor

Re: Unsatisfied symbols

hi,

netinetd/in.h file is already included in ipc_unix.c file.


Senthil Prabu.S_1
Trusted Contributor

Re: Unsatisfied symbols

Hi,
CyrusSASL is a part of Internet Express package. So download the package from the link;

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123


You have binaries both for 11.11 and 11.23 there. Which one you are looking for....


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Muthukumar_5
Honored Contributor

Re: Unsatisfied symbols

prabhu,

hope ambika is working on new release on Iexpress?!

==

May be try add header file of in ipc_unix.c file. Make clean and make it again.

--
Muthu
Easy to suggest when don't know about the problem!
Senthil Prabu.S_1
Trusted Contributor

Re: Unsatisfied symbols

Hi ambika,
Can you post the detailed build steps and error messages, so that we can help you.


One man's "magic" is another man's engineering. "Supernatural" is a null word.
Senthil Prabu.S_1
Trusted Contributor

Re: Unsatisfied symbols

Hi,

First find out which object file has this unresolved symbol by expecting this command,

#nm -op *.o | grep ntohs

this comand will give the file name. Then add following lines to that corresponding source file [ .c file ]


+#if HAVE_ARPA_INET_H
+#include
+#endif


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Senthil Prabu.S_1
Trusted Contributor

Re: Unsatisfied symbols

Hi,
Refer theselink for more details;
you can find what is the exact problem by refering to this link.

http://bugs.php.net/bug.php?id=32591
http://www.irbs.net/internet/postfix/0503/1763.html



HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
ambika_1
Frequent Advisor

Re: Unsatisfied symbols

Hi ,

Problem is solved by including header file . Thanks for your replies.
I am working on new release of Internet Express.

Thanks and Regards,
Ambika
Senthil Prabu.S_1
Trusted Contributor

Re: Unsatisfied symbols

Hi,
Then, also assign points to the post.
One man's "magic" is another man's engineering. "Supernatural" is a null word.
ambika_1
Frequent Advisor

Re: Unsatisfied symbols

By including the header file problem is solved.