Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > GForth 6.2 buil...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 12 Topic 3835 of 4173
Post > Topic >>

GForth 6.2 built on Mac Xcode troubles

by brian.fox@[EMAIL PROTECTED] Mar 10, 2008 at 07:43 PM

Hello GForth experts,

I have inherited a 'hand-me-down' Dual G5 from my wife, the graphic
designer (ellyfox.com).  I of course had to install the newest Xcode
tools for the Leopard version of OS/X.  And of course I don't know
very much about C.   I have built GForth in the past using the command
line. (Even I can type 'make' :-)  )

So, I think... wouldn't it be neat if I could build GForth with Xcode
(uses GCC 4.0) .  So I did my best to put the appropriate files into
an Apple 'Standard Tool' project, which builds a command line app in
C.

I removed all "Arch" folder files except the ones for Power PC and 386
and here are the errors I get from file strerror.c  :


#include <errno.h>
#include <stdio.h>
 extern   char *sys_errlist[];
error: conflicting types for 'sys_errlist'

extern  int sys_nerr;
error: conflicting type qualifiers for 'sys_nerr'
< end errors>

I also get 19 warnings shown below:

Questions:
1. Can anybody help direct me to how to fix these errors? (looks like
conflict with stdio.h)
2. Can anybody tell me if these warnings are acceptable when compiling
GForth?

/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c:
482:2: warning: #warning You can ignore the warnings about clobbered
variables in go_forth
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c: In
function 'flush_to_here':
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c:830:
warning: pointer targets in passing argument 1 of '_sync_cache_range'
differ in signedness
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c: In
function 'loader':
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c:
1360: warning: pointer targets in passing argument 2 of 'relocate'
differ in signedness
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c: In
function 'openimage':
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c:
1401: warning: pointer targets in passing argument 1 of 'tilde_cstr'
differ in signedness
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c:
482:2: warning: #warning You can ignore the warnings about clobbered
variables in go_forth
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c:830:
warning: pointer targets in passing argument 1 of '_sync_cache_range'
differ in signedness
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c:
1360: warning: pointer targets in passing argument 2 of 'relocate'
differ in signedness
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/main.c:
1401: warning: pointer targets in passing argument 1 of 'tilde_cstr'
differ in signedness

<more error explantions>
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/strerror.c:
24: error: conflicting types for 'sys_errlist'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/stdio.h:274: error:
previous declaration of 'sys_errlist' was here
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/strerror.c:
25: error:  conflicting type qualifiers for 'sys_nerr'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/stdio.h:273: error:
previous declaration of 'sys_nerr' was here
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/strerror.c:
24: error: conflicting types for 'sys_errlist'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/stdio.h:274: error:
previous declaration of 'sys_errlist' was here
/Users/ellyfox/Mac gForthCLI/../gforth/gforth-0.6.2/engine/strerror.c:
25: error:  conflicting type qualifiers for 'sys_nerr'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/stdio.h:273: error:
previous declaration of 'sys_nerr' was here

Build failed (2 errors, 19 warnings)

Appreciate any help

Thanks

Brian
 




 12 Posts in Topic:
GForth 6.2 built on Mac Xcode troubles
brian.fox@[EMAIL PROTECTE  2008-03-10 19:43:32 
Re: GForth 6.2 built on Mac Xcode troubles
John Doty <jpd@[EMAIL   2008-03-10 21:19:38 
Re: GForth 6.2 built on Mac Xcode troubles
brian.fox@[EMAIL PROTECTE  2008-03-10 20:42:17 
Re: GForth 6.2 built on Mac Xcode troubles
John Doty <jpd@[EMAIL   2008-03-10 21:52:43 
Re: GForth 6.2 built on Mac Xcode troubles
Dennis Ruffer <druffer  2008-03-11 14:21:03 
Re: GForth 6.2 built on Mac Xcode troubles
brian.fox@[EMAIL PROTECTE  2008-03-11 17:04:25 
Re: GForth 6.2 built on Mac Xcode troubles
Dennis Ruffer <druffer  2008-03-12 17:22:57 
Re: GForth 6.2 built on Mac Xcode troubles
Robert Spykerman <robe  2008-03-29 20:57:36 
Re: GForth 6.2 built on Mac Xcode troubles
Dennis Ruffer <druffer  2008-03-31 00:58:13 
Re: GForth 6.2 built on Mac Xcode troubles
Robert Spykerman <robe  2008-03-31 02:54:54 
Re: GForth 6.2 built on Mac Xcode troubles
Dennis Ruffer <druffer  2008-04-01 00:28:07 
Re: GForth 6.2 built on Mac Xcode troubles
Robert Spykerman <robe  2008-03-31 20:03:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:21:00 CDT 2008.