Closed hackob closed 9 years ago
I am facing the same problem here, can it be somehow related to this? http://stackoverflow.com/a/25080111
André wrote:
I am facing the same problem here, can it be somehow related to this? http://stackoverflow.com/a/25080111
No. I know what the problem is and already have a fix. I've just been very busy and have not had time to test it on my VMware CentOS system yet before committing it.
If you're interested in trying it for yourself, this is the fix:
--- hercules-1/ipl.c 2014-03-17 17:04:01.998602400 -0700
+++ hercules-0/ipl.c 2015-09-01 13:39:26.509472000 -0700
@@ -36,7 +36,7 @@
/*-------------------------------------------------------------------*/
#if !defined(_reset_instcount_)
#define _reset_instcount_
-INLINE void
+static INLINE void
cpu_reset_instcount_and_cputime(REGS* regs)
{
/* Reset instruction counts, I/O counts and real CPU time */
@@ -60,7 +60,7 @@
/*-------------------------------------------------------------------*/
#if !defined(_subsystem_reset_)
#define _subsystem_reset_
-void subsystem_reset (void)
+static INLINE void subsystem_reset (void)
{
/* Perform subsystem reset
*
The function cpu_reset_instcount_and_cputime
was declared as simply INLINE
instead of static INLINE
.
Details of the problem can be found here: http://clang.llvm.org/compatibility.html#inline
Thanks @Fish-Git2 , I have tested it on my OSX 10.10.5, the make command worked after using this fix, then I got this error on make install: use of undeclared identifier 'ptrdiff_t'
I included #include <stddef.h>
in the file console.c
and it installed without errors, now Hercules seems to be running without problems. I'll try to install a z/OS image later.
Fix committed. Issue closed.
Configure options:
--enable-optimization=no
Make output:
I cannot figure out which symbol is missing.