Mac OS X - include file patch

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Lars Immisch lars at ibp.de
Thu May 21 10:00:57 UTC 2009


Hi Harald,

> On Thu, May 21, 2009 at 01:19:12AM +0200, Lars Immisch wrote:
>> attached is a patch for Mac OS X. It fixes #include annoyances; some  
>> possibly general.
>>
>> With this patch, openbsc should compile on OS X (but will not link yet).
> 
> thanks, patch applied (svn rev 492)

Thanks.

>> OS X has no -lcrypt, but the openbsc binaries link without -lcrypt. I'll  
>> have to restore my autoconf knowledge from cryogenic storage and then  
>> come up with another patch.
> 
> I wonder why we actually need -lcrypt...  oh, the vty password encryption.
> I think we can live without that, I'll just disable it (svn commit 493)

Ah, well. I'm was just too tired for autoconf. But there is a simple 
solution - see the attached patch. It will define -DVTY_CRYPT_PW= if 
crypt is found. If -lcrypt is needed, $(LIB_CRYPT) will be -lcrypt

Compiles on OS X and Linux and reenables crypt.

- Lars
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: osxcrypt.patch
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20090521/b268fc08/attachment.ksh>


More information about the OpenBSC mailing list