[Lcdproc] hmmm, compile for OS X
Russell Jones
spam@codeofficer.com
Mon Dec 4 01:35:01 2006
--Apple-Mail-2-39744329
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=UTF-8;
delsp=yes;
format=flowed
I'm attaching the 1 configure log and 2 make logs of each attempt =20
below for those that might be curious.
-Russ Jones
=EF=BF=BC =EF=BF=BC =EF=BF=BC
On Dec 3, 2006, at 3:25 PM, Russell Jones wrote:
> FYI,
>
> I downloaded the most recent nightly build (lcdproc-CVS-=20
> current-20061203) and gave it a shot, I still end up at the same =20
> error however.
>
> here are the commands I used on two attempts to build it:
>
> ./configure --prefix=3D/usr/local --enable-drivers=3DCFontz
>
> make
>
> configfile.c: In function 'config_read_string':
> configfile.c:139: error: nested functions are disabled, use -=20
> fnested-functions to re-enable
> make[2]: *** [configfile.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> make clean
>
> ./configure --prefix=3D/usr/local --enable-drivers=3DCFontz
>
> make CFLAGS=3D-fnested-functions
>
> and i get ...
>
> /usr/bin/ld: -allow_stack_execute can only be used when output file =20=
> type is MH_EXECUTE
> collect2: ld returned 1 exit status
> make[3]: *** [CFontz.so] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Again the machine I use is a hot off the shelf 4x 3ghz mac pro (intel)
>
> -Russ
>
>
> On Dec 3, 2006, at 7:08 AM, Peter Marschall wrote:
>
>> Hi Russell,
>>
>> On Friday, 1. December 2006 12:33, Russell Jones wrote:
>>> I'm BCC'ing Mike as well. Thanks for the tip mike, you got me one
>>> step further in my pursuit!
>>>
>>> UPDATE:
>>>
>>> I did some homework and found that if i took eric's build files and
>>> ran "make clean" and then a:
>>>
>>> make CFLAGS=3D-fnested-functions
>>>
>>> ... then I am able to get past the errors about nesting. Now however
>>> I am getting an error further down like this:
>>>
>>> /usr/bin/ld: -allow_stack_execute can only be used when output file
>>> type is MH_EXECUTE
>>> collect2: ld returned 1 exit status
>>> make[3]: *** [bayrad.so] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all-recursive] Error 1
>>> make: *** [all] Error 2
>>>
>>> Not quite sure what to make of this one, I did find lots of =20
>>> seemingly
>>> relevant text about it on this page (http://developer.apple.com/
>>> documentation/Darwin/Reference/ManPages/man1/ld.1.html), though =20
>>> its a
>>> bit above my level of understanding.
>>
>> I have just committed a patch to configfile.c in CVS that hides the
>> whole code that uses the nested function behind and #ifdef.
>> This is possible because the code using the nested function
>> is not used at all ;-)
>>
>> The patch compiles file, but it is untested.
>> Please test and report feedback.
>>
>> Peter
>>
>> --=20
>> Peter Marschall
>> peter@adpm.de
>> _______________________________________________
>> LCDproc mailing list
>> LCDproc@lists.omnipotent.net
>> http://lists.omnipotent.net/mailman/listinfo/lcdproc
>>
>
--Apple-Mail-2-39744329
Content-Type: multipart/mixed;
boundary=Apple-Mail-3-39744329
--Apple-Mail-3-39744329
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=US-ASCII
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>I'm attaching the 1 configure log and 2 make logs of each attempt below for those that might be curious.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-Russ Jones</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV></DIV></BODY></HTML>
--Apple-Mail-3-39744329
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name=1-configure.log
Content-Disposition: attachment;
filename=1-configure.log
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin8.8.1
checking host system type... i386-apple-darwin8.8.1
checking whether to enable debugging... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking CFLAGS for gcc -Wno-unused-function... -Wno-unused-function
checking CFLAGS for gcc -ftrampolines... no, unknown
checking for gethostbyname... yes
checking for connect... yes
checking for inet_aton... yes
checking for kstat_open in -lkstat... no
checking for nanosleep in -lposix4... no
checking for getloadavg... yes
checking for swapctl... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking procfs.h usability... no
checking procfs.h presence... no
checking for procfs.h... no
checking sys/procfs.h usability... no
checking sys/procfs.h presence... no
checking for sys/procfs.h... no
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking for kvm_open in -lkvm... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking sys/sched.h usability... no
checking sys/sched.h presence... no
checking for sys/sched.h... no
checking machine/cpufunc.h usability... no
checking machine/cpufunc.h presence... no
checking for machine/cpufunc.h... no
checking for sys/types.h... (cached) yes
checking machine/pio.h usability... no
checking machine/pio.h presence... no
checking for machine/pio.h... no
checking machine/sysarch.h usability... no
checking machine/sysarch.h presence... no
checking for machine/sysarch.h... no
checking sys/cpuvar.h usability... no
checking sys/cpuvar.h presence... no
checking for sys/cpuvar.h... no
checking for System V IPC headers... yes
checking for union semun... yes
checking for sched_setscheduler... no
checking for sched_setscheduler in -lposix4... no
checking for sched_setscheduler in -lrt... no
checking for i386_get_ioperm in -li386... no
checking for i386_get_ioperm in -lc... no
checking for iopl... no
checking for ioperm... no
checking sys/io.h usability... no
checking sys/io.h presence... no
checking for sys/io.h... no
checking for a parallel port... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for sys/io.h... (cached) no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking kvm.h usability... yes
checking kvm.h presence... yes
checking for kvm.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/dkstat.h usability... yes
checking sys/dkstat.h presence... yes
checking for sys/dkstat.h... yes
checking for sys/sysctl.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking whether gcc needs -traditional... no
checking return type of signal handlers... void
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strtol... yes
checking for uname... yes
checking for cfmakeraw... yes
checking for snprintf... yes
checking for getopt_long... yes
checking for your mounted filesystem table...
checking for fcntl.h... (cached) yes
checking sys/dustat.h usability... no
checking sys/dustat.h presence... no
checking for sys/dustat.h... no
checking for sys/param.h... (cached) yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking sys/fstyp.h usability... no
checking sys/fstyp.h presence... no
checking for sys/fstyp.h... no
checking mnttab.h usability... no
checking mnttab.h presence... no
checking for mnttab.h... no
checking mntent.h usability... no
checking mntent.h presence... no
checking for mntent.h... no
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... no
checking sys/vfs.h presence... no
checking for sys/vfs.h... no
checking sys/filsys.h usability... no
checking sys/filsys.h presence... no
checking for sys/filsys.h... no
checking sys/fs_types.h usability... no
checking sys/fs_types.h presence... no
checking for sys/fs_types.h... no
checking for sys/mount.h... yes
checking for getmntinfo... yes
configure: checking how to get filesystem space usage...
checking for statvfs... yes
checking module extension... .so
checking for dlopen in -ldl... yes
checking for shl_load in -ldld... no
checking if libusb support has been enabled... yes
checking for libusb-config... :
checking libusb CFLAGS...
checking libusb library path...
checking for main in -lusb... no
checking if LDAP support has been enabled... no
configure: checking for which drivers to compile...
checking for select... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for main in -lncurses... yes
checking for ncurses.h... (cached) yes
checking for acs_map in curses.h... yes
checking for redrawwin() in curses... yes
checking for wcolor_set() in curses... yes
Will compile drivers: bayrad,CFontz,CFontz633,curses,CwLnx,glk,lb216,lcdm001,MtxOrb,pyramid,text
checking for doxygen... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating shared/Makefile
config.status: creating server/Makefile
config.status: creating server/commands/Makefile
config.status: creating server/drivers/Makefile
config.status: creating clients/Makefile
config.status: creating clients/lcdproc/Makefile
config.status: creating clients/lcdexec/Makefile
config.status: creating clients/lcdvc/Makefile
config.status: creating clients/examples/Makefile
config.status: creating clients/metar/Makefile
config.status: creating docs/Makefile
config.status: creating docs/Doxyfile
config.status: creating docs/lcdproc-dev/Makefile
config.status: creating docs/lcdproc-user/Makefile
config.status: creating docs/lcdproc-user/drivers/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/init-LCDd.LSB
config.status: creating scripts/init-lcdproc.LSB
config.status: creating scripts/init-lcdexec.LSB
config.status: creating scripts/init-lcdvc.LSB
config.status: creating scripts/init-LCDd.debian
config.status: creating scripts/init-lcdproc.debian
config.status: creating scripts/init-lcdexec.debian
config.status: creating scripts/init-lcdvc.debian
config.status: creating scripts/init-LCDd.rpm
config.status: creating scripts/init-lcdproc.rpm
config.status: creating config.h
config.status: executing depfiles commands
--Apple-Mail-3-39744329
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>=A0</DIV></BODY></HTML>=
--Apple-Mail-3-39744329
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-mac-type=54455854;
x-unix-mode=0644;
name=1-make.log
Content-Disposition: attachment;
filename=1-make.log
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
--Apple-Mail-3-39744329
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>=A0</DIV></BODY></HTML>=
--Apple-Mail-3-39744329
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-mac-type=54455854;
x-unix-mode=0644;
name=2-make.log
Content-Disposition: attachment;
filename=2-make.log
make all-recursive
Making all in shared
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -fnested-functions -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.. -fnested-functions -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.. -fnested-functions -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.. -fnested-functions -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
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -fnested-functions -MT report.o -MD -MP -MF ".deps/report.Tpo" \
-c -o report.o `test -f 'report.c' || echo './'`report.c; \
then mv -f ".deps/report.Tpo" ".deps/report.Po"; \
else rm -f ".deps/report.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -fnested-functions -MT snprintf.o -MD -MP -MF ".deps/snprintf.Tpo" \
-c -o snprintf.o `test -f 'snprintf.c' || echo './'`snprintf.c; \
then mv -f ".deps/snprintf.Tpo" ".deps/snprintf.Po"; \
else rm -f ".deps/snprintf.Tpo"; exit 1; \
fi
rm -f libLCDstuff.a
ar cru libLCDstuff.a LL.o sockets.o str.o configfile.o report.o snprintf.o
ranlib libLCDstuff.a
Making all in clients
Making all in examples
make[3]: Nothing to be done for `all'.
Making all in lcdexec
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT lcdexec.o -MD -MP -MF ".deps/lcdexec.Tpo" \
-c -o lcdexec.o `test -f 'lcdexec.c' || echo './'`lcdexec.c; \
then mv -f ".deps/lcdexec.Tpo" ".deps/lcdexec.Po"; \
else rm -f ".deps/lcdexec.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT menu.o -MD -MP -MF ".deps/menu.Tpo" \
-c -o menu.o `test -f 'menu.c' || echo './'`menu.c; \
then mv -f ".deps/menu.Tpo" ".deps/menu.Po"; \
else rm -f ".deps/menu.Tpo"; exit 1; \
fi
gcc -fnested-functions -o lcdexec lcdexec.o menu.o ../../shared/libLCDstuff.a -ldl -lkvm
Making all in lcdproc
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT main.o -MD -MP -MF ".deps/main.Tpo" \
-c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT mode.o -MD -MP -MF ".deps/mode.Tpo" \
-c -o mode.o `test -f 'mode.c' || echo './'`mode.c; \
then mv -f ".deps/mode.Tpo" ".deps/mode.Po"; \
else rm -f ".deps/mode.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT batt.o -MD -MP -MF ".deps/batt.Tpo" \
-c -o batt.o `test -f 'batt.c' || echo './'`batt.c; \
then mv -f ".deps/batt.Tpo" ".deps/batt.Po"; \
else rm -f ".deps/batt.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT chrono.o -MD -MP -MF ".deps/chrono.Tpo" \
-c -o chrono.o `test -f 'chrono.c' || echo './'`chrono.c; \
then mv -f ".deps/chrono.Tpo" ".deps/chrono.Po"; \
else rm -f ".deps/chrono.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT cpu.o -MD -MP -MF ".deps/cpu.Tpo" \
-c -o cpu.o `test -f 'cpu.c' || echo './'`cpu.c; \
then mv -f ".deps/cpu.Tpo" ".deps/cpu.Po"; \
else rm -f ".deps/cpu.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT cpu_smp.o -MD -MP -MF ".deps/cpu_smp.Tpo" \
-c -o cpu_smp.o `test -f 'cpu_smp.c' || echo './'`cpu_smp.c; \
then mv -f ".deps/cpu_smp.Tpo" ".deps/cpu_smp.Po"; \
else rm -f ".deps/cpu_smp.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT disk.o -MD -MP -MF ".deps/disk.Tpo" \
-c -o disk.o `test -f 'disk.c' || echo './'`disk.c; \
then mv -f ".deps/disk.Tpo" ".deps/disk.Po"; \
else rm -f ".deps/disk.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT load.o -MD -MP -MF ".deps/load.Tpo" \
-c -o load.o `test -f 'load.c' || echo './'`load.c; \
then mv -f ".deps/load.Tpo" ".deps/load.Po"; \
else rm -f ".deps/load.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT mem.o -MD -MP -MF ".deps/mem.Tpo" \
-c -o mem.o `test -f 'mem.c' || echo './'`mem.c; \
then mv -f ".deps/mem.Tpo" ".deps/mem.Po"; \
else rm -f ".deps/mem.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT eyebox.o -MD -MP -MF ".deps/eyebox.Tpo" \
-c -o eyebox.o `test -f 'eyebox.c' || echo './'`eyebox.c; \
then mv -f ".deps/eyebox.Tpo" ".deps/eyebox.Po"; \
else rm -f ".deps/eyebox.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT machine_Linux.o -MD -MP -MF ".deps/machine_Linux.Tpo" \
-c -o machine_Linux.o `test -f 'machine_Linux.c' || echo './'`machine_Linux.c; \
then mv -f ".deps/machine_Linux.Tpo" ".deps/machine_Linux.Po"; \
else rm -f ".deps/machine_Linux.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT machine_OpenBSD.o -MD -MP -MF ".deps/machine_OpenBSD.Tpo" \
-c -o machine_OpenBSD.o `test -f 'machine_OpenBSD.c' || echo './'`machine_OpenBSD.c; \
then mv -f ".deps/machine_OpenBSD.Tpo" ".deps/machine_OpenBSD.Po"; \
else rm -f ".deps/machine_OpenBSD.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT machine_FreeBSD.o -MD -MP -MF ".deps/machine_FreeBSD.Tpo" \
-c -o machine_FreeBSD.o `test -f 'machine_FreeBSD.c' || echo './'`machine_FreeBSD.c; \
then mv -f ".deps/machine_FreeBSD.Tpo" ".deps/machine_FreeBSD.Po"; \
else rm -f ".deps/machine_FreeBSD.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT machine_NetBSD.o -MD -MP -MF ".deps/machine_NetBSD.Tpo" \
-c -o machine_NetBSD.o `test -f 'machine_NetBSD.c' || echo './'`machine_NetBSD.c; \
then mv -f ".deps/machine_NetBSD.Tpo" ".deps/machine_NetBSD.Po"; \
else rm -f ".deps/machine_NetBSD.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT machine_Darwin.o -MD -MP -MF ".deps/machine_Darwin.Tpo" \
-c -o machine_Darwin.o `test -f 'machine_Darwin.c' || echo './'`machine_Darwin.c; \
then mv -f ".deps/machine_Darwin.Tpo" ".deps/machine_Darwin.Po"; \
else rm -f ".deps/machine_Darwin.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT machine_SunOS.o -MD -MP -MF ".deps/machine_SunOS.Tpo" \
-c -o machine_SunOS.o `test -f 'machine_SunOS.c' || echo './'`machine_SunOS.c; \
then mv -f ".deps/machine_SunOS.Tpo" ".deps/machine_SunOS.Po"; \
else rm -f ".deps/machine_SunOS.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT util.o -MD -MP -MF ".deps/util.Tpo" \
-c -o util.o `test -f 'util.c' || echo './'`util.c; \
then mv -f ".deps/util.Tpo" ".deps/util.Po"; \
else rm -f ".deps/util.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT iface.o -MD -MP -MF ".deps/iface.Tpo" \
-c -o iface.o `test -f 'iface.c' || echo './'`iface.c; \
then mv -f ".deps/iface.Tpo" ".deps/iface.Po"; \
else rm -f ".deps/iface.Tpo"; exit 1; \
fi
gcc -fnested-functions -framework CoreFoundation -framework IOKit -o lcdproc main.o mode.o batt.o chrono.o cpu.o cpu_smp.o disk.o load.o mem.o eyebox.o machine_Linux.o machine_OpenBSD.o machine_FreeBSD.o machine_NetBSD.o machine_Darwin.o machine_SunOS.o util.o iface.o ../../shared/libLCDstuff.a -ldl -lkvm
Making all in lcdvc
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT lcdvc.o -MD -MP -MF ".deps/lcdvc.Tpo" \
-c -o lcdvc.o `test -f 'lcdvc.c' || echo './'`lcdvc.c; \
then mv -f ".deps/lcdvc.Tpo" ".deps/lcdvc.Po"; \
else rm -f ".deps/lcdvc.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT lcd_link.o -MD -MP -MF ".deps/lcd_link.Tpo" \
-c -o lcd_link.o `test -f 'lcd_link.c' || echo './'`lcd_link.c; \
then mv -f ".deps/lcd_link.Tpo" ".deps/lcd_link.Po"; \
else rm -f ".deps/lcd_link.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DSYSCONFDIR=\"/usr/local/etc\" -fnested-functions -MT vc_link.o -MD -MP -MF ".deps/vc_link.Tpo" \
-c -o vc_link.o `test -f 'vc_link.c' || echo './'`vc_link.c; \
then mv -f ".deps/vc_link.Tpo" ".deps/vc_link.Po"; \
else rm -f ".deps/vc_link.Tpo"; exit 1; \
fi
gcc -fnested-functions -framework CoreFoundation -framework IOKit -o lcdvc lcdvc.o lcd_link.o vc_link.o ../../shared/libLCDstuff.a -ldl -lkvm
Making all in metar
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in server
Making all in drivers
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -fPIC -fnested-functions -MT lcd_lib.o -MD -MP -MF ".deps/lcd_lib.Tpo" \
-c -o lcd_lib.o `test -f 'lcd_lib.c' || echo './'`lcd_lib.c; \
then mv -f ".deps/lcd_lib.Tpo" ".deps/lcd_lib.Po"; \
else rm -f ".deps/lcd_lib.Tpo"; exit 1; \
fi
rm -f libLCD.a
ar cru libLCD.a lcd_lib.o
ranlib libLCD.a
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -fPIC -fnested-functions -MT adv_bignum.o -MD -MP -MF ".deps/adv_bignum.Tpo" \
-c -o adv_bignum.o `test -f 'adv_bignum.c' || echo './'`adv_bignum.c; \
then mv -f ".deps/adv_bignum.Tpo" ".deps/adv_bignum.Po"; \
else rm -f ".deps/adv_bignum.Tpo"; exit 1; \
fi
rm -f libbignum.a
ar cru libbignum.a adv_bignum.o
ranlib libbignum.a
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -fPIC -fnested-functions -MT bayrad.o -MD -MP -MF ".deps/bayrad.Tpo" \
-c -o bayrad.o `test -f 'bayrad.c' || echo './'`bayrad.c; \
then mv -f ".deps/bayrad.Tpo" ".deps/bayrad.Po"; \
else rm -f ".deps/bayrad.Tpo"; exit 1; \
fi
gcc -fPIC -fnested-functions -bundle -flat_namespace -undefined suppress -o bayrad.so bayrad.o -ldl -lkvm
machine_Darwin.c: In function 'machine_init':
machine_Darwin.c:77: warning: pointer targets in passing argument 2 of 'host_page_size' differ in signedness
machine_Darwin.c:310:3: warning: #warning machine_get_procs not implemented
/usr/bin/ld: -allow_stack_execute can only be used when output file type is MH_EXECUTE
collect2: ld returned 1 exit status
make[3]: *** [bayrad.so] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--Apple-Mail-3-39744329
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></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><BR><DIV><DIV>On Dec 3, 2006, at =
3:25 PM, Russell Jones wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE =
type=3D"cite"><DIV>FYI,=A0</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I downloaded the most =
recent nightly build (<FONT class=3D"Apple-style-span" face=3D"Lucida =
Grande">lcdproc-CVS-current-20061203)=A0</FONT>and gave it a shot, I =
still end up at the same error however.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>here are the commands I =
used on two attempts to build it:</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>./configure =
--prefix=3D/usr/local --enable-drivers=3DCFontz</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>make</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>make clean</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>./configure =
--prefix=3D/usr/local --enable-drivers=3DCFontz</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>make =
CFLAGS=3D-fnested-functions</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>and i get ...</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><B>/usr/bin/ld: =
-allow_stack_execute can only be used when output file type is =
MH_EXECUTE</B></DIV><DIV><B>collect2: ld returned 1 exit =
status</B></DIV><DIV><B>make[3]: *** [CFontz.so] Error =
1</B></DIV><DIV><B>make[2]: *** [all-recursive] 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>Again the machine I use is =
a hot off the shelf 4x 3ghz mac pro (intel)</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>-Russ</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><BR><DIV><DIV>On Dec 3, 2006, at =
7:08 AM, Peter Marschall 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 Russell,</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; ">On Friday, 1. December 2006 =
12:33, Russell Jones wrote:</DIV> <BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">I'm BCC'ing Mike as well. Thanks for the tip mike, =
you got me one</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">step further in my =
pursuit!</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; ">UPDATE:</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; ">I did some homework and found =
that if i took eric's build files and</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ran =
"make clean" and then 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; ">make =
CFLAGS=3D-fnested-functions</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; ">... then I am able to get past =
the errors about nesting. Now however</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I am =
getting an error further down like this:</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; ">/usr/bin/ld: =
-allow_stack_execute can only be used when output file</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">type is MH_EXECUTE</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">collect2: ld returned 1 exit status</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make[3]: =
*** [bayrad.so] Error 1</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make[2]: *** =
[all-recursive] Error 1</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make[1]: *** =
[all-recursive] Error 1</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make: *** =
[all] Error 2</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; ">Not quite sure what to make of this one, I did find =
lots of seemingly</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">relevant text about it on this =
page (<A =
href=3D"http://developer.apple.com">http://developer.apple.com</A>/</DIV><=
DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; =
">documentation/Darwin/Reference/ManPages/man1/ld.1.html), though its =
a</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: =
0px; margin-left: 0px; ">bit above my level of understanding.</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; ">I have just committed a patch to configfile.c in CVS =
that hides the<SPAN class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">whole code that uses the nested function behind and =
#ifdef.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">This is possible because the =
code using the nested function</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">is not used =
at all ;-)</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; ">The patch compiles file, but it is =
untested.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">Please test and report =
feedback.</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; ">Peter</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; ">--<SPAN =
class=3D"Apple-converted-space">=A0</SPAN></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Peter =
Marschall</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><A =
href=3D"mailto:peter@adpm.de">peter@adpm.de</A></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></BLOCKQUOTE></DIV><BR></BODY></HTML>=
--Apple-Mail-3-39744329--
--Apple-Mail-2-39744329--