diff -p -up Singular-3-1-0/kernel/febase.cc.orig Singular-3-1-0/kernel/febase.cc --- Singular-3-1-0/kernel/febase.cc.orig 2009-07-15 15:19:03.000000000 -0300 +++ Singular-3-1-0/kernel/febase.cc 2009-07-15 15:19:14.000000000 -0300 @@ -745,7 +745,7 @@ FILE * feFopen(const char *path, const c if (pw_entry != NULL) { strcpy(longpath, pw_entry->pw_dir); - dir_sep = strchr(path, DIR_SEP); + dir_sep = strchr((char *)path, DIR_SEP); strcat(longpath, dir_sep); path = longpath; } diff -p -up Singular-3-1-0/kernel/mpr_complex.cc.orig Singular-3-1-0/kernel/mpr_complex.cc --- Singular-3-1-0/kernel/mpr_complex.cc.orig 2009-07-15 15:19:31.000000000 -0300 +++ Singular-3-1-0/kernel/mpr_complex.cc 2009-07-15 15:19:44.000000000 -0300 @@ -83,7 +83,7 @@ void gmp_float::setFromStr(const char * BOOLEAN neg=false; if (*in == '-') { in++; neg=TRUE; } char *s; - if ((s=strchr(in,'E')) !=NULL) + if ((s=strchr((char *)in,'E')) !=NULL) { *s='e'; }