Closed gidden closed 8 years ago
Does Solaris have newlocale
and strtod_l
?
And which version of Solaris do you use?
> uname -a
SunOS t501 5.11 11.3 sun4v sparc sun4v
and not sure about newlocale
and strtod_l
.. I'll dig into it
Nevermind about newlocale
. I've implemented a workaround in https://github.com/ampl/mp/commit/e94d538d77e9c85e08f6b2a9558d146e12dc2d8f.
This can be closed once #89 is resolved. Your work around fixed the locale issue, thanks @vitaut!
Hey, @gidden. Could you confirm that it works for you now?
Hi @vitaut, can confim a positive build and install. There are tests failures that I logged in #89.
Looks like all the test failures have the same cause, unimplemented GetExecutablePath
on Solaris. This should be fixed in https://github.com/ampl/mp/commit/beac4b29486fb1d5136e9402d5555fdfbc815e5c but I haven't tested it because I don't have a Solaris system readily available.
Also to make sure that the funcadd1.c
fix is portable, could you please provide the following info:
The output of
cpp -dM /dev/null
(or the equivalent on your system: the point is to see what #defines are built into the C preprocessor)
The funcadd1.i
you get by invoking
gcc -E funcadd1.c >funcadd1.i
(I suggest posting the latter as an attachment because it can be quite big.)
Thanks!
I'm closing this issue because it should be fixed now, but feel free to reopen if you get any compile/test errors on your system.
Just following up on your questions:
t501:gidden> gcc --version
gcc (GCC) 4.8.2
t501:gidden> cc -xdumpmacros -E /dev/null
#define __LINE__
#define __FILE__
#define __STDC__ 0
#define __STDC_VERSION__ 199409L
#define __DATE__ "Mar 17 2016"
#define __TIME__ "09:37:29"
#define __STDC_IEC_559__ 1
#define __STDC_IEC_559_COMPLEX__ 1
#define __STDC_HOSTED__ 1
#define __STDC_ANALYZABLE__ 1
#define __STDC_NO_ATOMICS__ 1
#define __STDC_NO_THREADS__ 1
#define __has_attribute (attr) ___has_attribute___ ( attr )
#define __SunOS_5_11 1
#define __SUNPRO_C 0x5130
#define __unix 1
#define __SVR4 1
#define __sun 1
#define __SunOS 1
#define __sparcv8 1
#define __sparc 1
#define __BUILTIN_VA_ARG_INCR 1
#define __C11FEATURES__ 1
#define __C99FEATURES__ 1
#define __PRAGMA_REDEFINE_EXTNAME 1
#define unix 1
#define sun 1
#define sparc 1
#define __RESTRICT 1
#define __FLT_EVAL_METHOD__ 0
#define __SUN_PREFETCH 1
#define __NOVECTORSIZE__ 1
# 1 "/dev/null"
#ident "acomp: Sun C 5.13 SunOS_sparc 2014/10/20"
t501:gidden> gcc -E funcadd1.c > funcadd1.i
In file included from funcadd1.c:52:0:
funcadd.h:27:52: fatal error: stdio1.h: No such file or directory
#include "stdio1.h" /* for ANSI and any printing */
^
compilation terminated.
Thanks!
From a fresh clone, I get the following:
The answer for this could be super simple, if you point me in a direction, I can keep searching.