How can I compile SER on Mac OS X? With the package I got instructions came in order to start SER at startup, but I found nothing about building. I tried typing "make" but I got a very long list of all kinds o errors.
Can anyone help?
Thanks
On Nov 28, 2004 at 22:26, Nicol?s Lagalaye Falcionelli berenerchamion@bluebottle.com wrote:
How can I compile SER on Mac OS X? With the package I got instructions came in order to start SER at startup, but I found nothing about building. I tried typing "make" but I got a very long list of all kinds o errors.
Use gmake instead of make. If you get errors, paste the first ones in an email.
Compile instructions are in INSTALL.
Andrei
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' 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 action.c:135: only 2 args to macro 'LOG' (3 expected) action.c:148: illegal function call, found `,a' action.c:148: illegal expression, found `else' action.c:148: illegal function call, found `,a' action.c:148: illegal function call, found `,a' action.c:148: illegal function call, found `,a' action.c:148: illegal function call, found `,a' ... cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode gmake: *** [action.o] Error 1
"..." means a huge succession of lines with very similar errors
Many Thanks,
Nicolás
P.S.: Just a for my curiosity... are you rumanian?
Quoting Andrei Pelinescu-Onciul pelinescu-onciul@fokus.fraunhofer.de:
On Nov 28, 2004 at 22:26, Nicol?s Lagalaye Falcionelli berenerchamion@bluebottle.com wrote:
How can I compile SER on Mac OS X? With the package I got instructions came in order to start SER at startup, but I found nothing about building. I tried typing "make" but I got a very long list of
all
kinds o errors.
Use gmake instead of make. If you get errors, paste the first ones in an email.
Compile instructions are in INSTALL.
Andrei
On Dec 02, 2004 at 21:15, Nicol?s Lagalaye Falcionelli berenerchamion@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