[mythtv-commits] Ticket #5618: configure error with gcc 4.3.1 on Gentoo

MythTV mythtv at cvs.mythtv.org
Thu Aug 14 07:33:03 UTC 2008

#5618: configure error with gcc 4.3.1 on Gentoo
 Reporter:  mythdev at telfort.nl  |        Owner:  ijr    
     Type:  defect              |       Status:  closed 
 Priority:  minor               |    Milestone:  unknown
Component:  mythtv              |      Version:  unknown
 Severity:  medium              |   Resolution:  fixed  
  Mlocked:  0                   |  

Comment(by mythdev at telfort.nl):

 The committed fix does not work for localized gcc builds.

 Localized gcc builds report something like:

 $ gcc -v
 Ingebouwde specs worden gebruikt.
 Target: i686-pc-linux-gnu
 Configured with: /var/tmp/portage/sys-
 devel/gcc-4.3.1-r1/work/gcc-4.3.1/configure --prefix=/usr
 --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1 --mandir=/usr/share
 /gcc-data/i686-pc-linux-gnu/4.3.1/man --infodir=/usr/share/gcc-data/i686
 -pc-linux-gnu/4.3.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-
 linux-gnu/4.3.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-
 linux-gnu --disable-altivec --enable-nls --without-included-gettext
 --with-system-zlib --disable-checking --disable-werror --enable-secureplt
 --disable-multilib --enable-libmudflap --disable-libssp --enable-cld
 --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang
 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-
 clocale=gnu --with-pkgversion='Gentoo 4.3.1-r1 p1.1'
 Thread model: posix
 gcc versie 4.3.1 (Gentoo 4.3.1-r1 p1.1)

 Therefore it is better to use "gcc -dumpversion":
 $ gcc -dumpversion

 Index: configure
 --- configure   (revision 18155)
 +++ configure   (working copy)
 @@ -2622,7 +2622,7 @@
  check_ldflags $LDLATEFLAGS

  # GCC version
 -gcc_version=$($cc -v 2>&1 | grep "^gcc version" | cut -s -d' ' -f 3)
 +gcc_version=$($cc -dumpversion 2>&1)
  GCC_MAJOR=$(echo ${gcc_version} | cut -s -d'.' -f1)
  GCC_MINOR=$(echo ${gcc_version} | cut -s -d'.' -f2)

Ticket URL: <http://svn.mythtv.org/trac/ticket/5618#comment:2>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list