Thanks ...
I have Sun,Ultra2 Machine.....
Here is the version Info
home/jitender % version
Machine hardware: sun4u
OS version: 5.7
Processor type: sparc
Hardware: SUNW,Ultra-2
Now the SER is build o.k , but i am not able to build other modules as
during the Linking Time , i get some errors ,
that it is not able to find some symbos , which are being used
e.g :
gmake[1]: Entering directory `/home/jitender/sip_router/modules/sms'
gmake[1]: Leaving directory `/home/jitender/sip_router/modules/sms'
Undefined first referenced
symbol in file
mem_lock sms.o
parse_content_type_hdr sms_funcs.o
dprint libsms_getsms.o
parse_uri sms_funcs.o
mem_block sms.o
get_ticks sms_report.o
parse_headers sms_funcs.o
parse_from_header sms_funcs.o
main
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/
3.3/crt1.o
shm_block sms.o
log_stderr libsms_getsms.o
sock_info sms.o
qm_malloc sms.o
find_export sms.o
qm_free sms.o
debug libsms_getsms.o
Regards,
Jitender
-----Original Message-----
From: Andrei Pelinescu-Onciul
[mailto:pelinescu-onciul@fokus.fraunhofer.de]
Sent: Friday, August 22, 2003 9:38 AM
To: Jitender Arora; 'serusers(a)lists.iptel.org'
Subject: Re: [Serusers] Latest STABLE build without using CVS
On Aug 22, 2003 at 12:46, Andrei Pelinescu-Onciul
<pelinescu-onciul(a)fokus.fraunhofer.de> wrote:
On Aug 21, 2003 at 21:35, Nils Ohlmeier
<nils(a)iptel.org> wrote:
> On Thursday 21 August 2003 21:13, Jitender Arora wrote:
> > Hi ,
> >
> > I installed the gcc version 3.3 on the SUN machine ( running OS
> > version 5.7 ) ...
> >
> > But still when i try to compile the SER , i get the following
errors
> >
> >
> > /usr/local/bin/gcc -DNAME='"ser"'
-DVERSION='"0.8.11rc3"'
> > -DARCH='"_sun4_5.
> > 3"' -DOS='"solaris"'
-DCOMPILER='"/usr/local/bin/gcc 3.3"'
> > -D__CPU__sun4_5.3 -D_
> > _OS_solaris -DCFG_DIR='"/etc/ser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP
> > -DADAPTIV
> > E_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DDNS_IP_HACK -DUSE_IPV6 -DUSE_TCP
> > -DDISABLE_N
> > AGLE -DDBG_QM_MALLOC -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H
> > -DHAVE_SCHED_YI
> > ELD -DUSE_PTHREAD_MUTEX -c action.c -o action.o
> > <command line>:15:14: warning: ISO C requires whitespace after the
macro
> > name
> > In file included from parser/msg_parser.h:48,
> > from action.h:33,
> > from action.c:42:
> > ip_addr.h:75: error: field `sin6' has incomplete type
> > ip_addr.h: In function `sockaddr2ip_addr':
> > ip_addr.h:201: error: `AF_INET6' undeclared (first use in this
function)
> > ip_addr.h:201: error: (Each undeclared
identifier is reported only
once
> > ip_addr.h:201: error: for each function it
appears in.)
> > ip_addr.h:204: error: dereferencing pointer to incomplete type
> > ip_addr.h: In function `su_cmp':
> > ip_addr.h:231: error: `AF_INET6' undeclared (first use in this
function)
> > ip_addr.h: In function `su_getport':
> > ip_addr.h:251: error: `AF_INET6' undeclared (first use in this
function)
> > ip_addr.h: In function `su_setport':
> > ip_addr.h:271: error: `AF_INET6' undeclared (first use in this
function)
> > ip_addr.h: In function `su2ip_addr':
> > ip_addr.h:293: error: `AF_INET6' undeclared (first use in this
function)
> > ip_addr.h: In function `init_su':
> > ip_addr.h:320: error: `AF_INET6' undeclared (first use in this
function)
> > ip_addr.h: In function `hostent2su':
> > ip_addr.h:357: error: `AF_INET6' undeclared (first use in this
function)
> > ip_addr.h: In function `ip_addr2a':
> > ip_addr.h:402: error: `AF_INET6' undeclared (first use in this
function)
> > gmake: *** [action.o] Error 1
> >
> > Can any one know that how these can be resolved ....
>
> Seems like your system is not ready for IPv6. Maybe it helps if you try
to
compile Ser
without support for IPv6 (remove or comment the line in
Makefile.defs which contains DUSE_IPV6).
Note also that your cpu arhitecture is not recognized by the ser
Makefile: -D__CPU__sun4_5.3. This means you will have generic solaris
support and no sparc64 optimizations (like faster locking etc.). What
type of sun machine do you have? Is it an ultrasparc?
An workarround for this(if you have an ultrasparc cpu) would be adding
to make command line ARCH=sparc64:
make ARCH=sparc64 OS=solaris [....]
This will override the arch/os detected by make.
Andrei