Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72000 - gbib failed to emerge
Summary: gbib failed to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-21 17:32 UTC by Jackey Yang ("timeout" in forum)
Modified: 2006-02-21 10:56 UTC (History)
1 user (show)

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


Attachments
gbib-0.1.2-r1.ebuild (gbib-0.1.2-r1.ebuild,1.59 KB, text/plain)
2005-01-08 00:56 UTC, Alex Linke
Details
gbib-0.1.3_rc1.ebuild (gbib-0.1.3_rc1.ebuild,1.32 KB, text/plain)
2005-04-06 08:33 UTC, Alex Linke
Details
gbib-0.1.3rc1-Makefile.patch (gbib-0.1.3rc1-Makefile.patch,4.17 KB, patch)
2005-04-06 08:35 UTC, Alex Linke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jackey Yang ("timeout" in forum) 2004-11-21 17:32:51 UTC
checking for map.h... no
configure: error: required header file missing

!!! ERROR: app-office/gbib-0.1.2 failed.
!!! Function econf, Line 449, Exitcode 1
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


timeout portage # emerge info
Portage 2.0.51-r3 (gcc34-x86-2004.2, gcc-3.4.3, uclibc-0.9.26-r7, 2.6.9-nitro4 i686)
=================================================================
System uname: 2.6.9-nitro4 i686 Intel(R) Celeron(TM) CPU                1066MHz
Gentoo Base System version 1.6.6
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops -mfpmath=sse -msse -mmmx"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops -mfpmath=sse -msse -mmmx"
DISTDIR="/export/gentoo/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/export/gentoo/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/glc/gentoo/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apache2 arts avi berkdb bitmap-fonts cddb cdr chroot cjk crypt cups dba dga dhcp directfb divx4linux dvd encode esd evo f77 ffmpeg flash foomaticdb fortran freetype gd gdbm gif gimp gimpprint glade glc glx gpm gtk gtk2 i8x0 imagemagick imlib ipv6 irdajava jpeg kde lcd lcms ldap libg++ libgda libwww mad md5sum mikmod mime mp3 mpeg mpeg4 mplayer mysql ncurses nls nptl nptlonly odbc oggvorbis opengl openssh oss pam pcmcia pdflib perl php png pnp postgres python qt quicktime readline samba sdl session slang slp snmp socks5 spell sse ssl svga tcpd tetex tiff truetype trusted unicode usb v4l v4l2 vhosts wavelan wifi wmf x86 xml xml2 xmms xosd xv xvid zlib video_cards_i830 linguas_zh_CN"

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-11-22 05:12:53 UTC
Looks like it needs glibc to emerge, but I'm not sure.
Comment 2 Alex Linke 2005-01-08 00:56:18 UTC
Created attachment 47926 [details]
gbib-0.1.2-r1.ebuild

hi,

I tried removing the 'map.h' check from configure.in. After that (and running
autoconf), gbib compiles fine without any error and runs as expected as far as
I tested it.

The former configure-error: 
/usr/include/linux/mtd/map.h:121:2: #error "No bus width supported. What's the
point?"
seems to be related to gcc > 2.X (see [1]). As far as I understand this issue,
I guess through removing the above check this backward-compat-header gets
included:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/backward/map.h
...but I'm not sure...

I updated the ebuild to
  a) remove the map.h check in order to make gbib compile
  b) add a desktop-entry
and updated the KEYWORDS to "~x86 ~sparc" for testing.

have a nice day,
  alex

P.S.: I haven't tested anything with LyX because I use vim only.

[1] http://archives.seul.org/gbib/dev/Dec-2004/msg00001.html
Comment 3 Alexander Hsia 2005-01-14 11:26:51 UTC
Unfortunately, even with the new ebuild I cannot get gbib to compile. I get this error:

