Codeman655 / osxwinebuilder

Automatically exported from code.google.com/p/osxwinebuilder
GNU Lesser General Public License v2.1
0 stars 0 forks source link

gatomic.c:885: error: syntax error before '*' token #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow build steps exactly as written.
2. Run: ./osxwinebuilder-read-only/osxwinebuild.sh
3. See error: gatomic.c:885: error: syntax error before '*' token

What is the expected output? What do you see instead?

I expected Wine to build without error.

What version of the product are you using? On what operating system?

wine-1.3.21, Mac OS X 10.5.8, Xcode Version 3.1.2.

Please provide any additional information below.

Making all in .
  CC     garray.lo
  CC     gatomic.lo
  CC     gasyncqueue.lo
gatomic.c:885: error: syntax error before '*' token
gatomic.c:885: warning: type defaults to 'int' in declaration of 
'g_atomic_mutex'
gatomic.c:885: warning: data definition has no type or storage class
gatomic.c: In function 'g_atomic_int_exchange_and_add':
gatomic.c:906: warning: implicit declaration of function 'g_mutex_lock'
gatomic.c:909: warning: implicit declaration of function 'g_mutex_unlock'
gatomic.c: In function '_g_atomic_thread_init':
gatomic.c:1155: warning: implicit declaration of function 'g_mutex_new'
gatomic.c:1155: warning: assignment makes pointer from integer without a cast
make[4]: *** [gatomic.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
could not run 'make -j3' in /Users/michael/wine/build/glib-2.28.2 - exiting
d0m1n0-2:wine michael$ make clean
make: *** No rule to make target `clean'.  Stop.

Original issue reported on code.google.com by m1cha3ld...@gmail.com on 11 Jun 2011 at 11:20

GoogleCodeExporter commented 9 years ago
First things first, can you grab the newest Xcode 3.1 for 10.5?  Xcode version 
3.1.4 is the latest version supported on Leopard.  You can get a free Apple 
connect account and download Xcode 3.1.4 from this link:

http://connect.apple.com/

I no longer have a 10.5 dev machine.  I do builds on 10.6, and as far as I know 
you can still get a Snow Leopard upgrade directly from Apple for $29. -r

Original comment by rwoodsm...@gmail.com on 11 Jun 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Any update? Closing this weekend if not. -r

Original comment by rwoodsm...@gmail.com on 2 Jul 2011 at 8:26

GoogleCodeExporter commented 9 years ago

Original comment by rwoodsm...@gmail.com on 2 Jul 2011 at 8:26

GoogleCodeExporter commented 9 years ago
Also happens when using Xcode 3.1.4, there is a bug report for GLib where a 
user has the same error
https://bugzilla.gnome.org/show_bug.cgi?id=638888

Alternatively I got it to compile by adding an extra #include "gthread.h" just 
before line 885 in gatomic.c, although I guess from the surrounding comments 
that that would result in inferior performance

Original comment by joerisam...@gmail.com on 2 Jul 2011 at 10:18

GoogleCodeExporter commented 9 years ago
I just used configure and make, built ok using that method.

Original comment by m1cha3ld...@gmail.com on 3 Jul 2011 at 3:12

GoogleCodeExporter commented 9 years ago

Original comment by rwoodsm...@gmail.com on 2 Jun 2012 at 6:27