Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111688 - error compiling sci-libs/gdal-1.2.6-r4
Summary: error compiling sci-libs/gdal-1.2.6-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-06 05:47 UTC by Florian Konnertz
Modified: 2005-12-03 13:15 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Konnertz 2005-11-06 05:47:28 UTC
make[3]: *** [../o/ogrsqlitedatasource.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gdal-1.2.6-r4/work/gdal-1.2.6/ogr/ogrsf_frmts/sqlite'
make[2]: *** [sqlite-target] Error 2
make[2]: Leaving directory
`/var/tmp/portage/gdal-1.2.6-r4/work/gdal-1.2.6/ogr/ogrsf_frmts'
make[1]: *** [sublibs] Error 2
make[1]: Leaving directory `/var/tmp/portage/gdal-1.2.6-r4/work/gdal-1.2.6/ogr'
make: *** [ogr-target] Error 2

!!! ERROR: sci-libs/gdal-1.2.6-r4 failed.
!!! Function src_compile, Line 106, Exitcode 2


Reproducible: Always
Steps to Reproduce:
1.export USE="-debug +doc -fits +geos +gif +gml -grass +hdf +jasper +jpeg +mysql
+netcdf +odbc +ogdi +png +postgres +python +sqlite"
2.emerge sci/libs/gdal/gdal-1.2.6-r4
3.

Actual Results:  
Emerging sci-libs/gdal-1.2.6-r4 with the following USE-flags: -debug +doc -fits
+geos +gif +gml -grass +hdf +jasper +jpeg +mysql +netcdf +odbc +ogdi +png
+postgres +python +sqlite 

results in this error:


In file included from ogrsqlitedatasource.cpp:50:
ogr_sqlite.h:56:21: sqlite3.h: No such file or directory
In file included from ogrsqlitedatasource.cpp:50:
ogr_sqlite.h:75: error: syntax error before `*' token
ogr_sqlite.h:85: error: type specifier omitted for parameter `sqlite3_stmt'
ogr_sqlite.h:85: error: syntax error before `*' token
ogr_sqlite.h:105: error: ISO C++ forbids declaration of `sqlite3_stmt' with no
   type
ogr_sqlite.h:105: error: `sqlite3_stmt' declared as a `virtual' field
ogr_sqlite.h:105: error: syntax error before `*' token
ogr_sqlite.h:107: error: ISO C++ forbids defining types within return type
ogr_sqlite.h:107: error: syntax error before `(' token
ogr_sqlite.h:108: error: virtual outside class declaration
ogr_sqlite.h:109: error: virtual outside class declaration
ogr_sqlite.h:110: error: syntax error before `}' token
ogr_sqlite.h:130: error: ISO C++ forbids declaration of `sqlite3_stmt' with no
   type
ogr_sqlite.h:130: error: `sqlite3_stmt' declared as a `virtual' field
ogr_sqlite.h:130: error: syntax error before `*' token
ogr_sqlite.h:163: error: type specifier omitted for parameter `sqlite3_stmt'
ogr_sqlite.h:163: error: syntax error before `*' token
ogr_sqlite.h:188: error: syntax error before `*' token
ogr_sqlite.h:230: error: syntax error before `*' token
ogr_sqlite.h:232: error: semicolon missing after declaration of `
   OGRSQLiteDataSource'
ogr_sqlite.h:232: error: extraneous `char' ignored
ogr_sqlite.h:233: error: syntax error before `}' token
ogrsqlitedatasource.cpp: In destructor `virtual
   OGRSQLiteDataSource::~OGRSQLiteDataSource()':
ogrsqlitedatasource.cpp:97: error: `hDB' undeclared (first use this function)
ogrsqlitedatasource.cpp:97: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
ogrsqlitedatasource.cpp:98: error: `sqlite3_close' undeclared (first use this
   function)
ogrsqlitedatasource.cpp: In member function `int
   OGRSQLiteDataSource::Open(const char*)':
ogrsqlitedatasource.cpp:121: error: `sqlite3_open' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:122: error: `SQLITE_OK' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:126: error: `sqlite3_errmsg' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:173: error: `sqlite3_get_table' undeclared (first use
   this function)
ogrsqlitedatasource.cpp:180: error: `sqlite3_free' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:189: error: `sqlite3_free_table' undeclared (first use
   this function)
ogrsqlitedatasource.cpp: In member function `virtual OGRLayer*
   OGRSQLiteDataSource::ExecuteSQL(const char*, OGRGeometry*, const char*)':
ogrsqlitedatasource.cpp:283: error: `sqlite3_stmt' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:283: error: `hSQLStmt' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:285: error: `GetDB' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:286: error: `sqlite3_prepare' undeclared (first use
   this function)
