Sorry to bother you folks, but I'm building ciao-1.8p2 on a solaris/sparc 5.7 platform with gcc 2.95.3, and there is a surprising error. The make fails because of the following error:
The piece of code below, to be added to unix_utils.c right before
BOOL prolog_setenvstr(Arg) ....
should make the trick:
/*----------------------------------------------------------*/
#if defined(Solaris) /* emulate setenv in terms of putenv (from rpm 2.0.9 source code) */ int setenv(const char *name, const char *value, int overwrite) { int len; if (!overwrite && getenv(name)) return 0; len = strlen(name) + strlen(value) + 2; if (len < 255) { char buf[256]; strcpy(buf, name); strcat(buf, "="); strcat(buf, value); return putenv(buf); } else { char *buf = malloc(len); strcpy(buf, name); strcat(buf, "="); strcat(buf, value); return putenv(buf); } } #endif
/*----------------------------------------------------------*/
Credits for finding the patch are due to Jose F. Morales (jfran(a)clip.dia.fi.upm.es), one of the lab members.
MCL
____________________________________ I like beer for breakfast sometimes. ============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------