[Lcdproc] hmmm, compile for OS X
Russell Jones
spam@codeofficer.com
Fri Dec 1 06:00:02 2006
--Apple-Mail-2--185541232
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
Eric, thank you.
I can indeed run LDCProc using the compiled binaries you sent ....
Going into the directory you gave me, i execute:
server/LCDd -c /Users/codeofficer/Desktop/lcdproc-CVS-
current-20061126/LCDd.conf
... and the app is up and running.
the I kill the process ... specify a "make clean" ... and then a
"make" ... and I'm back to where i started.
configfile.c: In function 'config_read_string':
configfile.c:139: error: nested functions are disabled, use -fnested-
functions to re-enable
make[2]: *** [configfile.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Thanks again for trying to help. I guess I will wait to see if i hear
from Mike unless you have some more insight.
-Russ
On Dec 1, 2006, at 12:19 AM, Eric Pooch wrote:
> Hi Russell,
>
> I am BCCing this message to somebody who had the same error as you,
> and managed to get it working (Mike). He can decide if he wants to
> respond.
>
> see below:
> On Nov 30, 2006, at 9:06 PM, Russell Jones wrote:
>
>> Hey Eric, are you by chance the Eric from this site?
>>
>> http://home.sandiego.edu/~epooch/cgi-bin/blosxom.cgi/tech/leds
>>
>> If so, I'd tried doing a writeback on one of your posts recently
>> but that function had been disabled. It looks like you had some
>> spam problems and perhaps turned it off. I might recommend moving
>> over to wordpress (http://wordpress.org/) and using the akismet
>> (http://akismet.com/) spam module ... I've been running a blog for
>> some time now and am very impressed with its spam filtering.
>
> Yes, that's me. I had a good filter set up so that the junk would
> not show, but, I still had to go back and delete the junk and it
> was taking too much time. Thanks for the suggestion, I will check
> out word press.
>>
>> I did as you said but am still getting the same results. Every
>> attempted "make" ends in:
>>
>
> I will email you a gzip archive of a recent build. you should be
> able to get it running using the compiled binaries. Then, to get
> it to be Intel native, you should be able to:
>
> make clean
> make
>
> --Eric
>
>>
>> I've been interested in running LCDProc on OS X since July 31,
>> 2005 .... thats when i joined this list. Throughout that time I've
>> attempted on numerous occasions to get it installed without
>> errors, but this is the furthest I've gotten (an errorless ./
>> configure) ... this is with panther and tiger, and fresh installs
>> of each. I do tend to always keep my system up to date, including
>> my xcode installs ... I'm just completely stumped ... though as
>> you said, it does seem a bunch of other mac folk have had this
>> problem as well.
>>
>> btw: I'm very interested in playing with that growl extension you
>> made :) your site as a whole is very inspiring
>>
>> -Russ
>>
>> On Nov 30, 2006, at 10:25 PM, Eric Pooch wrote:
>>
>>> I have not had ever had this problem for a very long time, but I
>>> know that several people on Mac OS X have. You should not need
>>> to add any flags when compiling on Mac OS X. Try to:
>>>
>>> make clean
>>> gcc_select 4.0
>>> ./configure
>>> make
>>>
>>> --Eric
>>>
>>> On Nov 30, 2006, at 6:58 PM, Russell Jones wrote:
>>>
>>>> Of course I spoke too soon, while the configure runs without
>>>> error now, the make fails with this:
>>>>
>>>> make all-recursive
>>>> Making all in shared
>>>> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -O3 -Wno-
>>>> unused-function -MT LL.o -MD -MP -MF ".deps/LL.Tpo" \
>>>> -c -o LL.o `test -f 'LL.c' || echo './'`LL.c; \
>>>> then mv -f ".deps/LL.Tpo" ".deps/LL.Po"; \
>>>> else rm -f ".deps/LL.Tpo"; exit 1; \
>>>> fi
>>>> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -O3 -Wno-
>>>> unused-function -MT sockets.o -MD -MP -MF ".deps/sockets.Tpo" \
>>>> -c -o sockets.o `test -f 'sockets.c' || echo './'`sockets.c; \
>>>> then mv -f ".deps/sockets.Tpo" ".deps/sockets.Po"; \
>>>> else rm -f ".deps/sockets.Tpo"; exit 1; \
>>>> fi
>>>> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -O3 -Wno-
>>>> unused-function -MT str.o -MD -MP -MF ".deps/str.Tpo" \
>>>> -c -o str.o `test -f 'str.c' || echo './'`str.c; \
>>>> then mv -f ".deps/str.Tpo" ".deps/str.Po"; \
>>>> else rm -f ".deps/str.Tpo"; exit 1; \
>>>> fi
>>>> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -O3 -Wno-
>>>> unused-function -MT configfile.o -MD -MP -MF ".deps/
>>>> configfile.Tpo" \
>>>> -c -o configfile.o `test -f 'configfile.c' || echo
>>>> './'`configfile.c; \
>>>> then mv -f ".deps/configfile.Tpo" ".deps/configfile.Po"; \
>>>> else rm -f ".deps/configfile.Tpo"; exit 1; \
>>>> fi
>>>> configfile.c: In function 'config_read_string':
>>>> configfile.c:139: error: nested functions are disabled, use -
>>>> fnested-functions to re-enable
>>>> make[2]: *** [configfile.o] Error 1
>>>> make[1]: *** [all-recursive] Error 1
>>>> make: *** [all] Error 2
>>>>
>>>> ... back to that nested-functions error, is there an easy way
>>>> for a noobie such as I to correct this? Can I add this line to
>>>> the Makefile?
>>>>
>>>> CFLAGS = -Wall -O3 -Wno-unused-function
>>>>
>>>> -Russ
>>>>
>>>>
>>>> On Nov 30, 2006, at 5:47 PM, Robert Buchholz wrote:
>>>>
>>>>> Hi again Russel,
>>>>>
>>>>>
>>>>> Am 30.11.2006 um 23:31 schrieb Russell Jones:
>>>>>
>>>>>> 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
>>>>>
>>>>> Please look at the "configure --help" output on how the names
>>>>> of the drivers are and mind their case. Choose one of these for
>>>>> cfontz: CFontz CFontz633 CFontzPacket
>>>>>
>>>>>
>>>>>> I'm also a little unsure how to "patch the code" as you
>>>>>> mentioned so as not to use nested functions.
>>>>>
>>>>> That was not so much meant for you (try adding the CFLAG), but
>>>>> for Peter and all the other coders :-)
>>>>>
>>>>> Bye,
>>>>>
>>>>> Robert
>>>
>>
>
--Apple-Mail-2--185541232
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>Eric, thank =
you.=A0</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>I can =
indeed run LDCProc using the compiled binaries you sent ....=A0Going =
into the directory you gave me, i execute:</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><B>server/LCDd -c =
/Users/codeofficer/Desktop/lcdproc-CVS-current-20061126/LCDd.conf</B></DIV=
><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>... and the app =
is up and running.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><SPAN =
class=3D"Apple-style-span">the I kill the process ... specify a "<B>make =
clean</B>" ... and then a "<B>make</B>" ... and I'm back to where i =
started.</SPAN></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><B>configfile.c: In =
function 'config_read_string':</B></DIV><DIV><B>configfile.c:139: error: =
nested functions are disabled, use -fnested-functions to =
re-enable</B></DIV><DIV><B>make[2]: *** [configfile.o] Error =
1</B></DIV><DIV><B>make[1]: *** [all-recursive] Error =
1</B></DIV><DIV><B>make: *** [all] Error 2</B></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Thanks again for trying to =
help. I guess I will wait to see if i hear from Mike unless you have =
some more insight.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>-Russ</DIV><BR><DIV><DIV>On =
Dec 1, 2006, at 12:19 AM, Eric Pooch wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite">Hi =
Russell,<DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>I am =
BCCing this message to somebody who had the same error as you, and =
managed to get it working (Mike).=A0 He can decide if he wants to =
respond.</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>see =
below:=A0<BR><DIV><DIV>On Nov 30, 2006, at 9:06 PM, Russell Jones =
wrote:</DIV><BR class=3D"Apple-interchange-newline"><BLOCKQUOTE =
type=3D"cite"><DIV>Hey Eric, are you by chance the Eric from this =
site?</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV><SPAN =
class=3D"Apple-tab-span" style=3D"white-space:pre"> </SPAN><A =
href=3D"http://home.sandiego.edu/~epooch/cgi-bin/blosxom.cgi/tech/leds">ht=
tp://home.sandiego.edu/~epooch/cgi-bin/blosxom.cgi/tech/leds</A></DIV><DIV=
><BR class=3D"khtml-block-placeholder"></DIV><DIV>If so, I'd tried doing =
a writeback on one of your posts recently but that function had been =
disabled. It looks like you had some spam problems and perhaps turned it =
off. I might recommend moving over to wordpress (<A =
href=3D"http://wordpress.org">http://wordpress.org</A>/) and using the =
akismet (<A href=3D"http://akismet.com">http://akismet.com</A>/) spam =
module ... I've been running a blog for some time now and am very =
impressed with its spam filtering.</DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><FONT class=3D"Apple-style-span" =
face=3D"Monaco" size=3D"2"></FONT>Yes, that's me.=A0 I had a good filter =
set up so that the junk would not show,=A0 but, I still had to go back =
and delete the junk and it was taking too much time.=A0 Thanks for the =
suggestion, I will check out word press.=A0</DIV><DIV><BLOCKQUOTE =
type=3D"cite"><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV><SPAN =
class=3D"Apple-style-span">I did as you said but am still getting the =
same results. Every attempted "<B>make</B>" ends =
in:</SPAN></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I will email you a gzip =
archive of a recent build.=A0 you should be able to get it running using =
the compiled binaries.=A0 Then, to get it to be Intel native, you should =
be able to:</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>make =
clean</DIV><DIV>make</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>--Eric</DIV><BR><BLOCKQUOTE =
type=3D"cite"><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>I've =
been interested in running LCDProc on OS X since July 31, 2005 .... =
thats when i joined this list. Throughout that time I've attempted on =
numerous=A0occasions to get it installed without errors, but this is the =
furthest I've gotten (an errorless ./configure) ... this is with panther =
and tiger, and fresh installs of each. I do tend to always keep my =
system up to date, including my xcode installs ... I'm just completely =
stumped ... though as you said, it does seem a bunch of other mac folk =
have had this problem as well.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>btw: I'm very interested in =
playing with that growl extension you made :) your site as a whole is =
very inspiring</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>-Russ</DIV><BR><DIV><DIV>On =
Nov 30, 2006, at 10:25 PM, Eric Pooch wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite">I have not =
had ever had this problem for a very long time, but I know that several =
people on Mac OS X have.=A0 You should not need to add any flags when =
compiling on Mac OS X.=A0 Try to:<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>make =
clean</DIV><DIV>gcc_select =
4.0</DIV><DIV>./configure</DIV><DIV>make</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><DIV><DIV>--Eric</DIV><DIV><B=
R class=3D"khtml-block-placeholder"></DIV><DIV>On Nov 30, 2006, at 6:58 =
PM, Russell Jones wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><DIV>Of =
course I spoke too soon, while the configure runs without error now, the =
make fails with this:</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><B>make=A0 =
all-recursive</B></DIV><DIV><B>Making all in shared</B></DIV><DIV><B>if =
gcc -DHAVE_CONFIG_H -I. -I. -I..=A0 -I..=A0=A0 -Wall=A0 -O3 =
-Wno-unused-function -MT LL.o -MD -MP -MF ".deps/LL.Tpo" =
\</B></DIV><DIV><B>=A0 -c -o LL.o `test -f 'LL.c' || echo './'`LL.c; =
\</B></DIV><DIV><B>then mv -f ".deps/LL.Tpo" ".deps/LL.Po"; =
\</B></DIV><DIV><B>else rm -f ".deps/LL.Tpo"; exit 1; =
\</B></DIV><DIV><B>fi</B></DIV><DIV><B>if gcc -DHAVE_CONFIG_H -I. -I. =
-I..=A0 -I..=A0=A0 -Wall=A0 -O3 -Wno-unused-function -MT sockets.o -MD =
-MP -MF ".deps/sockets.Tpo" \</B></DIV><DIV><B>=A0 -c -o sockets.o `test =
-f 'sockets.c' || echo './'`sockets.c; \</B></DIV><DIV><B>then mv -f =
".deps/sockets.Tpo" ".deps/sockets.Po"; \</B></DIV><DIV><B>else rm -f =
".deps/sockets.Tpo"; exit 1; \</B></DIV><DIV><B>fi</B></DIV><DIV><B>if =
gcc -DHAVE_CONFIG_H -I. -I. -I..=A0 -I..=A0=A0 -Wall=A0 -O3 =
-Wno-unused-function -MT str.o -MD -MP -MF ".deps/str.Tpo" =
\</B></DIV><DIV><B>=A0 -c -o str.o `test -f 'str.c' || echo './'`str.c; =
\</B></DIV><DIV><B>then mv -f ".deps/str.Tpo" ".deps/str.Po"; =
\</B></DIV><DIV><B>else rm -f ".deps/str.Tpo"; exit 1; =
\</B></DIV><DIV><B>fi</B></DIV><DIV><B>if gcc -DHAVE_CONFIG_H -I. -I. =
-I..=A0 -I..=A0=A0 -Wall=A0 -O3 -Wno-unused-function -MT configfile.o =
-MD -MP -MF ".deps/configfile.Tpo" \</B></DIV><DIV><B>=A0 -c -o =
configfile.o `test -f 'configfile.c' || echo './'`configfile.c; =
\</B></DIV><DIV><B>then mv -f ".deps/configfile.Tpo" =
".deps/configfile.Po"; \</B></DIV><DIV><B>else rm -f =
".deps/configfile.Tpo"; exit 1; =
\</B></DIV><DIV><B>fi</B></DIV><DIV><B>configfile.c: In function =
'config_read_string':</B></DIV><DIV><B>configfile.c:139: error: nested =
functions are disabled, use -fnested-functions to =
re-enable</B></DIV><DIV><B>make[2]: *** [configfile.o] Error =
1</B></DIV><DIV><B>make[1]: *** [all-recursive] Error =
1</B></DIV><DIV><B>make: *** [all] Error 2</B></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>... back to that =
nested-functions error, is there an easy way for a noobie such as I to =
correct this? Can I add this line to the Makefile?</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><B>CFLAGS =3D -Wall=A0 -O3 =
-Wno-unused-function</B></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>-Russ</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><BR><DIV><DIV>On Nov 30, 2006, =
at 5:47 PM, 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 again 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 23:31 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 tried specifying =
curses and configure no longer complains about that driver, instead i =
get a complaint about the cfontz driver as such:</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: error: Unknown driver cfontz</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; ">Please =
look at the "configure --help" output on how the names of the drivers =
are and mind their case. Choose one of these for cfontz: CFontz =
CFontz633 CFontzPacket</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; ">I'm also a little unsure =
how to "patch the code" as you mentioned so as not to use nested =
functions.</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; ">That was not so much meant for =
you (try adding the CFLAG), but for Peter and all the other coders =
:-)</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; ">Bye,</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></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE=
></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></DIV><BR></BODY></HT=
ML>=
--Apple-Mail-2--185541232--