ogrsqlitedatasource.cpp:291: error: `sqlite3_finalize' undeclared (first use
   this function)
ogrsqlitedatasource.cpp:299: error: `sqlite3_step' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:300: error: `SQLITE_ROW' undeclared (first use this
   function)
ogrsqlitedatasource.cpp: In member function `virtual OGRLayer*
   OGRSQLiteDataSource::CreateLayer(const char*, OGRSpatialReference*,
   OGRwkbGeometryType, char**)':
ogrsqlitedatasource.cpp:344: error: cannot convert `OGRSQLiteDataSource*' to `
   char*' in assignment
ogrsqlitedatasource.cpp:411: error: `sqlite3_exec' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:417: error: `sqlite3_free' undeclared (first use this
   function)
ogrsqlitedatasource.cpp: At global scope:
ogrsqlitedatasource.cpp:535: error: no `char*
   OGRSQLiteDataSource::LaunderName(const char*)' member function declared in
   class `OGRSQLiteDataSource'
ogrsqlitedatasource.cpp: In member function `virtual void
   OGRSQLiteDataSource::DeleteLayer(const char*)':
ogrsqlitedatasource.cpp:593: error: `sqlite3_exec' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:599: error: `sqlite3_free' undeclared (first use this
   function)
ogrsqlitedatasource.cpp: In member function `OGRErr
   OGRSQLiteDataSource::SoftStartTransaction()':
ogrsqlitedatasource.cpp:625: error: `sqlite3_exec' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:632: error: `sqlite3_free' undeclared (first use this
   function)
ogrsqlitedatasource.cpp: In member function `OGRErr
   OGRSQLiteDataSource::SoftCommit()':
ogrsqlitedatasource.cpp:664: error: `sqlite3_exec' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:670: error: `sqlite3_free' undeclared (first use this
   function)
ogrsqlitedatasource.cpp: In member function `OGRErr
   OGRSQLiteDataSource::SoftRollback()':
ogrsqlitedatasource.cpp:700: error: `sqlite3_exec' undeclared (first use this
   function)
