Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112496 - libextractor fails to compile.
Summary: libextractor fails to compile.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-14 04:41 UTC by Richard
Modified: 2006-04-26 23:30 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 Richard 2005-11-14 04:41:59 UTC
The build for libextractor fails with the following.


Reproducible: Always
Steps to Reproduce:
1.emerge libextractor
2.
3.

Actual Results:  
include -I../../../src/include    -O2 -march=athlon -MT exiv2extractor.lo -MD
-MP -MF ".deps/exiv2extrac tor.Tpo" -c -o exiv2extractor.lo exiv2extractor.cc; \
then mv -f ".deps/exiv2extractor.Tpo" ".deps/exiv2extractor.Plo"; else rm -f
".deps/exiv2extractor.Tpo";  exit 1; fi
mkdir .libs
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include
-I../../../src/include -O2 -march= athlon -MT exiv2extractor.lo -MD -MP -MF
.deps/exiv2extractor.Tpo -c exiv2extractor.cc  -fPIC -DPIC -o .
libs/exiv2extractor.o
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3/i686-pc-linux-gnu/bits/c++loca
le.h:46,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3/iosfwd:46,
                 from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3/bits/stl_algobase.h:70,
                 from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3/bits/char_traits.h:46,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3/string:47,
                 from types.hpp:43,
                 from metadatum.hpp:38,
                 from exif.hpp:34,
                 from exiv2extractor.cc:29:
