First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 100294
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Steve Arnold <nerdboy@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sascha Silbe <sascha-gentoo-bugzilla@silbe.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 100294 depends on: Show dependency tree
Show dependency graph
Bug 100294 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-25 14:39 0000
I've updated sci-libs/gdal to 1.2.6 and tried to update sci-geosciences/grass
to 6.0.0-r1 (because I've hit bug #25537), but it won't compile.


Reproducible: Always
Steps to Reproduce:
1. emerge -v grass

Actual Results:  
root@caravan:~# emerge -v grass
Calculating dependencies ...done!
>>> emerge (1 of 1) sci-geosciences/grass-6.0.0-r1 to /
>>> md5 files   ;-) grass-5.0.2.ebuild
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) grass-6.0.0-r1.ebuild
>>> md5 files   ;-) grass-5.0.3.ebuild
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) files/digest-grass-6.0.0-r1
>>> md5 files   ;-) files/digest-grass-5.0.2
>>> md5 files   ;-) files/digest-grass-5.0.3
>>> md5 files   ;-) files/99grass-6
>>> md5 src_uri ;-) grass-6.0.0.tar.gz
>>> Unpacking source...
>>> Unpacking grass-6.0.0.tar.gz to /var/tmp/portage/grass-6.0.0-r1/work
 * Applying grass-readline.patch ...                                           
                                        [ ok ]
>>> Source unpacked.
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -O3 -march=athlon-xp -pipe
-fomit-frame-pointer ) works... yes
checking whether the C compiler (gcc -O3 -march=athlon-xp -pipe
-fomit-frame-pointer ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for full floating-point support... yes
checking for pwd... /bin/pwd
checking for source directory...
/var/tmp/portage/grass-6.0.0-r1/work/grass-6.0.0
checking for build directory...
/var/tmp/portage/grass-6.0.0-r1/work/grass-6.0.0
checking how to build libraries... shared
yes
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-2.6.11.10-infra
checking for dlopen in -ldl... yes
checking for ar... ar
checking for SysV... no
checking for XDriver... socket
checking for additional include dirs... 
checking for additional library dirs... 
checking for a BSD compatible install... /bin/install -c
checking for flex... flex
checking for yywrap in -lfl... yes
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for env... env
checking for perl... /usr/bin/perl
checking for ANSI C header files... yes
checking for curses.h... yes
checking for limits.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for unistd.h... yes
checking for values.h... yes
checking for g2c.h... yes
checking for f2c.h... no
checking for sys/ioctl.h... yes
checking for sys/mtio.h... yes
checking for sys/resource.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/types.h... yes
checking for sys/utsname.h... yes
checking for libintl.h... yes
checking for iconv.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for off_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking for Cygwin environment... no
checking for ftime... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for lseek... yes
checking for nice... yes
checking for time... yes
checking for uname... yes
checking for seteuid... yes
checking for setpriority... yes
checking for setreuid... yes
checking for setruid... no
checking for drand48... yes
checking for putenv... yes
checking for setenv... yes
checking whether setpgrp takes no argument... yes
checking for W11... no
checking for X... libraries , headers 
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for curses.h... yes
checking curses.h WINDOW structure component... _maxy
checking for initscr in -lncurses... yes
checking for keypad in -lncurses... yes
checking for gtty in -lcompat... no
checking for gtty in -lbsd-compat... yes
checking for library containing cuserid... none required
checking for xdrmem_create... yes
checking for atan... no
checking for atan in -lm... yes
checking for dlsym... no
checking for dlsym in -ldl... yes
checking for iconv... yes
checking for socket... yes
checking for location of zlib includes... 
checking for zlib.h... yes
checking for location of zlib library... 
checking for deflate in -lz... yes
checking for location of External PROJ.4 includes... 
checking for proj_api.h... yes
checking External PROJ.4 version... 449
checking for location of External PROJ.4 library... 
checking for pj_get_def in -lproj... yes
checking whether to use Readline... yes
checking for location of Readline includes... 
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for location of Readline library... 
checking for readline in -lreadline... yes
checking for add_history in -lhistory... yes
checking whether to use JPEG... yes
checking for location of JPEG includes... 
checking for jpeglib.h... yes
checking for location of JPEG library... 
checking for jpeg_start_compress in -ljpeg... yes
checking whether to use GDAL... yes
yes
checking for gdal-config... /usr/bin/gdal-config
checking for GDALOpen... no
checking for GDALOpen... no
configure: error: *** Unable to locate GDAL library.

!!! ERROR: sci-geosciences/grass-6.0.0-r1 failed.
!!! Function src_compile, Line 98, Exitcode 1
!!! Error: configure failed!
!!! If you need support, post the topmost build error, NOT this status message.

root@caravan:~# 


Expected Results:  
Successfully build GRASS 6.0.0 with GDAL support.


Gentoo Base System version 1.6.12
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11.10-infra i686)
=================================================================
System uname: 2.6.11.10-infra i686 mobile AMD Athlon(tm) XP2500+
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 13:31:37)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.5, 1.7.9-r1, 1.4_p6, 1.6.3, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /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/afs/C /etc/afs/afsws /etc/afs/modload /etc/gconf
/etc/make.globals /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks fixpackages
sandbox severe sfperms strict test userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/
ftp://gentoo.inode.at/source/"
LANG="en_US"
LINGUAS="en,de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/share/infra/work/portage-local--main--1.0"
SYNC="rsync://copper.sascha.silbe.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X a52 aac accessibility acl acpi afs alsa avi
bash-completion berkdb bitmap-fonts blas bzlib ccache cdparanoia cdr chipcard
crypt cups curl doc dts dv dvd dvdread ecc emboss encode f77 fam flac
foomaticdb fortran gatos gd gdbm gif gimpprint gps gtk gtk2 gtkhtml guile hbci
imagemagick imap imlib ipv6 jpeg jpeg2k krb4 lcms libg++ libwww lua lzo mad
maildir makecheck mbox mikmod mmx mmxext monitor mp3 mpeg nas ncurses nls ogg
oggvorbis opengl pam pcmcia pdflib png postgres python qt qtmt quicktime
readline rtc samba sdl skey smartcard socks5 spell sse ssl tetex tiff truetype
truetype-fonts type1-fonts unicode usb userlocales vorbis xine xml xml2 xosd xv
xvid zlib video_cards_radeon input_devices_synaptics linguas_en,de userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS

