Hi Andrei,
Andrei Pelinescu-Onciul wrote:
Hmmm, that's strange. It works for me on opensolaris 2009.06.
I am building it on Solaris 10, not OpenSolaris. There are aspects of
OpenSolaris that have not been put back into Solaris. FYI, I am using
Solaris 10 Update 5 to build the sources.
Could you send me config.mak ? (it should be in the sip-router
directory).
I have attached config.mak for you.
If you try building only sercmd (cd utils/sercmd ;
make ) , does it
work?
Yes, if I go in to the directory after the failure and run "make" as
suggested, then the compile works.
# this file is autogenerated by make cfg
MAIN_NAME= ser
CFG_NAME= sip-router
SCR_NAME= sip-router
FLAVOUR= sip-router
INSTALL_FLAVOUR= sip-router
RELEASE= 2.99.99-pre3
OS= solaris
ARCH= i386
C_DEFS= -DNAME='"ser"' -DVERSION='"2.99.99-pre3"'
-DARCH='"i386"' -DOS='solaris_'
-DOS_QUOTED='"solaris"' -DCOMPILER='"/usr/sfw/bin/gcc
3.4.3"' -D__CPU_i386 -D__OS_solaris -DSER_VER=2099099
-DCFG_DIR='"/opt/kamailio/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES
-DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC
-DUSE_TLS -DTLS_HOOKS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DCC_GCC_LIKE_ASM -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -DHAVE_FILIO_H
DEFS_RM=
PROFILE=
CC= /usr/sfw/bin/gcc
LD= /usr/sfw/bin/gcc
MKDEP= /usr/sfw/bin/gcc -MM
MKTAGS= ctags -R .
LDFLAGS= -m32 -O2
C_INCLUDES=
MOD_LDFLAGS= -G -m32 -O2
LIB_LDFLAGS= -G -m32 -O2
UTILS_LDFLAGS= -m32 -O2
LIB_SONAME= -Wl,-h,
LD_RPATH= -Wl,-R,
LIB_SUFFIX= .so
LIB_PREFIX= lib
LIBS= -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=
CC_EXTRA_OPTS=
CPU= athlon
CFLAGS_RM=
CFLAGS= -g -O9 -funroll-loops -Wcast-align $(PROFILE) -m32 -minline-all-stringops
-falign-loops -mtune=$(CPU) $(CC_EXTRA_OPTS) -Wall
MOD_CFLAGS= -fPIC -DPIC $(CFLAGS)
LIB_CFLAGS= -fPIC -DPIC $(CFLAGS)
UTILS_CFLAGS= $(CFLAGS)
BASEDIR=
basedir= $(BASEDIR)
DESTDIR= $(LOCALBASE)
PREFIX= $(DESTDIR)
prefix= /opt/kamailio
cfg_prefix= $(basedir)$(prefix)
cfg_dir= etc/$(MAIN_NAME)/
bin_prefix= $(basedir)$(prefix)
bin_dir= sbin/
modules_prefix= $(basedir)$(prefix)
modules_dir= lib/$(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= lib/$(MAIN_NAME)/
cfg_target= $(prefix)/$(cfg_dir)
lib_target= $(prefix)/$(lib_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)