Hello,
I realize its probably uncharted waters but I was hoping someone could point me in the
right direction… I attempting to build Kamailio on a UltraSPARC T2 box running Solaris
11.3 with Sun cc and I’m not getting very far:
$ CC=cc gmake all
CC (cc) [kamailio] timer_proc.o
cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
"timer_funcs.h", line 111: warning: argument mismatch
"timer_funcs.h", line 111: syntax error before or at: __func__
"timer_funcs.h", line 111: syntax error before or at: __func__
"timer_funcs.h", line 111: syntax error before or at: __func__
"timer_funcs.h", line 111: syntax error before or at: __func__
"timer_funcs.h", line 111: syntax error before or at: __func__
"cfg/../atomic/atomic_unknown.h", line 59: #warning: no native memory barrier
implementations, falling back to slow lock based workarround
"cfg/../lock_alloc.h", line 72: warning: argument mismatch
"cfg/../lock_alloc.h", line 72: syntax error before or at: __func__
"cfg/../lock_alloc.h", line 72: syntax error before or at: __func__
"cfg/../lock_alloc.h", line 72: syntax error before or at: __func__
"cfg/../lock_alloc.h", line 72: syntax error before or at: __func__
"cfg/../lock_alloc.h", line 72: syntax error before or at: __func__
"ut.h", line 236: warning: argument mismatch
"ut.h", line 236: syntax error before or at: __func__
"ut.h", line 236: syntax error before or at: __func__
"ut.h", line 236: syntax error before or at: __func__
"ut.h", line 236: syntax error before or at: __func__
"ut.h", line 236: syntax error before or at: __func__
"ut.h", line 240: warning: argument mismatch
Any help would be greatly appreciated!
The contents of config.mak are below:
# this file is autogenerated by make cfg
MAIN_NAME= kamailio
CFG_NAME= kamailio
SCR_NAME= sip-router
FLAVOUR= kamailio
INSTALL_FLAVOUR= kamailio
SRC_NAME= sip-router
RELEASE= 4.3.3
OS= solaris
ARCH= sparc64
C_DEFS= -DNAME='"kamailio"' -DVERSION='"4.3.3"'
-DARCH='"sparc64"' -DOS='solaris_'
-DOS_QUOTED='"solaris"' -DCOMPILER='"cc 5.1"'
-D__CPU_sparc64 -D__OS_solaris -DSER_VER=4003003
-DCFG_DIR='"/usr/local/etc/kamailio/"'
-DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE
-DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DDBG_QM_MALLOC
-DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS
-DWITH_AS_SUPPORT -DUSE_SCTP -DSPARC64_MODE -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H
-DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -DUSE_PTHREAD_MUTEX -DHAVE_DEVPOLL
-DHAVE_SELECT -DHAVE_FILIO_H
DEFS_RM=
PROFILE=
CC= cc
LD= cc
MKDEP= cc -xM1
MKTAGS= ctags
LDFLAGS= -xO5
C_INCLUDES=
CC_MKDEP_OPTS=
MOD_LDFLAGS= -G -xO5
LIB_LDFLAGS= -G -xO5
UTILS_LDFLAGS= -xO5
LIB_SONAME= "-h "
LD_RPATH= -"-R "
LIB_SUFFIX= .so
LIB_PREFIX= lib
LIBS= -lfast -ldl -lresolv -L/usr/local/lib -lxnet -lnsl -lrt
LEX= flex
YACC= yacc
YACC_FLAGS= -d -b cfg
PREFIX= /usr/local
LOCALBASE= /usr/local
TAR= gtar
INSTALL= ginstall
INSTALL_CFG= ginstall -m 644
INSTALL_BIN= ginstall -m 755
INSTALL_MODULES= ginstall -m 755
INSTALL_DOC= ginstall -m 644
INSTALL_MAN= ginstall -m 644
INSTALL_LIB= ginstall -m 755
INSTALL_TOUCH= touch
INSTALL_SHARE= ginstall -m 644
Q= 1
CC_EXTRA_OPTS=
CPU=
CFLAGS_RM=
CFLAGS= -m64 -g -xO5 -fast -native -xarch=v9 -xCC -xc99 $(CC_EXTRA_OPTS)
MOD_CFLAGS= -xcode=pic32 $(CFLAGS)
LIB_CFLAGS= -xcode=pic32 $(CFLAGS)
UTILS_CFLAGS= $(CFLAGS)
BASEDIR= $(DESTDIR)
basedir= $(BASEDIR)
DESTDIR=
LIBDIR= lib64
RUNBASEDIR= $(DESTDIR)
runbasedir= $(RUNBASEDIR)
PREFIX= $(LOCALBASE)
prefix= $(PREFIX)
cfg_prefix= $(basedir)$(prefix)
cfg_dir= etc/$(MAIN_NAME)/
bin_prefix= $(basedir)$(prefix)
bin_dir= sbin/
modules_prefix= $(basedir)$(prefix)
modules_dir= $(LIBDIR)/$(MAIN_NAME)/
doc_prefix= $(basedir)$(prefix)
doc_dir= doc/$(MAIN_NAME)/
man_prefix= $(basedir)$(prefix)
man_dir= man/
ut_prefix= $(basedir)$(prefix)
ut_dir=
share_prefix= $(basedir)$(prefix)
share_dir= share/$(MAIN_NAME)/
lib_prefix= $(basedir)$(prefix)
lib_dir= $(LIBDIR)/$(MAIN_NAME)/
data_prefix= $(basedir)$(prefix)
data_dir= $(MAIN_NAME)/
cfg_target= $(prefix)/$(cfg_dir)
lib_target= $(prefix)/$(lib_dir)
data_target= $(prefix)/$(data_dir)
run_prefix= $(runbasedir)
run_dir= var/run/$(MAIN_NAME)/
run_target= $(run_prefix)/$(run_dir)
override makefile_defs:=1
C_DEFS:=$(filter-out $(DEFS_RM) $(extra_defs),$(C_DEFS)) $(extra_defs)
CFLAGS:=$(filter-out $(CFLAGS_RM) $(CC_EXTRA_OPTS), $(CFLAGS)) $(CC_EXTRA_OPTS)
Thanks!
Spencer