------- Comment #1 From Steve Arnold 2005-07-25 18:52:02 0000 -------
Which USE flags were enabled on the gdal and grass ebuilds?  Make sure gdal
uses 
the ogdi USE flag, and re-sync and try grass-6.0.0-r2.  Let me know if you
still 
have a problem.

------- Comment #2 From Sascha Silbe 2005-07-26 02:52:50 0000 -------
USE flags:  [ebuild   R   ] sci-libs/gdal-1.2.6  -debug -fits -geos +gif -grass
-hdf -jasper +jpeg -mysql -netcdf -odbc -ogdi +png +postgres +python -sqlite 0
kB  [ebuild  NS   ] sci-geosciences/grass-6.0.0-r1  +blas -fftw +jpeg -lapack
+motif -mysql +nls -odbc +opengl +png +postgres +readline +tcltk +tiff
+truetype 0 kB   Will try again with USE=ogdi.  

------- Comment #3 From Sascha Silbe 2005-07-26 07:54:11 0000 -------
I've rebuilt gdal with USE=ogdi, but grass still won't build:


>>> emerge (3 of 3) sci-geosciences/grass-6.0.0-r1 to /
[...]
checking whether to use GDAL... yes
yes
checking for gdal-config... /usr/bin/gdal-config
checking for GDALOpen... no
checking for GDALOpen... no
configure: error: *** Unable to locate GDAL library.

!!! ERROR: sci-geosciences/grass-6.0.0-r1 failed.
!!! Function src_compile, Line 98, Exitcode 1
!!! Error: configure failed!
!!! If you need support, post the topmost build error, NOT this status message.

