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 ? My environment: export PATH=$PATH:/opt/SUNWspro/bin/:/usr/sfw/bin/:/opt/coolstack/bin export CC='cc -m64' bash-3.2# make Making all in include Making all in lib source='mhash.c' object='mhash.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/bash ../depcomp \ /bin/bash ../libtool --tag=CC --mode=compile cc -m64 -DHAVE_CONFIG_H -I. -I. -I../include/mutils -I../include -g -c -o mhash.lo mhash.c cc -m64 -DHAVE_CONFIG_H -I. -I. -I../include/mutils -I../include -g -c mhash.c -KPIC -DPIC -o .libs/mhash.o "../include/mutils/mutils.h", line 227: syntax error before or at: void "../include/mutils/mutils.h", line 227: warning: undefined or missing type for: void "../include/mutils/mutils.h", line 227: parameter redeclared: __const "../include/mutils/mutils.h", line 227: warning: undefined or missing type for: uint32_t "../include/mutils/mutils.h", line 228: syntax error before or at: void "../include/mutils/mutils.h", line 228: warning: undefined or missing type for: void "../include/mutils/mutils.h", line 228: parameter redeclared: __const "../include/mutils/mutils.h", line 228: warning: undefined or missing type for: uint32_t "../include/mutils/mutils.h", line 230: syntax error before or at: uint32_t "../include/mutils/mutils.h", line 230: warning: undefined or missing type for: uint32_t "../include/mutils/mutils.h", line 231: syntax error before or at: void "../include/mutils/mutils.h", line 231: warning: undefined or missing type for: void "../include/mutils/mutils.h", line 231: parameter redeclared: __const "../include/mutils/mutils.h", line 231: warning: undefined or missing type for: uint32_t thanks a lot! Stefan -- This message posted from opensolaris.org
