Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Link: "Undefined symbol bind, recv .. in libSentinelKeys32.a"

807578Aug 11 2009 — edited Aug 12 2009
I've ported my library from Win32 & Linux to Solaris 10 x86. So far, so good. Now I'm adding Licensing. I've chosen the "Sentinel Hardware Keys," since they are compatible with the new OS. I added the code, and compiled with the .h files, no problem. I link (without the gcc libSentinelKeys32.a library) and I get Undefined symbols for my SHK calls - as expected.

But when I link with the above library, I get 14-new symbols (in 4-.obj's that are undefined. I must not be 'playing with a full Deck!' Are these calls from the SHK to Solaris 10 library functions? How can I find the libs and add them to the search path?? (I've asked the verdor to 'Please give me the tools I need!' but if there's a simple answer, I thought I'd ask...)

(part of the output, showing the "Undefined symbol:"
============
...
src/libSentinelKeys32.a
Undefined first referenced
symbol in file
bind src/libSentinelKeys32.a(lxdaemoncom.o)
recv src/libSentinelKeys32.a(Interface.o)
send src/libSentinelKeys32.a(Interface.o)
nanosleep src/libSentinelKeys32.a(Interface.o)
listen src/libSentinelKeys32.a(netwrp.o)
gethostbyaddr src/libSentinelKeys32.a(netwrp.o)
gethostbyname src/libSentinelKeys32.a(netwrp.o)
sendto src/libSentinelKeys32.a(lxdaemoncom.o)
socket src/libSentinelKeys32.a(lxdaemoncom.o)
setsockopt src/libSentinelKeys32.a(netwrp.o)
connect src/libSentinelKeys32.a(Interface.o)
recvfrom src/libSentinelKeys32.a(lxdaemoncom.o)
inet_addr src/libSentinelKeys32.a(netwrp.o)
inet_ntoa src/libSentinelKeys32.a(netwrp.o)
ld: fatal: Symbol referencing errors. No output written to dist/Debug/SunStudio_12.1-Solaris-x86/ ...
========
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2009
Added on Aug 11 2009
5 comments
1,015 views