Hi, i'm getting this error on compiling openser-1.2.2-notls on Ubuntu 8.04 x86_64 Can you help me to see wath's is wrong? Same sources compiled perfect on SLES 10 x86_64. Thank you. Bye, Marcello
gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops - falign-loops -ftree-vectorize -mtune=opteron -DNAME='"openser"' - DVERSION='"1.2.2-notls"' -DARCH='"x86_64"' -DOS='"linux"' - DCOMPILER='"gcc 4.2.3"' -D__CPU_x86_64 -D__OS_linux -D__SMP_yes - DCFG_DIR='"/data/openser/etc/openser/"' -DPKG_MALLOC -DSHM_MEM - DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE - DHAVE_RESOLV_RES -DSTATISTICS -DF_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT - DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN - DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL - DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT - DHAVE_SELECT -c action.c -o action.o In file included from parser/msg_parser.h:48, from action.h:27, from action.c:44: parser/../config.h:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token In file included from parser/msg_parser.h:48, from action.h:27, from action.c:44: parser/../config.h:2:38: error: invalid digit "8" in octal constant parser/../config.h:2:41: error: invalid suffix "Z" on integer constant parser/../config.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘can’ parser/../config.h:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘version’ parser/../config.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘even’ parser/../config.h:19: error: expected identifier or ‘(’ before ‘if’ parser/../config.h:26:63: warning: missing terminating ' character parser/../config.h:26: error: missing terminating ' character In file included from action.c:45: config.h:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token In file included from action.c:45: config.h:2:38: error: invalid digit "8" in octal constant config.h:2:41: error: invalid suffix "Z" on integer constant config.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘can’ config.h:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘version’ config.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘even’ config.h:19: error: expected identifier or ‘(’ before ‘if’ config.h:26:63: warning: missing terminating ' character config.h:26: error: missing terminating ' character In file included from route.h:32, from forward.h:39, from action.c:49: config.h:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token In file included from route.h:32, from forward.h:39, from action.c:49: config.h:2:38: error: invalid digit "8" in octal constant config.h:2:41: error: invalid suffix "Z" on integer constant config.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘can’ config.h:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘version’ config.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘even’ config.h:19: error: expected identifier or ‘(’ before ‘if’ config.h:26:63: warning: missing terminating ' character config.h:26: error: missing terminating ' character In file included from ut.h:47, from action.c:54: config.h:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token In file included from ut.h:47, from action.c:54: config.h:2:38: error: invalid digit "8" in octal constant config.h:2:41: error: invalid suffix "Z" on integer constant config.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘can’ config.h:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘version’ config.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘even’ config.h:19: error: expected identifier or ‘(’ before ‘if’ config.h:26:63: warning: missing terminating ' character config.h:26: error: missing terminating ' character In file included from mem/mem.h:35, from action.c:56: mem/../config.h:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token In file included from mem/mem.h:35, from action.c:56: mem/../config.h:2:38: error: invalid digit "8" in octal constant mem/../config.h:2:41: error: invalid suffix "Z" on integer constant mem/../config.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘can’ mem/../config.h:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘version’ mem/../config.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘even’ mem/../config.h:19: error: expected identifier or ‘(’ before ‘if’ mem/../config.h:26:63: warning: missing terminating ' character mem/../config.h:26: error: missing terminating ' character In file included from mem/mem.h:54, from action.c:56: mem/f_malloc.h:134: warning: ‘struct mem_info’ declared inside parameter list mem/f_malloc.h:134: warning: its scope is only this definition or declaration, which is probably not what you want action.c: In function ‘do_action’: action.c:387: error: ‘ser_error’ undeclared (first use in this function) action.c:387: error: (Each undeclared identifier is reported only once action.c:387: error: for each function it appears in.) action.c:564: error: ‘rlist’ undeclared (first use in this function) make: *** [action.o] Error 1
On Wednesday 24 September 2008, Marcello Lupo wrote:
i'm getting this error on compiling openser-1.2.2-notls on Ubuntu 8.04 x86_64. Can you help me to see wath's is wrong? Same sources compiled perfect on SLES 10 x86_64. [..] In file included from parser/msg_parser.h:48, from action.h:27, from action.c:44: parser/../config.h:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token [..]
Hi Marcello,
just a guess, but the errors seems related to the config.h file: do you changed something in there, adapted some default value to your needs? I use kubuntu 8.04 on i386, everything allright here.
Cheers,
Henning
Hi, i was very stupid... I saw that errors was related to config.h but was thinking there was something wrong in the files. Now that you pointed me to the most stupid kind of errors on the planet i found it. I changed the memory values and for error deleted the / in the comment at starting of the page. Thank you for help. Bye, Marcello
On Sep 25, 2008, at 10:22 AM, Henning Westerholt wrote:
On Wednesday 24 September 2008, Marcello Lupo wrote:
i'm getting this error on compiling openser-1.2.2-notls on Ubuntu 8.04 x86_64. Can you help me to see wath's is wrong? Same sources compiled perfect on SLES 10 x86_64. [..] In file included from parser/msg_parser.h:48, from action.h:27, from action.c:44: parser/../config.h:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token [..]
Hi Marcello,
just a guess, but the errors seems related to the config.h file: do you changed something in there, adapted some default value to your needs? I use kubuntu 8.04 on i386, everything allright here.
Cheers,
Henning
On Thursday 25 September 2008, Marcello Lupo wrote:
I saw that errors was related to config.h but was thinking there was something wrong in the files. Now that you pointed me to the most stupid kind of errors on the planet i found it. I changed the memory values and for error deleted the / in the comment at starting of the page.
Hi Marcello,
well, sometimes gcc uses errors messages that does not really help in debugging too.. ;-) Good that it works for you now.
Cheers,
Henning