On Dec 02, 2004 at 21:15, Nicol?s Lagalaye Falcionelli
<berenerchamion(a)bluebottle.com> wrote:
Andrei: These are the errors I got using gmake on Mac
OS X, I think
they are the same I got using make:
[iMac-Lagalaye-Falcionelli:voip/ser/ser-0.8.14] nico# gmake
gcc -DNAME='""' -DVERSION='"0.8.14"'
-DARCH='"ppc"'
-DOS='"darwin"' -DCOMPILER='"gcc 3.1"' -D__CPU_ppc
-D__OS_darwin
-DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DDNS_IP_HACK -DUSE_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DF_MALLOC
-DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL -DUSE_ANON_MMAP -DNDEBUG
-c action.c -o action.o
parser/../ip_addr.h:208: illegal function call, found `,sa'
Looks like your gcc doesn't like macros with variable number of
arguments. That's strange since I'm able to compile that piece of code
with gcc 2.72, 2.95, 3.0, 3.2, 3.3 and 3.5 on various
OSes/architectures.
Unfortunately I don't have access to a Mac OS X machine right now, but
it used to work (I don't remeber the gcc version though).
Try to compile the attached test program and see if you succeed
(gcc -Wall test_macro.c -o test_macro).
parser/../ip_addr.h:208: illegal expression, found
`else'
parser/../ip_addr.h:208: illegal function call, found `,sa'
...
forward.h:92: only 2 args to macro 'LOG' (3 expected)
forward.h:97: only 2 args to macro 'LOG' (3 expected)
forward.h:105: only 2 args to macro 'LOG' (3 expected)
forward.h:111: only 2 args to macro 'LOG' (3 expected)
...
ut.h:131: only 2 args to macro 'LOG' (3 expected)
ut.h:131: undefined type, found `LOG'
ut.h:131: syntax error, missing `;' after `init'
ut.h:135: illegal function call, found `,*'
...
mem/mem.h:80: undefined or invalid # directive
Are you sure your gcc uses the right C preprocessor?
Please send the output of gcc --version and cpp --version.
P.S.: Just a for my curiosity... are you rumanian?
Yes, I am.
Andrei