ogrsqlitedatasource.cpp:706: error: `sqlite3_free' undeclared (first use this
   function)
make[3]: *** [../o/ogrsqlitedatasource.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gdal-1.2.6-r4/work/gdal-1.2.6/ogr/ogrsf_frmts/sqlite'
make[2]: *** [sqlite-target] Error 2
make[2]: Leaving directory
`/var/tmp/portage/gdal-1.2.6-r4/work/gdal-1.2.6/ogr/ogrsf_frmts'
make[1]: *** [sublibs] Error 2
make[1]: Leaving directory `/var/tmp/portage/gdal-1.2.6-r4/work/gdal-1.2.6/ogr'
make: *** [ogr-target] Error 2

!!! ERROR: sci-libs/gdal-1.2.6-r4 failed.
!!! Function src_compile, Line 106, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

groovemaster portage # USE="-grass" emerge sci-libs/gdal/ -pv

These are the packages that I would merge, in order:


Expected Results:  
emerge gdal successfully

groovemaster portage # emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/fstab /etc/group /etc/passwd /etc/sane.d/snapscan.conf
/etc/shadow /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11 /etc/gconf /etc/kde /etc/sane.d /etc/terminfo
/etc/viewcvs /usr/kde /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.eliteitminds.com"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3ds X X509 aalib abook acl acpi ada aim alsa altcolors amarok amr
amuled apache2 apm applet ares arts artworkextra async audiofile avalon avantgo
avi bash-completion berkdb bidi bind-mysql bitmap-fonts bl blender-game cardbus
cdda cddb cdio cdparanoia cdr cdrom cgi chipcard chroot cjk clamav clamd clisp
cpudetection crypt cscope css csv ctype cups curl curlwrappers custom-cflags
customlog cvsgraph db2 dba dbase dbm dbmaker dbus dbx dhcp doc dpms dvb dvd dvdr
dvdread eds emacs emboss emoticon encode esd evo evo2 examples exif expat
extraengine extraicons extramodules fam fame fastcgi fax faxonly festival ffmpeg
fftw flac flash flatfile font-server foomaticdb fortran fpx frontbase ftp gb gd
gdbm geoip geometry geos gg gif gimp gimpprint ginac gmail gmailtimestamps gml
gmp gmtfull gmthigh gmtsuppl gmttria gnokii gnome gnome-print gnomedb gnuplot
gnustep gpm gps graphviz grass gs gsm gstreamer gtk guile haskell hbci hdf hdf5
hlapi html http httpd hub hyperwave-api icecast icon icq id3 idea image
imagekits imagemagick imap imlib innodb iodbc ipv6 irc itcl j2ee jabber jack
jasper java javacomm javadoc javascript jboss joystick jp2 jpeg jpeg2k kcal kde
kdeenablefinal kdepim kdexdeltas kerberos kig-scripting koffice-plugin ladcca
ladspa lame latex lcd lcms ldap libcaca libclamav libdsk libg++ libgda
libsamplerate libvisual libwww lingerd live lj logrotate lzw mad mail
mailwrapper mapeditor maps math matroska mbox mccp md5sum mdb memlimit mhash
mikmod milter mime mimencode ming mixer mjpeg mmap mng mod mod_irc motif
mozcalendar mozdevelop mozilla mozp3p mozsvg mp3 mpeg mpeg2 mpeg4 mpi mplayer
msn msql multislot musepack music mysql mysqli mythtv nagios-game nagios-ntp
nagios-ping nagios-ssh ncurses net netbeans netcdf network nfs nis nls nntp ntlm
numarray numeric oav objc ocaml oci8 odbc ode ofx ogdi ogg oggvorbis ogre openal
openexr opengl openntpd openssh openssl oracle oracle7 osc oscar oss pam pango
parse-clocks passfile password patented pcre pda pdf pdfkit pdflib perforce perl
pg-hier php physfs player plotutils plugin png pnp postgres ppds print procmail
profile pvm python qdbm qhull qmail qt quicktime quotas quotes rar rdesktop
readline real reiserfs remix remote rhythmbox rogue rrdtool rsh rss rtc ruby
samba sample sapdb sbcl scanner screen sdl sendfile sendmail sensord server
session seti sftplogging sharedext sharedmem shorten silc simplexml slp
smartcard sms sndfile snmp soap sockets softfax sounds sox spamassassin speech
spell spl sql sqlite sqlite3 ssl stats stream streamzap stroke subtitles
subversion svg svgz sysvipc tcltk tcpd tetex thumbnail tidy tiff timidity
tokenizer transcode translator truetype truetype-fonts type1-fonts udev
underscores unicode usb usepackagedmakefiles utf8 v4l v4l2 vcd vcdimager vhosts
videos vidix vim vim-pager vim-with-x virus-scan visualization vlm vmdbmysql
voice vorbis web webdav wifi win32codecs winbind wmf wsconvert wxwindows xanim
xchatdccserver xforms xine xinerama xml xml2 xmlrpc xmms xscreensaver xv xvid
xvmc yahoo yaz yp yv12 zeo zlib zvbi linguas_de userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Steve Arnold archtester gentoo-dev 2005-12-03 13:15:21 UTC
Fixed in portage...