Discussion:
[Bug-apl] Compile bug in apl-1.6 under MAC OS 10.9.5
Jean-Jacques Girardot
2017-03-14 14:50:35 UTC
Permalink
Hi !

While compiling the 1.6 source code under OSX 9.5, I got the following error :


g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT apl-LApack.o -MD -MP -MF .deps/apl-LApack.Tpo -c -o apl-LApack.o `test -f 'LApack.cc' || echo './'`LApack.cc
LApack.cc:21:10: fatal error: 'malloc.h' file not found
#include "malloc.h"
^

I replaced the « malloc.h » include on line 21 by
#include <stdlib.h>
as the appropriate declaration of malloc is in this file, which seems to correct
the problem, since apl now compiles and passes the tests.


Hope this helps.

Regards.

Jean-Jacques Girardot
jean-***@orange.fr
Elias Mårtenson
2017-03-14 15:57:08 UTC
Permalink
This has already been fixed a few months ago. For this, and many other
fixes, you should use the latest version from svn instead of the releases.

That said, might be time for a new release. JÃŒrgen?

Regards,
Elias

On 14 Mar 2017 11:53 PM, "Jean-Jacques Girardot" <
Post by Jean-Jacques Girardot
Hi !
g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT apl-LApack.o -MD -MP -MF
.deps/apl-LApack.Tpo -c -o apl-LApack.o `test -f 'LApack.cc' || echo
'./'`LApack.cc
LApack.cc:21:10: fatal error: 'malloc.h' file not found
#include "malloc.h"
^
I replaced the « malloc.h » include on line 21 by
#include <stdlib.h>
as the appropriate declaration of malloc is in this file, which seems to correct
the problem, since apl now compiles and passes the tests.
Hope this helps.
Regards.
Jean-Jacques Girardot
Juergen Sauermann
2017-03-14 16:03:28 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi Elias,<br>
<br>
I am afraid that you are correct.<br>
<br>
/// Jürgen<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 03/14/2017 04:57 PM, Elias Mårtenson
wrote:<br>
</div>
<blockquote
cite="mid:CADtN0W+VqzQYv0O+***@mail.gmail.com"
type="cite">
<div dir="auto">This has already been fixed a few months ago. For
this, and many other fixes, you should use the latest version
from svn instead of the releases. 
<div dir="auto"><br>
</div>
<div dir="auto">That said, might be time for a new release.
Jürgen? </div>
<div dir="auto"><br>
</div>
<div dir="auto">Regards, </div>
<div dir="auto">Elias </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 14 Mar 2017 11:53 PM, "Jean-Jacques
Girardot" &lt;<a moz-do-not-send="true"
href="mailto:jean-***@orange.fr">jean-***@orange.fr</a>&gt;
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi !<br>
<br>
While compiling the 1.6 source code under OSX 9.5, I got the
following error :<br>
<br>
<br>
g++ -DHAVE_CONFIG_H -I. -I..       -g -O2 -MT apl-LApack.o
-MD -MP -MF .deps/apl-LApack.Tpo -c -o apl-LApack.o `test -f
'LApack.cc' || echo './'`LApack.cc<br>
LApack.cc:21:10: fatal error: 'malloc.h' file not found<br>
#include "malloc.h"<br>
         ^<br>
<br>
I replaced the « malloc.h » include on line 21 by<br>
#include &lt;stdlib.h&gt;<br>
as the appropriate declaration of malloc is in this file,
which seems to correct<br>
the problem, since apl now compiles and passes the tests.<br>
<br>
<br>
Hope this helps.<br>
<br>
Regards.<br>
<br>
Jean-Jacques Girardot<br>
<a moz-do-not-send="true"
href="mailto:jean-***@orange.fr">jean-***@orange.<wbr>fr</a><br>
<br>
<br>
<br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>

Loading...