Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11589 - aspell-0.50.3 doesn't compile
Summary: aspell-0.50.3 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
: 12176 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-04 13:45 UTC by Jesus Gonzalez Alvarez
Modified: 2003-02-04 19:42 UTC (History)
4 users (show)

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 Jesus Gonzalez Alvarez 2002-12-04 13:45:15 UTC
I  can't compile this ebuild. I've try a lot of different things but it's
imposible. If i do:

emerge aspell

with no more optiones it don't compile and in the configure sections you can see
that don't find some basics libraries. Y then use:


CFLAGS="-I/usr/include -march=i686 -O3 -pipe -fomit-frame-pointer" emerge aspell

in the configure section it find the library but still fails.

The error is:

...
/bin/sh ../libtool --mode=link gcc  -march=i686 -O3 -pipe -fomit-frame-pointer 
 -o mk-dirs_h  mk-dirs_h.o  
 gcc -DHAVE_CONFIG_H -I. -I. -I. -march=i686 -O3 -pipe -fomit-frame-pointer -c
strtonum.cpp -Wp,-MD,.deps/strtonum.TPlo  -fPIC -DPIC
gcc -march=i686 -O3 -pipe -fomit-frame-pointer -o mk-dirs_h mk-dirs_h.o 
mk-dirs_h.o: In function `main':
mk-dirs_h.o(.text+0xc1): undefined reference to `cout'
mk-dirs_h.o(.text+0xc6): undefined reference to `ostream::operator<<(char const *)'
mk-dirs_h.o(.text+0xcf): undefined reference to `ostream::operator<<(char const *)'
mk-dirs_h.o(.text+0xd8): undefined reference to `ostream::operator<<(char const *)'
mk-dirs_h.o(.text+0xe1): undefined reference to `ostream::operator<<(char const *)'
mk-dirs_h.o(.text+0xea): undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
make[2]: *** [mk-dirs_h] Error 1
make[2]: *** Se espera a que terminen otras tareas....
mv -f strtonum.o .libs/strtonum.o
make[2]: Leaving directory
`/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/common'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/common'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/aspell-0.50.3 failed.
!!! Function src_compile, Line -139, Exitcode 2
!!! (no error message)
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-04 14:59:20 UTC
spanky - gcc3 issue -- help
Comment 2 Adam Mercer 2002-12-05 02:32:42 UTC
I'm having this problem with a gentoo 1.2 system (gcc-2.95.3-r7)
Comment 3 SpanKY gentoo-dev 2002-12-05 10:12:28 UTC
odd, i just emerged 0.50.3 on a 3.2.1 machine and on a 2.95.3 machine ... 
 
Jesus: what version of gcc do you have ? 
 
Adam,Jesus: could you both please post `emerge info` 
Comment 4 Adam Mercer 2002-12-05 13:45:55 UTC
Portage 2.0.44 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.20 i686 Pentium III (Coppermine)
USE="x86 oss 3dnow apm arts avi crypt cups encode gif gtk imlib java jpeg kde
libg++ libwww mikmod mmx motif mpeg ncurses oggvorbis pdflib png qt qtmt
quicktime sdl spell svga truetype xml2 xmms xv berkdb gdbm opengl pam python
readline slang ssl tcpd X sse 3dfx voodoo3 cdr dga -gnom e aalib lcms tiff alsa
dvd flash mbox mozilla xml plotutils tetex perl -nls -gpm tcltk"
ARCH="x86"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME=""
JAVA_HOME=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="ftp://ftp.nluug.nl/pub/metalab/distributions/gentoo"
Comment 5 Jesus Gonzalez Alvarez 2002-12-05 16:32:51 UTC
I have the same configuration as Adam Mercer except that I have an Pentium4 and
this:

USE="-3dnow gnome bonobo evo gb gtkhtml sse see2 tcltk cdr dga directfb encode
esd gtk gtk2 java maildir mpeg oggvorbis oss pcmcia quicktime opengl"

But I've realize that my problem is not only with aspell. I can't compile any
C++ code. It makes the compilation but fails when linking. :(

I'm currently trying with Gentoo 1.4 (ggc 3.2) and hope to have luck.
Comment 6 Adam Mercer 2002-12-06 02:17:26 UTC
just tried going back to aspell-0.50.2-r1 and aspell-0.50.2 and I'm having the
same problem, I can compile c++ code fine it just seems that my system doesn't
like aspell
Comment 7 SpanKY gentoo-dev 2002-12-15 08:34:16 UTC
please check your /etc/env.d/05gcc file and check what CXX is being set to 
Comment 8 SpanKY gentoo-dev 2002-12-15 08:34:23 UTC
*** Bug 12176 has been marked as a duplicate of this bug. ***
Comment 9 Adam Mercer 2002-12-15 09:22:32 UTC
This is the contents of /etc/env/05gcc:

LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3"
CC="gcc"
CXX="gcc"
Comment 10 simprix 2002-12-15 10:22:46 UTC
I changed my CFLAGS to what was posted and now i get this
gcc -march=i686 -O2 -pipe -fomit-frame-pointer -o mk-dirs_h mk-dirs_h.o 
mk-dirs_h.o(.text+0xc1): In function `main':
: undefined reference to `cout'
mk-dirs_h.o(.text+0xc6): In function `main':
: undefined reference to `ostream::operator<<(char const *)'
mk-dirs_h.o(.text+0xcf): In function `main':
: undefined reference to `ostream::operator<<(char const *)'
mk-dirs_h.o(.text+0xd8): In function `main':
: undefined reference to `ostream::operator<<(char const *)'
mk-dirs_h.o(.text+0xe1): In function `main':
: undefined reference to `ostream::operator<<(char const *)'
mk-dirs_h.o(.text+0xea): In function `main':
: undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
make[2]: *** [mk-dirs_h] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f strtonum.o .libs/strtonum.o
make[2]: Leaving directory
`/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/common'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/common'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/aspell-0.50.3 failed.
!!! Function src_compile, Line -223, Exitcode 2
!!! (no error message)
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-15 10:45:21 UTC
Ok, just check if editing 05gcc and changing CXX="g++" fixes the problem.
Comment 12 simprix 2002-12-15 10:55:36 UTC
no changing CXX to g++ doesn't work
Comment 13 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-15 13:07:09 UTC
run env-update
then source /etc/profile
Comment 14 Adam Mercer 2002-12-15 14:46:30 UTC
That works for me, cheers
Comment 15 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-15 14:52:57 UTC
great :)