[Lcdproc] hmmm, compile for OS X
Russell Jones
spam@codeofficer.com
Fri Dec 1 05:17:05 2006
--Apple-Mail-1--188672998
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
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.
I did as you said but am still getting the same results. Every
attempted "make" ends in:
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
I've even re-downloaded the newest nightly builds and haven't had any
luck then either.
btw: when i run a "gcc - v" it shows the following:
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure --
disable-checking -enable-werror --prefix=/usr --mandir=/share/man --
enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg]
[^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-
slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --
with-tune=generic --program-prefix= --host=i686-apple-darwin8 --
target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5363)
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-1--188672998
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>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><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><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>I've even re-downloaded the =
newest nightly builds and haven't had any luck then =
either.</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV><SPAN =
class=3D"Apple-style-span">btw: when i run a "<B>gcc - v</B>" it shows =
the following:</SPAN></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><B>Using built-in =
specs.</B></DIV><DIV><B>Target: =
i686-apple-darwin8</B></DIV><DIV><B>Configured with: =
/private/var/tmp/gcc/gcc-5363.obj~28/src/configure --disable-checking =
-enable-werror --prefix=3D/usr --mandir=3D/share/man =
--enable-languages=3Dc,objc,c++,obj-c++ =
--program-transform-name=3D/^[cg][^.-]*$/s/$/-4.0/ =
--with-gxx-include-dir=3D/include/c++/4.0.0 --with-slibdir=3D/usr/lib =
--build=3Dpowerpc-apple-darwin8 --with-arch=3Dnocona --with-tune=3Dgeneric=
--program-prefix=3D --host=3Di686-apple-darwin8 =
--target=3Di686-apple-darwin8</B></DIV><DIV><B>Thread model: =
posix</B></DIV><DIV><B>gcc version 4.0.1 (Apple Computer, Inc. build =
5363)</B></DIV><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></BODY></HTML>=
--Apple-Mail-1--188672998--