[Kamailio-Devel] " . . using an old or unsupported gcc version . . "

Darren Sessions dmsessions at gmail.com
Fri Aug 1 00:03:50 CEST 2008


This is my first attempt at compiling Kamailio on an OpenSUSE 11  
server. The code does compile, but with zero optimizations and a  
warning. Upon further investigation, it appears that gcc >4.3 allows  
it itself to be compiled with a 'pkgversion' argument that essentially  
allows anything to be reported in the gcc versioning scheme.


ss1:/src/openser-1.3.2-notls # make
Makefile.defs:664: You are using an old and unsupported gcc version   
(Linux)), compile at your own risk!

<snip>

ss1:/src/openser-1.3.2-notls # gcc --version
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision  
135036]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.


--

Makefile.deps line 293:
         CC_CLASS=$(shell echo "$(CC_SHORTVER)" | \
                                  sed -e 's/2\.9.*/2.9x/' -e 's/3\. 
[0-9]/3.x/' \
                                  -e 's/4\.[0-9]/4.x/')

Might I suggest the following replacement in Makefile.deps:

         CC_CLASS=$(shell gcc -dumpversion | \
                                  sed -e 's/2\.9.*/2.9x/' -e 's/3\. 
[0-9]/3.x/' \
                                  -e 's/4\.[0-9]/4.x/')


I would have submitted a patch, but I have thus far never worked on a  
'project' and haven't really a clue as to how I would go about it.

Thanks,

  - Darren



_____________________________

dmsessions at gmail.com
http://www.darrensessions.com
http://www.linkedin.com/in/dsessions
_____________________________



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/devel/attachments/20080731/be9d7037/attachment.htm 


More information about the Devel mailing list