No subject


Fri Mar 7 15:32:22 PST 2014


   http://trac.macports.org/changeset/128721

Lawrence, is that all?


>
> > The next thing, though, is that GCL appears not to be work properly with
> Clang on this platform -- Clang is the default system compiler on new
> > versions on Mac OS X.
> >
> > For example, I tried to build OpenAxiom with it, but was stumped by:
> >
> > Finished compiling core.lisp.
> >
> > gcl \
> >
> > -eval '(load "core")' \
> >
> > -eval '(|AxiomCore|::|link| "base-lisp" (quote nil)
> "|AxiomCore|::|topLevel|")'
> >
> > Unrelocated non-local symbol: ___stack_chk_fail
> >
>
> This is due to a cflag mismatch.  For example, on Debian, by policy, gcl
> is built with
>
> "gcc -c -fstack-protector-strong -Wformat -Werror=format-security
> -D_FORTIFY_SOURCE=2  -Wall -fsigned-char -Wno-unused-but-set-variable
> -pipe "
>
> All modules (to be loaded) should be built with the same flags.  My
> guess here is that the module had the stack protector, but not the
> default gcl build.
>

OK; so if I understand correctly, you would recommend that Macports adds

   -fstack-protector-strong -D_FORTIFY_SOURCE=2

to its portfile for  GCL's?

-- Gaby

--047d7b33db6a834bce05090dac3c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sat, Nov 29, 2014 at 4:48 PM, Camm Maguire <span dir=3D"ltr">&lt;<a =
href=3D"mailto:camm at maguirefamily.org" target=3D"_blank">camm at maguirefamily=
.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,=
204);border-left-style:solid;padding-left:1ex"><span class=3D"">Greetings!<=
br>
<br>
Gabriel Dos Reis &lt;<a href=3D"mailto:gdr at integrable-solutions.net">gdr at in=
tegrable-solutions.net</a>&gt; writes:<br>
<br>
</span><span class=3D"">&gt; Camm:<br>
&gt;<br>
&gt; Lawrence fixed the Macports port of GCL-2.6.12 so I was able to instal=
l it.<br>
&gt;<br>
<br>
</span>Great!=C2=A0 How?<br></blockquote><div><br></div><div>From what I ca=
n see, the changes are:</div><div><br></div><div>=C2=A0 =C2=A0<a href=3D"ht=
tp://trac.macports.org/changeset/128721">http://trac.macports.org/changeset=
/128721</a></div><div><br></div><div>Lawrence, is that all?</div><div>=C2=
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-styl=
e:solid;padding-left:1ex">
<span class=3D""><br>
&gt; The next thing, though, is that GCL appears not to be work properly wi=
th Clang on this platform -- Clang is the default system compiler on new<br=
>
&gt; versions on Mac OS X.<br>
&gt;<br>
&gt; For example, I tried to build OpenAxiom with it, but was stumped by:<b=
r>
&gt;<br>
&gt; Finished compiling core.lisp.<br>
&gt;<br>
&gt; gcl \<br>
&gt;<br>
&gt; -eval &#39;(load &quot;core&quot;)&#39; \<br>
&gt;<br>
&gt; -eval &#39;(|AxiomCore|::|link| &quot;base-lisp&quot; (quote nil) &quo=
t;|AxiomCore|::|topLevel|&quot;)&#39;<br>
&gt;<br>
&gt; Unrelocated non-local symbol: ___stack_chk_fail<br>
&gt;<br>
<br>
</span>This is due to a cflag mismatch.=C2=A0 For example, on Debian, by po=
licy, gcl<br>
is built with<br>
<br>
&quot;gcc -c -fstack-protector-strong -Wformat -Werror=3Dformat-security<br=
>
-D_FORTIFY_SOURCE=3D2=C2=A0 -Wall -fsigned-char -Wno-unused-but-set-variabl=
e<br>
-pipe &quot;<br>
<br>
All modules (to be loaded) should be built with the same flags.=C2=A0 My<br=
>
guess here is that the module had the stack protector, but not the<br>
default gcl build.<br></blockquote><div><br></div><div>OK; so if I understa=
nd correctly, you would recommend that Macports adds</div><div>=C2=A0</div>=
<div>=C2=A0 =C2=A0-fstack-protector-strong -D_FORTIFY_SOURCE=3D2</div><div>=
<br></div><div>to its portfile for =C2=A0GCL&#39;s?</div><div>=C2=A0</div><=
div>-- Gaby</div><div><br></div></div></div></div>

--047d7b33db6a834bce05090dac3c--


More information about the macports-users mailing list