BSD libs on Mac OS X

brahms

Registered
Does anyone know where to locate some of the basic BSD libs for OS X? I'm trying to run make on some source but it requires libsocket.dynlib and libnsl.dynlib. Anyone know where we can get a version that works on OS X?
 
I'm quite sure that both of those libraries are part of libc on OS X. Thus, you don't need to link in any extra libraries to use sockets or NSL. You could either modify the makefiles so they do not require those libraries, or create dummy libraries only so that the linker finds them.
 
Thanks so much for the response. I modified the makefile so that it didn't try to link in the extra libraries, just the libc and libm. Unfortunately now I get an error from ld saying that _ftime is an undefined symbol. I'm going to look into that a little more. Thanks again for your response.
 
Couldn't fine libcompat, but it wasn't ftime that was failing, it was _ftime. I found that method in libcrypto. After linking that in everything ran smoothly. Thanks for the help all.
 
Just for the record, a symbol is formed by prefixing a C function with an underscore. So yes, the symbol _ftime corresponds to the C function ftime. I checked, and the documentation on ftime IS inconsistent - libcompat isn't on OS X. So, uh, for all of you who need ftime, it's in libcrypto. =O
 
Back
Top