Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134498 - sci-libs/gdal-1.3.2 compile error: no match for 'operator=' in '((OGRILI2Layer*)this)->OGRILI2Layer::listFeatureIt = 0'
Summary: sci-libs/gdal-1.3.2 compile error: no match for 'operator=' in '((OGRILI2Laye...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-27 03:46 UTC by Matteo Spreafico
Modified: 2006-06-09 12:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc4 stl bug patch for gdal 1.3.2 (gdal-1.3.2-gcc4-stl.patch,1.92 KB, patch)
2006-06-08 15:09 UTC, Matthieu DESILE
Details | Diff
ebuild derived from original one to include gcc4 stl patch (gdal-1.3.2.ebuild,4.64 KB, text/plain)
2006-06-08 15:11 UTC, Matthieu DESILE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Spreafico 2006-05-27 03:46:14 UTC
cp ../o/.libs/ogrili2datasource.o ../o/ogrili2datasource.o
/bin/sh /var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/libtool --mode=compile x86_64-pc-linux-gnu-g++ -Wall  -march=athlon64 -O3 -ftracer -pipe -msse3   -I.. -I../.. -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/port -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/gcore -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/alg -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/ogr -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/ogr/ogrsf_frmts -I/usr/include -I/usr/include/xercesc -DHAVE_GEOS=1 -I/usr/include -DOGR_ENABLED -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/port  -c -o ../o/ogrili2layer.o ogrili2layer.cpp
 x86_64-pc-linux-gnu-g++ -Wall -march=athlon64 -O3 -ftracer -pipe -msse3 -I.. -I../.. -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/port -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/gcore -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/alg -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/ogr -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/ogr/ogrsf_frmts -I/usr/include -I/usr/include/xercesc -DHAVE_GEOS=1 -I/usr/include -DOGR_ENABLED -I/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/port -c ogrili2layer.cpp  -fPIC -DPIC -o ../o/.libs/ogrili2layer.o
ogrili2layer.cpp: In constructor 'OGRILI2Layer::OGRILI2Layer(const char*, OGRSpatialReference*, int, OGRwkbGeometryType, OGRILI2DataSource*)':
ogrili2layer.cpp:76: error: no match for 'operator=' in '((OGRILI2Layer*)this)->OGRILI2Layer::listFeatureIt = 0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/bits/stl_list.h:189: note: candidates are: std::_List_const_iterator<OGRFeature*>& std::_List_const_iterator<OGRFeature*>::operator=(const std::_List_const_iterator<OGRFeature*>&)
ogrili2layer.cpp: In member function 'virtual OGRFeature* OGRILI2Layer::GetNextFeature()':
ogrili2layer.cpp:135: error: no match for 'operator==' in '((OGRILI2Layer*)this)->OGRILI2Layer::listFeatureIt == 0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/bits/stl_list.h:251: note: candidates are: bool std::_List_const_iterator<_Tp>::operator==(const std::_List_const_iterator<_Tp>&) const [with _Tp = OGRFeature*]
make[3]: *** [../o/ogrili2layer.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/ogr/ogrsf_frmts/ili'
make[2]: *** [ili-target] Error 2
make[2]: Leaving directory `/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/ogr/ogrsf_frmts'
make[1]: *** [sublibs] Error 2
make[1]: Leaving directory `/var/tmp/portage/gdal-1.3.2/work/gdal-1.3.2/ogr'
make: *** [ogr-target] Error 2

!!! ERROR: sci-libs/gdal-1.3.2 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  gdal-1.3.2.ebuild, line 108:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.



Portage 2.1_rc2-r3 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r8-Teo x86_64)
=================================================================
System uname: 2.6.16-gentoo-r8-Teo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.0
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -ftracer -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/spool/PBS"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -ftracer -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache confcache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.ngi.it/ http://distfiles.gentoo.org"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages-p2"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acl acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts blas bzip2 caps cdparanoia cdr cli crypt ctype cups curl curlwrappers dba dbus dri dts dvd dvdr dvdread eds emboss encode esd exif expat ffmpeg fftw flac flash foomaticdb fortran ftp gcj gd gdbm gif gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imap imlib iodbc ipv6 isdnlog java javascript jpeg jpeg2k kde kdeenablefinal lapack lcms ldap libcaca libedit libgda lm_sensors lzw lzw-tiff mad mailwrapper matroska mbox mhash ming mng motif mp3 mpeg mysql ncurses netcdf nis nls nptl nsplugin odbc offensive ogg opengl pam pcntl pcre pdf pdflib perl php png posix postgres ppds pppd prelude python qt quicktime readline reflection samba sasl scanner sdl session simplexml slang slp smartcard sndfile snmp sockets socks5 speex spell spl sqlite ssl svg sysvipc szip tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis wmf xine xml xml2 xmlrpc xmms xorg xosd xpm xprint xsl xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_it userland_GNU video_cards_nvidia video_cards_vesa video_cards_vga video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steve Arnold archtester gentoo-dev 2006-05-27 10:42:21 UTC
Please try it again with less studly CFLAGS, ie, something more like:

"march=...  -O2 -pipe"

and see if it still fails (and post the results).  In general, it's better IMHO to let the compiler figure out how best to optimize; many issues go away with less aggresive CFLAGS.  I'll also run it by the gdal author when I see him.
Comment 2 Matteo Spreafico 2006-05-27 13:36:47 UTC
I've got the same error with "-O2 -pipe"

I tryed gcc 3.4.6 and it works, it seems a problem with gcc 4.
Comment 3 Matthieu DESILE 2006-06-08 15:09:20 UTC
Created attachment 88720 [details, diff]
gcc4 stl bug patch for gdal 1.3.2
Comment 4 Matthieu DESILE 2006-06-08 15:11:20 UTC
Created attachment 88721 [details]
ebuild derived from original one to include gcc4 stl patch

this ebuild goes with the gcc4-stl patch which fix this bus.
The patch comes from cvs version of gdal
Comment 5 Matthieu DESILE 2006-06-08 15:16:03 UTC
(In reply to comment #3)
> Created an attachment (id=88720) [edit]
> gcc4 stl bug patch for gdal 1.3.2
> 

Oups !

First patch proposed and it seems I did wrong...

This patch for gdal fixes the bug here described, it comes from the CVS version (2006/06/08, revision 1.5 of ogr/ogrsf_frmts/ili/ogrili2layer.cpp).

The second file I submit is a modified ebuild to use this patch.


Comment 6 Steve Arnold archtester gentoo-dev 2006-06-09 12:40:56 UTC
Updated and in portage; thanks...