[Devel] compiling error
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Dec 11 19:01:10 CET 2006
Hi Di-Shi,
fixed it - it was a copy'n'paste syntax error, which was not reported by
gcc 4.x, but it looks it bothered 3.x.
Thanks for report,
Bogdan
Di-Shi Sun wrote:
>Hi, Bogdan,
>
>I just download from CVS MAIN again, "make clean", "make all".
>
>[ser at fedora5 sip-server]$ make all
>bison -d -b cfg cfg.y
>cfg.y: conflicts: 1 shift/reduce
>flex cfg.lex
>Compiling action.c
>gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-
>loops -mcpu=athlon -DNAME='"openser"' -DVERSION='"1.2.0-dev12-notls"' -DA
>RCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc
>3.4.2"' -D__CPU_i386 -D__OS_linux -D__SMP_no -DCFG_DIR='"/usr/local/etc/open
>ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -
>DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DF_MALLOC -DFAST_LOCK -DADAP
>TIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEM
>UN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_A
>LLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -c
>action.c -o action.o
>In file included from sr_module.h:46,
> from action.c:55:
>mi/mi.h:73: error: parameter "f" has just a forward declaration
>mi/mi.h:73: error: parameter "name" has just a forward declaration
>mi/mi.h:73: error: parameter "param" has just a forward declaration
>mi/mi.h:74: error: parameter "in" has just a forward declaration
>mi/mi.h:74: error: parameter "flags" has just a forward declaration
>make: *** [action.o] Error 1
>
>If this is caused by mi.h includes tree.h without a full path?
>
>Regards,
>
>Di-Shi Sun.
>
>----- Original Message -----
>From: "Bogdan-Andrei Iancu" <bogdan at voice-system.ro>
>To: "Di-Shi Sun" <di-shi at transnexus.com>
>Cc: "devel" <devel at openser.org>
>Sent: Monday, December 11, 2006 11:49 AM
>Subject: Re: [Devel] compiling error
>
>
>
>
>>Hi Di-Shi,
>>
>>are you using the latest version - try an update and see if you still
>>get the error.
>>
>>regards,
>>bogdan
>>
>>Di-Shi Sun wrote:
>>
>>
>>
>>>Hi all,
>>>
>>>I met a compiling error. Any suggestion?
>>>
>>>Thanks,
>>>
>>>Di-Shi Sun.
>>>
>>>PS.
>>>
>>>$ make all
>>>Compiling action.c
>>>gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
>>>-falign-loops -mcpu=athlon -DNAME='"openser"'
>>>-DVERSION='"1.2.0-dev12-notls"' -DARCH='"i386"' -DOS='"linux"'
>>>-DCOMPILER='"gcc 3.4.2"' -D__CPU_i386 -D__OS_linux -D__SMP_no
>>>-DCFG_DIR='"/usr/local/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 sr_module.h:46,
>>> from action.c:55:
>>>mi/mi.h:73: error: parameter "f" has just a forward declaration
>>>mi/mi.h:73: error: parameter "name" has just a forward declaration
>>>mi/mi.h:73: error: parameter "param" has just a forward declaration
>>>mi/mi.h:74: error: parameter "in" has just a forward declaration
>>>mi/mi.h:74: error: parameter "flags" has just a forward declaration
>>>make: *** [action.o] Error 1
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>Devel mailing list
>>>Devel at openser.org
>>>http://openser.org/cgi-bin/mailman/listinfo/devel
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>
>
More information about the Devel
mailing list