Opened 12 years ago

Closed 12 years ago

Last modified 20 months ago

#3890 closed defect (fixed)

GCC 4.x versions not detected by configure script

Reported by: SF/guilt Owned by: lordhoto
Priority: normal Component: Port: Linux
Keywords: Cc:
Game:

Description

Hi,

My gcc-version is 4.3 and it fails to autodetect it in configure.

Attached is a diff which fixes it.

Ticket imported from: #2062926. Ticket imported from: bugs/3890.

Attachments (1)

configure-gcc.diff (569 bytes ) - added by SF/guilt 12 years ago.
diff for gcc-4.x releases

Download all attachments as: .zip

Change History (9)

by SF/guilt, 12 years ago

Attachment: configure-gcc.diff added

diff for gcc-4.x releases

comment:1 by lordhoto, 12 years ago

Owner: set to lordhoto
Resolution: fixed
Status: newclosed

comment:2 by lordhoto, 12 years ago

Thanks for repoting, committed patch as is.

comment:3 by fingolfin, 12 years ago

Owner: lordhoto removed
Resolution: fixed
Status: closednew

comment:4 by fingolfin, 12 years ago

Interesting. So what does "gcc -v" output, exactly?

comment:5 by SF/guilt, 12 years ago

karthik@zeus:~/WS/scummvm/scummvm-devel> g++ -dumpversion 4.3

^^ that is used in our configure script. for g++ -v:

karthik@zeus:~/WS/scummvm/scummvm-devel> g++ -v Using built-in specs. Target: i586-suse-linux Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.3 --enable-version-specific-runtime-libs --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=i586-suse-linux Thread model: posix gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux)

comment:6 by fingolfin, 12 years ago

Thanks for the info, it's always better to know exactly why a fix is needed/works, hence my question for background detail.

comment:7 by fingolfin, 12 years ago

Owner: set to lordhoto
Resolution: fixed
Status: newclosed

comment:8 by digitall, 20 months ago

Component: Port: Linux
Note: See TracTickets for help on using tickets.