[OpenSER-Users] compilation on solaris 10/Spar

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed May 14 12:52:22 CEST 2008


Hi,

For Solaris, use "gmake" instead of "make"

Regards,
Bogdan

Liangyou Wang (liangwan) wrote:
>
> Hi experts,
> Anyone has experience on compilation on solaris 10/Spar?
> I am start user of openser and need use openser to support sctp.
> now I have download the source codes of openser-1.3.1-tls.
> then I compiled it, there have many errors that need your supports.
>
> e.g.
> openser-1.3.1-tls> make all
> Makefile.defs:717: *** missing separator.  Stop.
>
> then I commented Makefile.defs line717 and 718.
> # $(warning                     Old gcc detected ($(CC_SHORTVER)), use
>  gcc >= 3.1 \
> #                                       for better results)
>
> Errors were still there.
>
> openser-1.3.1-tls> make all
> Makefile:402: warning: overriding commands for target 
> `/opt/CiscoMGC$(DESTDIR)'
> Makefile:393: warning: ignoring old commands for target
> `/opt/CiscoMGC$(DESTDIR)'
> yacc -d -b cfg cfg.y
> "cfg.y", line 391: warning: redeclaration of precedence of SLASH.
>
> conflicts: 1 shift/reduce
> flex cfg.lex
> statistics.c:58: warning: #warning STATISTICS: Architecture with no
> support for atomic operations. Using Locks!!
> Makefile:402: warning: overriding commands for target 
> `/opt/CiscoMGC$(DESTDIR)'
> Makefile:393: warning: ignoring old commands for target
> `/opt/CiscoMGC$(DESTDIR)'
> Compiling action.c
> gcc  -g -O9 -funroll-loops   -Wall  -mv8      -DNAME='"openser"'
> -DVERSION='"1.3.1-notls"' -DARCH='"sparc64"' -DOS='"solaris"'
> -DCOMPILER='"gcc 2.91.66"' -D__CPU_sparc64 -D__OS_solaris -D__SMP_no
> -DCFG_DIR='"$(DESTDIR)/etc/openser/"' -DPKG_MALLOC -DSHM_MEM
> -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
> -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
> -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
> -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
> -DHAVE_ALLOCA_H -DUSE_SIGACTION -D_POSIX_PTHREAD_SEMANTICS
> -DHAVE_DEVPOLL -DHAVE_SELECT -c action.c -o action.o
> parser/msg_parser.h: In function `char_msg_val':
> In file included from action.h:27,
>                 from action.c:44:
> parser/msg_parser.h:300: parse error before `)'
> forward.h: In function `msg_send':
> In file included from action.c:49:
> forward.h:95: parse error before `)'
> forward.h:103: parse error before `)'
> forward.h:107: parse error before `)'
> mem/../lock_alloc.h: In function `lock_set_alloc':
> In file included from mem/../locking.h:66,
>                 from mem/../statistics.h:115,
>                 from mem/shm_mem.h:33,
>                 from ut.h:52,
>                 from action.c:54:
> mem/../lock_alloc.h:68: parse error before `)'
> ut.h: In function `int2bstr':
> In file included from action.c:54:
> ut.h:172: parse error before `)'
> ut.h: In function `un_escape':
> ut.h:365: parse error before `)'
> ut.h: In function `shm_str_dup':
> ut.h:498: parse error before `)'
> ut.h: In function `pkg_str_dup':
> ut.h:515: parse error before `)'
> ut.h: In function `str_strcmp':
> ut.h:532: parse error before `)'
> ut.h:535: parse error before `int'
> ut.h:539: `minlen' undeclared (first use in this function)
> ut.h:539: (Each undeclared identifier is reported only once
> ut.h:539: for each function it appears in.)
> ut.h:547: `alen' undeclared (first use in this function)
> ut.h:547: `blen' undeclared (first use in this function)
> ut.h: In function `str_strcasecmp':
> ut.h:563: parse error before `)'
> ut.h:566: parse error before `int'
> ut.h:570: `minlen' undeclared (first use in this function)
> ut.h:578: `alen' undeclared (first use in this function)
> ut.h:578: `blen' undeclared (first use in this function)
> action.c: In function `run_action_list':
> action.c:140: parse error before `)'
> action.c: In function `do_assign':
> action.c:193: parse error before `)'
> action.c:202: parse error before `)'
> action.c:222: parse error before `)'
> action.c:228: parse error before `)'
> action.c: In function `do_action':
> action.c:302: parse error before `)'
> action.c:309: parse error before `)'
> action.c:335: parse error before `)'
> action.c:498: parse error before `)'
> action.c:524: parse error before `)'
> action.c:682: parse error before `)'
> action.c:710: parse error before `)'
> action.c:723: parse error before `)'
> action.c:757: parse error before `)'
> action.c:763: parse error before `)'
> action.c:807: parse error before `)'
> action.c:819: parse error before `)'
> action.c:870: parse error before `)'
> action.c:896: parse error before `)'
> action.c:904: parse error before `)'
> action.c:930: parse error before `)'
> action.c:939: parse error before `)'
> action.c:945: parse error before `)'
> action.c:966: parse error before `)'
> make: *** [action.o] Error 1
>
> Your any help is much appreciated!
>
> BR,
> Eric
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>   





More information about the sr-users mailing list