[OpenSIPS-Devel] Fwd: " . . using an old or unsupported gcc version . . "

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Oct 14 13:54:38 CEST 2008


Hi Darren,

Do you have idea how backward compatible is this "dumpversion" option 
for gcc?

Regards,
Bogdan

Darren Sessions wrote:
> Having the same problem with OpenSIPS and gcc versioning. See proposed 
> patch below.
>
> - Darren
>
> _____________________________
>
> Darren Sessions
> dmsessions at gmail.com <mailto:dmsessions at gmail.com>
> http://www.darrensessions.com
> _____________________________
>
>
> Begin forwarded message:
>
>> 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
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>   




More information about the Devel mailing list