austrini:weex-2.6.1.5 gerrit$ make
make all-recursive
[…]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../intl -DLOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -Wall -c config.c
In file included from variable.h:36,
from config.c:36:
ftplib.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
[and then lots of the same error]
austrini:weex-2.6.1.5 gerrit$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
Copyright (C) 2007 Free Software Foundation, Inc.
using gcc 4.0.1 gives:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../intl -DLOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -Wall -c config.c
In file included from variable.h:36,
from config.c:36:
ftplib.h:92: error: syntax error before ‘int’
Solution is to set CFLAGS before configure, like this:
export CFLAGS="-D__unix__"
./configure
make
make install
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Got two other compile error on 10.6.5, Intel Core 2 Duo
1.
strlib.c: In function ‘str_dup_printf’:
strlib.c:174: error: incompatible types in assignment
Quick Fix:
=> src/strlib.c line 40
Changed G_VA_COPY definition to
#if !defined (G_VA_COPY)
# define G_VA_COPY __va_copy
#endif /* !G_VA_COPY */
2.
log.c: In function ‘log_flush’:
log.c:186: warning: format not a string literal and no format arguments
QuickFix:
=> src/log.c line 186
Replaced with: fprintf(fp,"%s",log_str[i]);
Works great now ! Thanks a lot