caravan ~ # emerge -pv gdal grass
These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sci-libs/gdal-1.2.6  -debug -fits -geos +gif -grass -hdf -jasper +jpeg -mysql -netcdf -odbc +ogdi +png +postgres +python -sqlite 0 kB
[ebuild  NS   ] sci-geosciences/grass-6.0.0-r1  +blas -fftw +jpeg -lapack +motif -mysql +nls -odbc +opengl +png +postgres +readline +tcltk +tiff +truetype 0 kB

Total size of downloads: 0 kB



------- Comment #4 From Steve Arnold 2005-07-26 17:38:14 0000 -------
Please sync first; you should see gdal-1.2.6-r1 and grass-6.0.0-r2.  Try those 
instead.

------- Comment #5 From Luca 2005-07-29 05:19:24 0000 -------
I emerged gdal-1.2.6-r1 first and then grass, but got the same error.

------- Comment #6 From Steve Arnold 2005-07-29 20:01:37 0000 -------
I don't understand this, since it works fine for me on multiple boxes/arches.
What is the output of "qpkg -l gdal" after you emerge gdal?

------- Comment #7 From François Steinmetz 2005-07-30 07:21:11 0000 -------
same problem for me ; "qpkg -l gdal" gives :

sci-libs/gdal-1.2.6-r1 *
CONTENTS:
/usr
/usr/lib
/usr/lib/python2.3
/usr/lib/python2.3/site-packages
/usr/lib/libgdal.a
/usr/bin
/usr/bin/ogr2ogr
/usr/bin/ogrinfo
/usr/bin/ogrtindex
/usr/bin/gdalinfo
/usr/bin/gdal_translate
/usr/bin/gdaladdo
/usr/bin/gdalwarp
/usr/bin/gdal_contour
/usr/bin/gdaltindex
/usr/bin/gdal-config
/usr/share
/usr/share/gdal
/usr/share/doc
/usr/share/doc/gdal-1.2.6-r1
/usr/share/doc/gdal-1.2.6-r1/Doxyfile.man.gz
/usr/share/doc/gdal-1.2.6-r1/Doxyfile.gz
/usr/share/doc/gdal-1.2.6-r1/NEWS.gz
/usr/share/doc/gdal-1.2.6-r1/HOWTO-RELEASE.gz
/usr/include
/usr/include/gdal
/usr/include/gdal/cpl_config.h
/usr/include/gdal/cpl_conv.h
/usr/include/gdal/cpl_csv.h
/usr/include/gdal/cpl_error.h
/usr/include/gdal/cpl_list.h
/usr/include/gdal/cpl_minixml.h
/usr/include/gdal/cpl_multiproc.h
/usr/include/gdal/cpl_odbc.h
/usr/include/gdal/cpl_port.h
/usr/include/gdal/cpl_string.h
/usr/include/gdal/cpl_vsi.h
/usr/include/gdal/gdal.h
/usr/include/gdal/gdal_frmts.h
/usr/include/gdal/gdal_priv.h
/usr/include/gdal/gdal_version.h
/usr/include/gdal/vrtdataset.h
/usr/include/gdal/memdataset.h
/usr/include/gdal/rawdataset.h
/usr/include/gdal/gdal_alg.h
/usr/include/gdal/gdalwarper.h
/usr/include/gdal/gvgcpfit.h
/usr/include/gdal/thinplatespline.h
/usr/include/gdal/ogr_core.h
/usr/include/gdal/ogr_feature.h
/usr/include/gdal/ogr_geometry.h
/usr/include/gdal/ogr_p.h
/usr/include/gdal/ogr_spatialref.h
/usr/include/gdal/ogr_srs_api.h
/usr/include/gdal/ogrsf_frmts.h
/usr/include/gdal/ogr_featurestyle.h
/usr/include/gdal/ogr_api.h
/usr/man
/usr/man/man1
/usr/man/man1/gdal-config.1
/usr/man/man1/gdal_contour.1
/usr/man/man1/gdal_merge.py.1
/usr/man/man1/gdal_translate.1
/usr/man/man1/gdal_utilities.1
/usr/man/man1/gdaladdo.1
/usr/man/man1/gdalinfo.1
/usr/man/man1/gdaltindex.1
/usr/man/man1/gdalwarp.1
/usr/man/man1/ogr2ogr.1
/usr/man/man1/ogr_utilities.1
/usr/man/man1/ogrinfo.1
/usr/man/man1/ogrtindex.1
/usr/man/man1/pct2rgb.py.1
/usr/man/man1/rgb2pct.py.1

