[Asterisk-Dev] [CVS] [PATCH] asterisk on sparc32 system

Arnaud Ligot spyroux at spyroux.be
Sat Jul 23 04:53:00 MST 2005


Hi,

I just succeed to run the echo test on an sarge system using an IAX
channel. I'll describe on this mail the problem and some solutions...

My system is a dual HyperSparc-II (75Mhz, sparc32) based system. It's
running a Debian Sarge.

I try first to use the debian package (1.0.7) but when I call my
asterisk server, it crash in the iax-parser.c. I check the CVS and I see
some correction in the CVS version in the file, so I compile the CVS
version on my sparc. I got some problems in makefiles : 

* in asterisk/Makefile :
	`make include/asterisk/version.h` didn't stop. it makes .depend
include/asterisk/version.h .depend include/asterisk/version.h .depend
include/asterisk/version.h .depend include/asterisk/version.h .depend
include/asterisk/version.h .depend include/asterisk/version.h ....

---- KNIP --------------------
RCS file: /usr/cvsroot/asterisk/Makefile,v
retrieving revision 1.186
diff -r1.186 Makefile
798,799c798,799
<       build_tools/mkdep ${CFLAGS} $(filter-out ast_expr.c,$(wildcard
*.c))
<       build_tools/mkdep -a -d ${CFLAGS} ast_expr.c
---
> #     build_tools/mkdep ${CFLAGS} $(filter-out ast_expr.c,$(wildcard
*.c))
> #     build_tools/mkdep -a -d ${CFLAGS} ast_expr.c
---- KNIP --------------------
	

* in asterisk/channels/Makefile
	I had to disable the zaptel compilation

---- KNIP --------------------
RCS file: /usr/cvsroot/asterisk/channels/Makefile,v
retrieving revision 1.70 
diff -r1.70 Makefile     
97,98c97,98              
< CHANNEL_LIBS+=$(shell [ -f $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h ] && echo "chan_zap.so")
< CHANNEL_LIBS+=$(shell [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h ] && echo "chan_zap.so")
---
> #CHANNEL_LIBS+=$(shell [ -f $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h ] && echo "chan_zap.so")
> #CHANNEL_LIBS+=$(shell [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h ] && echo "chan_zap.so")
---- KNIP --------------------


* in asterisk/codecs/gsm/Makefile :
	add some lines about the sparc32 processor in order to disable some gcc
optimisation (first modification) and to disable k6opcode
---- KNIP --------------------
RCS file: /usr/cvsroot/asterisk/codecs/gsm/Makefile,v
retrieving revision 1.25
diff -r1.25 Makefile
47a48
> ifneq (${PROC},sparc)
64a66
> endif
233a236
> ifneq ($(shell uname -m),sparc)
243a247
> endif
295a300
> ifneq ($(shell uname -m),sparc)
296a302
> endif
---- KNIP --------------------


now, get a _nearly_ stable asterisk system I'll try to debug other
problems.

thanks,

Arnaud
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20050723/451d3014/attachment.pgp


More information about the asterisk-dev mailing list