[Lcdproc] hmmm, compile for OS X
Russell Jones
spam@codeofficer.com
Thu Nov 30 22:33:03 2006
--Apple-Mail-2--212377692
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
Ok,
I've tried specifying curses and configure no longer complains about
that driver, instead i get a complaint about the cfontz driver as such:
configure: error: Unknown driver cfontz
I'm also a little unsure how to "patch the code" as you mentioned so
as not to use nested functions.
-Russ
On Nov 30, 2006, at 6:49 AM, Robert Buchholz wrote:
> Hi Russel,
>
>
> Am 30.11.2006 um 11:57 schrieb Russell Jones:
>
>> I've downloaded the latest current nightly build, and when I cd
>> into the directory and do a:
>>
>> ./configure --prefix=/usr/local --enable-drivers=ncurses,cfontz
>>
>> it complains that:
>>
>> configure: checking for which drivers to compile...
>> configure: error: Unknown driver ncurses
>
> Try "curses", not "ncurses" for the driver's name.
>
>
>> configfile.c: In function 'config_read_string':
>> configfile.c:139: error: nested functions are disabled, use -
>> fnested-functions to re-enable
>> [...]
>
> Adding "-fnested-functions" to your CFLAGS should help here.
>
> But in the end, it might be a good idea to patch the code and not
> use nested functions at all for the sake of having the stack not
> set executable.
>
> Regards,
>
> Robert
>
>
> _______________________________________________
> LCDproc mailing list
> LCDproc@lists.omnipotent.net
> http://lists.omnipotent.net/mailman/listinfo/lcdproc
>
--Apple-Mail-2--212377692
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1
<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><DIV>Ok,=A0</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I've tried specifying =
curses and configure no longer complains about that driver, instead i =
get a complaint about the cfontz driver as such:</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><B>configure: error: =
Unknown driver cfontz</B></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I'm also a little unsure =
how to "patch the code" as you mentioned so as not to use nested =
functions.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>-Russ</DIV><BR><DIV><DIV>On =
Nov 30, 2006, at 6:49 AM, Robert Buchholz wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Hi Russel,</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Am 30.11.2006 um 11:57 schrieb Russell =
Jones:</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> =
<BLOCKQUOTE type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ">I've downloaded the latest =
current nightly build, and when I cd into the directory and do =
a:</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: =
0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">./configure --prefix=3D/usr/local =
--enable-drivers=3Dncurses,cfontz</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">it complains that:</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">configure: checking for which drivers to compile...</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">configure: error: Unknown driver ncurses</DIV> =
</BLOCKQUOTE><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Try "curses", not "ncurses" for the driver's =
name.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE =
type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">configfile.c: In function =
'config_read_string':</DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ">configfile.c:139: error: =
nested functions are disabled, use -fnested-functions to =
re-enable</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">[...]</DIV> </BLOCKQUOTE><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Adding =
"-fnested-functions" to your CFLAGS should help here.</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">But in =
the end, it might be a good idea to patch the code and not use nested =
functions at all for the sake of having the stack not set =
executable.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">Regards,</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">Robert</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">_______________________________________________</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">LCDproc mailing list</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A =
href=3D"mailto:LCDproc@lists.omnipotent.net">LCDproc@lists.omnipotent.net<=
/A></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><A =
href=3D"http://lists.omnipotent.net/mailman/listinfo/lcdproc">http://lists=
.omnipotent.net/mailman/listinfo/lcdproc</A></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV> =
</BLOCKQUOTE></DIV><BR></BODY></HTML>=
--Apple-Mail-2--212377692--