Stefan Lapers <stefan at lapers.be> wrote:

> Hi all,
>
> I'm trying to compile libmcrypt, mhash to incorporate support into the php 
> from coolstack 1.3
> I'm building on SXCE b93, in a zone which i designated as a build zone.
> libmcrypt compiled without any noticably problems, but mhash is giving me 
> trouble.
>
>
> Below i pasted some lines with the errors, can anyone point me in the right 
> direction ?
>
>
> These are lines 227 and 228:
>
> int mutils_mlock(__const void *addr, __const mutils_word32 len);
> int mutils_munlock(__const void *addr, __const mutils_word32 len);
>
> On top of the mutils.h i found:
>
> #if defined(const)
> #define __const const
> #endif
>
> Something to do with __const not working in sun studio cc ?

This looks like defective code.

const is usually #defined in case that the compiler does _not_ support the 
"const" keyword.

J?rg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       schilling at fokus.fraunhofer.de     (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to