[uClibc]extra/config/conf
Erik Andersen
andersen at codepoet.org
Mon Mar 31 16:12:47 UTC 2003
On Mon Mar 31, 2003 at 03:34:48PM +0300, richard at uclinux.net wrote:
> Good afternoon (o;
>
>
> Has someone compiled the "extra/config/conf" stuff on another OS
> than Linux?
>
> With gcc-3.1 on OSX I get:
>
> gcc -O2 -Wall -I. -c conf.c -o conf.o
> lkc_proto.h:8: only 2 args to macro 'P' (3 expected)
> lkc_proto.h:17: only 2 args to macro 'P' (3 expected)
> cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
> make[1]: *** [conf.o] Error 1
> make: *** [extra/config/conf] Error 2
>
>
> hmm...uClibc-0.9.19 isn't thaat portable as I thought (o;
> never had problems with 0.9.15 on OSX...
>
> Or is there a way to bypass the "conf" stuff?
I know its been compiled under Solaris. I've never tried OSX
since I do not have such a machine. Does this fix it for you?
--- lkc_proto.h 31 Oct 2002 18:19:07 -0000 1.1
+++ lkc_proto.h 31 Mar 2003 16:12:09 -0000
@@ -5,7 +5,7 @@
P(conf_write,int,(const char *name));
/* menu.c */
-P(rootmenu,struct menu,);
+extern struct menu rootmenu;
P(menu_is_visible,bool,(struct menu *menu));
P(menu_get_prompt,const char *,(struct menu *menu));
@@ -14,7 +14,7 @@
/* symbol.c */
P(symbol_hash,struct symbol *,[SYMBOL_HASHSIZE]);
-P(sym_change_count,int,);
+extern int sym_change_count;
P(sym_lookup,struct symbol *,(const char *name, int isconst));
P(sym_find,struct symbol *,(const char *name));
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list