[OpenSIPS-Devel] [ opensips-Bugs-2911660 ] OpenSIPS fails to compile on OSX

SourceForge.net noreply at sourceforge.net
Fri Dec 11 10:19:13 CET 2009


Bugs item #2911660, was opened at 2009-12-09 23:59
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2911660&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: packaging
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Norm Brandinger (norm_brandinger)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: OpenSIPS fails to compile on OSX

Initial Comment:
Trying to MAKE OpenSIPS on OSX (Snow Leopard)
MacBookPro Intel Core 2 Duo
Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 i386

Produces the following:

yacc -d -b cfg cfg.y
conflicts: 1 shift/reduce
flex cfg.lex
New SVN revision: 2:6382
Compiling action.c
gcc  -g -O9 -funroll-loops  -Wcast-align  -Wall  -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls     -DNAME='"opensips"' -DVERSION='"1.6.1-notls"' -DARCH='"i386"' -DOS='"darwin"' -DCOMPILER='"gcc 4.2.1"' -D__CPU_i386 -D__OS_darwin -D__SMP_no -DCFG_DIR='"/usr/local/etc/opensips/"' -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC  -DSVNREVISION='"2:6382"'  -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL -DUSE_ANON_MMAP -DNDEBUG -DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_KQUEUE -DHAVE_SELECT -c action.c -o action.o
action.c:1: error: CPU you selected does not support x86-64 instruction set
make: *** [action.o] Error 1

The attached patch corrects this problem.

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2009-12-11 11:19

Message:
the patch is a bit to intrusive - you downgrade the CPU tuning for all i386
like arch.

What does "uname -m" returns on your machine?

Thanks and regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2911660&group_id=232389



More information about the Devel mailing list