cc1plus: note: -fwritable-strings is deprecated; see documentation for details
i686-pc-linux-gnu-g++ -c -g -DLIBDIR=\"/usr/share/gbibtex\" -DPACKAGE=\"gbib\" -DPREFIX=\"/usr\" -fwritable-strings -traditional -Wcast-qual -Wwrite-strings -funsigned-char -I. -I./intl -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include gui.C
cc1plus: note: -fwritable-strings is deprecated; see documentation for details
bibentry.C:171: error: prototype for `const char* BibEntry::getField(const char*) const' does not match any in class `BibEntry'
gbib.h:79: error: candidates are: const char* BibEntry::getField(char*) const
gbib.h:78: error:                 const char* BibEntry::getField(int) const
bibentry.C: In member function `const char* BibEntry::getField(const char*) const':
bibentry.C:174: error: passing `const BibEntry' as `this' argument of `int BibEntry::getNoFields()' discards qualifiers
bibentry.C:175: error: passing `const BibEntry' as `this' argument of `char* BibEntry::getFieldName(int)' discards qualifiers
bibentry.C: In member function `const char* BibEntry::getField(int) const':
bibentry.C:186: error: passing `const BibEntry' as `this' argument of `int BibEntry::getNoFields()' discards qualifiers
gui.C: In function `void edit_cb(GtkWidget*, void*)':
gui.C:661: error: invalid conversion from `const char*' to `char*'
gui.C:661: error:   initializing argument 1 of `void entry_dlg(char*, BibEntry*)'
gui.C: In function `void update_entry(bool)':
gui.C:732: error: call of overloaded `getField(const gchar*&)' is ambiguous
gbib.h:78: note: candidates are: const char* BibEntry::getField(int) const <near match>
gbib.h:79: note:                 const char* BibEntry::getField(char*) const <near match>
gui.C:734: error: invalid conversion from `const char*' to `char*'
gui.C: In function `void update_elist()':
gui.C:760: error: invalid conversion from `const gchar*' to `char*'
gui.C:760: error:   initializing argument 2 of `void gbib_column_title_new(SortColTitle*, char*)'
gui.C:785: error: call of overloaded `getField(const gchar*&)' is ambiguous
gbib.h:78: note: candidates are: const char* BibEntry::getField(int) const <near match>
gbib.h:79: note:                 const char* BibEntry::getField(char*) const <near match>
gui.C:787: error: invalid conversion from `const char*' to `char*'
gui.C: In function `ResponseType ask_about_conflict(BibEntry*, BibEntry*)':
gui.C:991: error: call of overloaded `getField(const gchar*&)' is ambiguous
gbib.h:78: note: candidates are: const char* BibEntry::getField(int) const <near match>
gbib.h:79: note:                 const char* BibEntry::getField(char*) const <near match>
gui.C:996: error: call of overloaded `getField(const gchar*&)' is ambiguous
gbib.h:78: note: candidates are: const char* BibEntry::getField(int) const <near match>
gbib.h:79: note:                 const char* BibEntry::getField(char*) const <near match>
gui.C: In function `void sort_gui_cb(GtkCList*, gint, void*)':
gui.C:1047: error: invalid conversion from `const gchar*' to `char*'
gui.C:1047: error:   initializing argument 2 of `void BibentryTable::sort(int, char*)'
make: *** [gui.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [bibentry.o] Error 1

!!! ERROR: app-office/gbib-0.1.2-r1 failed.
!!! Function src_compile, Line 38, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

Here's my emerge info if its helps:
Portage 2.0.51-r12 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r4 i686)
=================================================================
System uname: 2.6.10-gentoo-r4 i686 AMD Athlon(tm) MP 2000+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 12 2005, 18:26:57)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O3 -pipe"
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/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-mp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 3dnowext X aac aalib acpi acpi4linux alsa atlas avi bash-completion berkdb bitmap-fonts blas bmp bzip2 bzlib c++ cdda cddb cdf cdio cdparanoia cdr cdrom chroot cmucl crypt cups divx4linux dnd dvd dvdr dvdread eds encode esd evms2 f2c f77 faad fam ffmpeg fftw flac foomaticdb fortran freetype gd gdbm gif ginac glitz gnome gnuplot gphoto2 gpm graphviz gstreamer gtk gtk2 guile hal hbci hdf hdf5 howl imagemagick imlib imlib2 ipv6 java jikes jpeg junit kde kerberos krb4 lapack latex ldap libg++ libwww lm_sensors mad matroska mikmod mime mjpeg mmap mmx mng motif mozilla mozsvg mp3 mpeg mpeg2 mpeg4 mpi mplayer mysql ncurses netcdf nls nptl nvidia ogg oggvorbis openal opengl pam parse-clocks pcre pdf pdflib perl pic pie plotutils png pnp ppds pthreads python qhull qt quicktime readline real rtc samba sdl shared sharedmem smime spell sse ssl stream svg svga tcltk tcpd tetex theora threads tiff truetype usb v4l v4l2 vcd vidix vlm vorbis winbind x86 xine xinerama xml xml2 xosd xpm xprint xrandr xv xvid xvmc zlib"
Unset:  LDFLAGS
Comment 4 Alex Linke 2005-04-06 08:33:33 UTC
Created attachment 55482 [details]
gbib-0.1.3_rc1.ebuild

I updated the ebuild to use the current development version of gBib, 0.1.3rc1.

I had to patch the Makefiles for proper DESTDIR-support, but now everything
seems to work fine.
Comment 5 Alex Linke 2005-04-06 08:35:36 UTC
Created attachment 55483 [details, diff]
gbib-0.1.3rc1-Makefile.patch
Comment 6 Martin Ehmsen (RETIRED) gentoo-dev 2006-02-21 10:56:07 UTC
I have added a slightly modified 0.1.3_rc1 ebuild to CVS.
(One should _never_ use sed/awk/... in the global scope of ebuilds, always use bash's built-in stuff.)

Thanks very much for the ebuild and the Makefile patch!