/usr/include/libintl.h:40: error: expected unqualified-id before "const"
/usr/include/libintl.h:40: error: expected `)' before "const"
/usr/include/libintl.h:40: error: expected `)' before "const"
/usr/include/libintl.h:40: error: expected init-declarator before "const"
/usr/include/libintl.h:40: error: expected `,' or `;' before "const"
/usr/include/libintl.h:44: error: expected unqualified-id before "const"
/usr/include/libintl.h:44: error: expected `)' before "const"
/usr/include/libintl.h:44: error: expected `)' before "const"
/usr/include/libintl.h:44: error: expected init-declarator before "const"
/usr/include/libintl.h:44: error: expected `,' or `;' before "const"
/usr/include/libintl.h:51: error: expected unqualified-id before "const"
/usr/include/libintl.h:51: error: expected `)' before "const"
/usr/include/libintl.h:51: error: expected `)' before "const"
/usr/include/libintl.h:51: error: expected init-declarator before "const"
/usr/include/libintl.h:51: error: expected `,' or `;' before "const"
/usr/include/libintl.h:60: error: expected unqualified-id before "unsigned"
/usr/include/libintl.h:60: error: expected `)' before "unsigned"
/usr/include/libintl.h:60: error: expected `)' before "unsigned"
/usr/include/libintl.h:60: error: expected init-declarator before "unsigned"
/usr/include/libintl.h:60: error: expected `,' or `;' before "unsigned"
/usr/include/libintl.h:66: error: expected unqualified-id before "unsigned"
/usr/include/libintl.h:66: error: expected `)' before "unsigned"
/usr/include/libintl.h:66: error: expected `)' before "unsigned"
/usr/include/libintl.h:66: error: expected init-declarator before "unsigned"
/usr/include/libintl.h:66: error: expected `,' or `;' before "unsigned"
/usr/include/libintl.h:72: error: expected unqualified-id before "unsigned"
/usr/include/libintl.h:72: error: expected `)' before "unsigned"
/usr/include/libintl.h:72: error: expected `)' before "unsigned"
/usr/include/libintl.h:72: error: expected init-declarator before "unsigned"
/usr/include/libintl.h:72: error: expected `,' or `;' before "unsigned"
/usr/include/libintl.h:81: error: expected unqualified-id before "throw"
/usr/include/libintl.h:81: error: expected init-declarator before "throw"
/usr/include/libintl.h:81: error: expected `,' or `;' before "throw"
/usr/include/libintl.h:85: error: expected unqualified-id before "throw"
/usr/include/libintl.h:85: error: expected init-declarator before "throw"
/usr/include/libintl.h:85: error: expected `,' or `;' before "throw"
/usr/include/libintl.h:90: error: expected unqualified-id before "const"
/usr/include/libintl.h:90: error: expected `)' before "const"
/usr/include/libintl.h:90: error: expected `)' before "const"
/usr/include/libintl.h:90: error: expected init-declarator before "const"
/usr/include/libintl.h:90: error: expected `,' or `;' before "const"
make[4]: *** [exiv2extractor.lo] Error 1
make[4]: Leaving directory
`/var/tmp/portage/libextractor-0.5.6a/work/libextractor-0.5.6a/src/plugins/ex iv2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/libextractor-0.5.6a/work/libextractor-0.5.6a/src/plugins/ex iv2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/libextractor-0.5.6a/work/libextractor-0.5.6a/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/libextractor-0.5.6a/work/libextractor-0.5.6a/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libextractor-0.5.6a failed.
!!! Function src_compile, Line 28, Exitcode 2
!!! compile failed
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
Should have compiled.I did try a few things.
i reemerged gettext and revdep rebuild but there was nothing to rebuild
(  revdep-rebuild --soname libintl.so.2  ) 




ric distfiles # emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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="-O2 -march=athlon"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" http://gentoo.mirrors.tds.net/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://gentoo.mirrors.tds.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/
ftp://gentoo.mirrors.tds.net/gentoo
http://mirror.clarkson.edu/pub/distributions/gentoo/ http://gentoo.ccccom.com
ftp://gentoo.ccccom.com"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dfx DMX X alsa apm arts audiofile avi berkbd berkdb bitmap-fonts
bonobo bzip2 bzlib cdr crypt cups curl dba eds emboss encode esd ethereal evo
exif expat extras fam fbcon ffmpeg fftw flash foomaticdb fortran gd gdbm gif
gimp gimpprint glide glut gnome gnome-print gnupg gphoto2 gpm gps gstreamer gtk
gtk2 gtkhtml guile icq idn imagemagick imap imlib insecure-savers ipv6 jabber
java jpeg junit lcms ldap libg++ libgda libwww lua mad maildir mbox mhash mikmod
mime ming mjpeg mmx mmxext mng motif mouse mozcalendar mozilla mozsvg mp3 mpeg
mpeg2 mpeg4 mplayer msn nas nautilus ncurses nfs odbc ogg oggvorbis openal
opengl oss pam pcre pdflib perl php png postgres python qt quicktime readline
ruby samba sasl scanner sdl silverxp slp speex spell spl sqlite sse-filters ssl
startup-notification svg swat tcltk tcpd tga tiff toolbar truetype
truetype-fonts type1-fonts udev usb userlocales v4l videos vidix voodoo3 vorbis
win32codecs wmf wordperfect wxwindows xanim xchat xchatdccserver xface xine
xinerama xml xml2 xmlrpc xmms xosd xsl xv yahoo zlib video_cards_3dfx
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Baerbel 2005-12-15 05:31:40 UTC
confirmation:

localhost ~ # emerge info
Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.40GHz
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.14
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/data/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.inode.at/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.math.bme.hu
http://gentoo.mirror.sdv.fr http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ds.thn.htu.se/linux/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://emea.main.anykey/gentoo-portage"
USE="x86 X aalib alsa apm audiofile avi berkdb bitmap-fonts bzip2 caps cdr crypt
cups curl dts dvd dvdread eds emboss encode esd ethereal exif expat fam ffmpeg
flac foomaticdb fortran gd gdbm gif gimpprint glut gmp gpgme gpm gstreamer gtk
gtk2 idea imagemagick imap imlib ipv6 java jpeg lcms libg++ libwww mad matroska
mikmod mng motif mp3 mpeg ncurses ogg oggvorbis opengl oss pam pcre pdflib perl
png postgres ppds qt quicktime readline real ruby sdl slang smime spell ssl svga
tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis
win32codecs xanim xine xinerama xml2 xmms xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 2 Bastian Schmitz 2006-02-13 15:03:54 UTC
i think this bug occurs only with USE="-nls" which causes macro 

# define gettext(Msgid) ((const char *) (Msgid))

from /include/gettext.h to be expanded onto

extern char *gettext (__const char *__msgid) __THROW;

from /usr/include/libintl.h
Comment 3 Jan Boezeman 2006-03-10 02:35:58 UTC
Added to /etc/portage/package.use:
sys-devel/gettext nls
media-libs/libextractor nls

After a re-compile of gettext the error didn't occure anymore.

I hope that might be usefull...

Gentoo Base System version 1.6.13
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 Pentium III (Katmai)
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
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.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp.snt.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aac acl alsa apache2 berkdb cups curl curlwrappers foomaticdb gd imap java javascript kerebos ldap libclamav mmx mysql ncurses oav pam php png python readline samba ssl symlink usb x86 xml zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 4 Jon Hood (RETIRED) gentoo-dev 2006-04-24 22:04:55 UTC
If you want to USE="-nls", make sure that glibc and gcc is compiled with USE="-nls". If you recompile the following, everything should be fine:
USE="-nls" emerge gcc glibc gettext libextractor
Comment 5 Jon Hood (RETIRED) gentoo-dev 2006-04-26 22:57:03 UTC
Spanky sayz this is an #include problem. I'll fix it right this time, I promise!
Comment 6 Jon Hood (RETIRED) gentoo-dev 2006-04-26 23:30:10 UTC
There, libextractor-0.5.12 has a patch which should make all your wildest dreams come true.
Also, the patch was sent upstream:
https://gnunet.org/mantis/view.php?id=1055