[OpenSIPS-Devel] [ opensips-Patches-2057681 ] Building with gcc version 3.3-

SourceForge.net noreply at sourceforge.net
Thu Aug 21 11:53:20 CEST 2008


Patches item #2057681, was opened at 2008-08-18 17:37
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2057681&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: 1.4.x
Status: Open
>Resolution: None
Priority: 5
Private: No
Submitted By: Giovanni Coriasco (gcoriasco)
>Assigned to: Nobody/Anonymous (nobody)
Summary: Building with gcc version 3.3-

Initial Comment:
Hi

When building OpenSIPS with gcc 3.x prior to version 3.4, the -mtune gcc option is used, but this option has been introduced only in gcc version 3.4: here is a link to a forum describing this

http://sourceware.org/ml/libc-hacker/2005-03/msg00010.html

I have modified Makefile.defs to correct this problem.

Giovanni

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

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2008-08-21 12:53

Message:
Logged In: YES 
user_id=1275325
Originator: NO

Hi Giovanni,

Note that the tarballs were not updated, so please use the SVN trunk.

I found the problem - may mistake - I forgot the '-' for the gcc options
:(....It should be fixed now.

Thanks and regards,
Bogdan

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

Comment By: Giovanni Coriasco (gcoriasco)
Date: 2008-08-20 21:05

Message:
Logged In: YES 
user_id=2002223
Originator: YES

Hi,

I tried your patch (on a fresh just downloaded opensips-1.4.1 tarball) but
I'm getting this error:

bison -d -b cfg cfg.y
cfg.y contains 1 shift/reduce conflict.
flex cfg.lex
Compiling action.c
gcc  -g -O9 -funroll-loops  -Wcast-align  -Wall  -minline-all-stringops
-falign-loops mcpu=pentium4     -DNAME='"opensips"'
-DVERSION='"1.5.0dev0-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 3.3.6"' -D__CPU_i386 -D__OS_linux -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  -DFAST_LOCK
-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2
-DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL
-DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SIGIO_RT
-DHAVE_SELECT -c action.c -o action.o
gcc: cannot specify -o with -c or -S and multiple compilations
make: *** [action.o] Error 1

I also got the full trunk from SVN but I'm getting the SAME error

Regards,
Giovanni


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

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2008-08-20 20:20

Message:
Logged In: YES 
user_id=1275325
Originator: NO

Hi Giovanni,

Thanks for the report and fix . I applied on SVN trunk a fix (rev 4625) a
bit different than your patch (a less intrusive change based on CC_SHORTVER
variable). Could you please test and let me know if ok? Then I will do the
backport to 1.4.x

Regards,
Bogdan 

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

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



More information about the Devel mailing list