[Asterisk-Dev] Re: [Dev] opteron anyone ?
Reinhard Max
max at suse.de
Tue Oct 7 08:39:26 MST 2003
On Tue, 7 Oct 2003 at 12:46, Peter Nixon wrote:
> On Tue October 7 2003 12:19, Michael Bielicki wrote:
> > Did anybody tried to get * and zaptel running on a opteron server in 64bit
> > mode ? With the prices falling in some really neat regions this seems to be
> > a nice piece of equippment for heavy codec calculations :)
>
> I also would be very interested in seeing if Asterisk works on AMD-64.
It took me just 10 minutes and a few trivial tweaks (attached) to make
Asterisk compile on SuSE Linux 9.0 for AMD64.
After getting "make rpm" working as well, and installing the package,
Asterisk started without any flaws, but I haven't done any further
testing yet.
cu
Reinhard
-------------- next part --------------
? asterisk-amd64.patch
Index: frame.c
===================================================================
RCS file: /usr/cvsroot/asterisk/frame.c,v
retrieving revision 1.8
diff -u -r1.8 frame.c
--- frame.c 5 Oct 2003 22:17:32 -0000 1.8
+++ frame.c 7 Oct 2003 15:08:58 -0000
@@ -455,8 +455,8 @@
return RESULT_SHOWUSAGE;
if (getenv("I_AM_NOT_AN_IDIOT") == NULL)
- ast_cli(fd, "Disclaimer: this command is for informational purposes
-only.\n\tIt does not indicate anything about your configuration.\n");
+ ast_cli(fd, "Disclaimer: this command is for informational purposes only.\n"
+ "\tIt does not indicate anything about your configuration.\n");
if ((argc == 2) || (!strcasecmp(argv[1],"audio"))) {
found = 1;
Index: codecs/gsm/Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/gsm/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- codecs/gsm/Makefile 27 Sep 2003 02:45:37 -0000 1.5
+++ codecs/gsm/Makefile 7 Oct 2003 15:08:58 -0000
@@ -54,7 +54,7 @@
# CC = /usr/lang/acc
# CCFLAGS = -c -O
-CC = gcc $(OPTIMIZE) -march=$(PROC) -fomit-frame-pointer
+CC = gcc $(OPTIMIZE) -fomit-frame-pointer
CCFLAGS += -c -DNeedFunctionPrototypes=1 -funroll-loops -fPIC
LD = $(CC)
@@ -190,7 +190,7 @@
$(SRC)/short_term.c \
$(SRC)/table.c
ifneq (${OSARCH},OpenBSD)
-GSM_SOURCES+= $(SRC)/k6opt.s
+#GSM_SOURCES+= $(SRC)/k6opt.s
endif
TOAST_SOURCES = $(SRC)/toast.c \
@@ -237,7 +237,7 @@
$(SRC)/short_term.o \
$(SRC)/table.o
ifneq (${OSARCH},OpenBSD)
-GSM_OBJECTS+= $(SRC)/k6opt.o
+#GSM_OBJECTS+= $(SRC)/k6opt.o
endif
TOAST_OBJECTS = $(SRC)/toast.o \
Index: codecs/gsm/inc/private.h
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/gsm/inc/private.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 private.h
--- codecs/gsm/inc/private.h 12 Feb 2003 13:59:14 -0000 1.1.1.1
+++ codecs/gsm/inc/private.h 7 Oct 2003 15:08:59 -0000
@@ -98,7 +98,7 @@
# define GSM_L_MULT(a, b) /* word a, word b */ \
(((longword)(a) * (longword)(b)) << 1)
-#if defined(__GNUC__) && defined(__i386__)
+#if defined(__GNUC__) && ( defined(__i386__) || defined(__x86_64__) )
static __inline__ int GSM_L_ADD(int a, int b)
{
Index: codecs/lpc10/Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/lpc10/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- codecs/lpc10/Makefile 27 Apr 2003 18:13:11 -0000 1.3
+++ codecs/lpc10/Makefile 7 Oct 2003 15:08:59 -0000
@@ -27,7 +27,7 @@
#fix for PPC processors
ifneq ($(PROC),ppc)
- CFLAGS+= -march=$(PROC)
+ CFLAGS+=
endif
LIB = $(LIB_TARGET_DIR)/liblpc10.a
Index: codecs/mp3/Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/mp3/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- codecs/mp3/Makefile 27 Sep 2003 02:45:37 -0000 1.3
+++ codecs/mp3/Makefile 7 Oct 2003 15:08:59 -0000
@@ -1,7 +1,7 @@
#
# LMC section
-CFLAGS+= -I../include -Iinclude -O3 -march=$(PROC) -funroll-loops -Wall -Wno-missing-prototypes -Wno-missing-declarations -g -fPIC
+CFLAGS+= -I../include -Iinclude -O3 -funroll-loops -Wall -Wno-missing-prototypes -Wno-missing-declarations -g -fPIC
RANLIB=ranlib
# the XING decoder objs and dependencies:
More information about the asterisk-dev
mailing list