[Serusers] Mac OS X
Andrei Pelinescu-Onciul
pelinescu-onciul at fokus.fraunhofer.de
Fri Dec 3 14:53:26 CET 2004
On Dec 02, 2004 at 21:15, Nicol?s Lagalaye Falcionelli <berenerchamion at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_macro.c
Type: text/x-csrc
Size: 180 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20041203/c3f0d039/attachment.c>
More information about the sr-users
mailing list