------- Comment #8 From Sascha Silbe 2005-07-30 13:00:05 0000 -------
Still exactly the same error. This is the relevant part of config.log:

=== Begin ===
configure:6933: checking for location of JPEG library
configure:6960: checking for jpeg_start_compress in -ljpeg
configure:6977: gcc -o conftest -O3 -march=athlon-xp -pipe -fomit-frame-pointer     -Wl,--export-dynamic conftest.c -ljpeg   1>&5
configure:7062: checking whether to use GDAL
configure:7076: checking for gdal-config
configure:7134: checking for GDALOpen
configure:7160: gcc -o conftest -O3 -march=athlon-xp -pipe -fomit-frame-pointer    -Wl,--export-dynamic conftest.c /usr/lib/libgdal.a /usr/lib/lib /usr/lib/-lpq /usr/lib/libgdal.a -L/usr/lib -L/usr/lib/lib -logdi31 -ljpeg -lgeotiff -ltiff -lpng -lz -lm -ldl -L/usr/lib -lpq  1>&5
gcc: /usr/lib/lib: No such file or directory
gcc: /usr/lib/-lpq: No such file or directory
configure: failed program was:
#line 7137 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char GDALOpen(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char GDALOpen();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_GDALOpen) || defined (__stub___GDALOpen)
choke me
#else
GDALOpen();
#endif

; return 0; }
configure:7179: checking for GDALOpen
configure:7205: gcc -o conftest -O3 -march=athlon-xp -pipe -fomit-frame-pointer    -Wl,--export-dynamic conftest.c -L/usr/lib -L/usr/lib/lib -logdi31 -ljpeg -lgeotiff -ltiff -lpng -lz -lm -ldl -L/usr/lib -lpq /usr/lib/libgdal.a /usr/lib/lib /usr/lib/-lpq /usr/lib/libgdal.a -L/usr/lib -L/usr/lib/lib -logdi31 -ljpeg -lgeotiff -ltiff -lpng -lz -lm -ldl -L/usr/lib -lpq  1>&5
gcc: /usr/lib/lib: No such file or directory
gcc: /usr/lib/-lpq: No such file or directory
configure: failed program was:
#line 7182 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char GDALOpen(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char GDALOpen();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_GDALOpen) || defined (__stub___GDALOpen)
choke me
#else
GDALOpen();
#endif

; return 0; }

=== End ===


Looks like gdal-config is to blame:

=== Begin ===
root@caravan:~# gdal-config --libs
/usr/lib/libgdal.a /usr/lib/lib /usr/lib/-lpq /usr/lib/libgdal.a -L/usr/lib -L/usr/lib/lib -logdi31 -ljpeg -lgeotiff -ltiff -lpng -lz -lm -ldl -L/usr/lib -lpq
root@caravan:~# 
=== End ===


------- Comment #9 From Steve Arnold 2005-07-30 15:58:21 0000 -------
Still building on sparc, but I have all the files you guys are missing on my 
normal x86 builds.  The only big difference I see is that I've been using a 
newer gcc, libtool, etc (basically a ~x86 toolchain).  Who would like to try 
a gcc and/or libtool upgrade and see if that helps?

------- Comment #10 From Steve Arnold 2005-07-30 16:46:36 0000 -------
Ok, I get the same reults on x86 and sparc (ie, success for me) so please sync 
again in about an hour and try the updated gdal ebuild.  Thanks.

------- Comment #11 From François Steinmetz 2005-07-31 00:09:50 0000 -------
it works for me, thanks !

------- Comment #12 From Steve Arnold 2005-08-01 19:29:07 0000 -------
How's about the rest?  Does it work for you too?

------- Comment #13 From Steve Arnold 2005-08-03 17:13:14 0000 -------
Updated ogdi and gdal ebuilds have just been committed, so all arches should be 
covered now (in theory).  Please file any problems as new bugs, unless you have 
the above problem.  Thanks...

First Last Prev Next    No search results available      Search page      Enter new bug