Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 46399

Summary: ncurses-5.4 causes aspell compile failure
Product: Gentoo Linux Reporter: Andre Hinrichs <andre.hinrichs>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: app-dicts+disabled
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andre Hinrichs 2004-03-31 13:32:00 UTC
Compiling aspell fails on my system with some undefined reference errors.
I ran into this by trying to do a 'emerge -e world'.
Not sure if this is really an aspell problem since it might also be a problem with a library (e.g. libcurses)

Here are the last few lines of the output:

gcc -O3 -march=i686 -funroll-loops -pipe -o word-list-compress compress.o
/bin/sh ../libtool --mode=link g++  -O3 -march=i686 -funroll-loops -pipe   -o aspell  aspell.o check_funs.o checker_string.o ../lib/libaspell.la -lcurses
g++ -O3 -march=i686 -funroll-loops -pipe -o .libs/aspell aspell.o check_funs.o checker_string.o  ../lib/.libs/libaspell.so -lcurses
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x8ea): In function `initialize_mousetype':
: undefined reference to `Gpm_Open'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x903): In function `initialize_mousetype':
: undefined reference to `gpm_fd'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x9aa): In function `mouse_activate':
: undefined reference to `gpm_fd'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0xb64): In function `_nc_mouse_event':
: undefined reference to `Gpm_GetEvent'
collect2: ld returned 1 exit status
distcc[19117] ERROR: compile on localhost failed
make[1]: *** [aspell] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/aspell-0.50.5/work/aspell-0.50.5/prog'
make: *** [all-recursive] Fehler 1

!!! ERROR: app-text/aspell-0.50.5 failed.
!!! Function src_compile, Line 32, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge aspell

Actual Results:  
emerge failed


Expected Results:  
emerge successes


Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://ftp.uninett.no/pub/linux/Gentoo
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.linux.ee/pub/gentoo/distfiles/"
MAKEOPTS="-j 3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://192.168.68.1/gentoo-portage"
USE="X Xaw3d aalib acl alsa apache2 apm arts audiofile avi berkdb bonobo cdr
crypt cups curl dvd emacs encode esd flac flash foomaticdb gd gdbm ggi gif gmp
gnome gphoto2 gpm gtk gtk2 gtkhtml guile icq imagemagick imlib java jpeg kde
lcms ldap leim libg++ libgda libwww mad mikmod motif mozilla mpeg mysql nas
ncurses nls nocardbus odbc oggvorbis opengl oss pam pcmcia pda pdflib perl
plotutils png python qt quicktime readline samba sasl scanner sdl slang speex
spell ssl svga tcltk tcpd tetex theora tiff truetype unicode usb wmf wxwindows
x86 xml xml2 xmms xv zlib"
Comment 1 Andre Hinrichs 2004-03-31 13:47:40 UTC
The compile output was from the second try with

ACCEPT_KEYWORDS="~x86" emerge aspell

Normal 'emerge aspell' results in the same errors.
So, both version 0.50.3 and version 0.50.5 are having this problem on my system.
Comment 2 Eric Vinson 2004-03-31 14:33:03 UTC
I too am experiencing this problem. I'm building a new box based on the Gentoo 2004.0 livecd. Using stage1-x86-20040218.tar.bz2. At first I thought it may have been because I had all my USB (IE mousedev) built into the kernel and not as a module. So I rebuilt my kernel (developement-sources 2.6.4).

I have the following outputs if they will help:

For aspell-0.50.3 the error is:
 
 gcc -O2 -march=pentium4 -fomit-frame-pointer -o word-list-compress compress.o
/bin/sh ../libtool --mode=link g++  -O2 -march=pentium4 -fomit-frame-pointer   -o aspell  aspell.o check_funs.o checker_string.o ../lib/libaspell.la -lcurses
g++ -O2 -march=pentium4 -fomit-frame-pointer -o .libs/aspell aspell.o check_funs.o checker_string.o  ../lib/.libs/libaspell.so -lcurses
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x138): In function `initialize_mousetype':
: undefined reference to `Gpm_Open'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x14c): In function `initialize_mousetype':
: undefined reference to `gpm_fd'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x1c9): In function `_nc_mouse_event':
: undefined reference to `Gpm_GetEvent'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x4c2): In function `mouse_activate':
: undefined reference to `gpm_fd'
collect2: ld returned 1 exit status
distcc[7706] ERROR: compile on localhost failed
make[1]: *** [aspell] Error 1
make[1]: Leaving directory `/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/prog'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/aspell-0.50.3 failed.
!!! Function src_compile, Line 35, Exitcode 2
!!! (no error message)

For aspell-0.50.5 the error is:

gcc -O2 -march=pentium4 -fomit-frame-pointer -o word-list-compress compress.o
/bin/sh ../libtool --mode=link g++  -O2 -march=pentium4 -fomit-frame-pointer   -o aspell  aspell.o check_funs.o checker_string.o ../lib/libaspell.la -lcurses
g++ -O2 -march=pentium4 -fomit-frame-pointer -o .libs/aspell aspell.o check_funs.o checker_string.o  ../lib/.libs/libaspell.so -lcurses
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x138): In function `initialize_mousetype':
: undefined reference to `Gpm_Open'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x14c): In function `initialize_mousetype':
: undefined reference to `gpm_fd'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x1c9): In function `_nc_mouse_event':
: undefined reference to `Gpm_GetEvent'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libcurses.a(lib_mouse.o)(.text+0x4c2): In function `mouse_activate':
: undefined reference to `gpm_fd'
collect2: ld returned 1 exit status
distcc[19662] ERROR: compile on localhost failed
make[1]: *** [aspell] Error 1
make[1]: Leaving directory `/var/tmp/portage/aspell-0.50.5/work/aspell-0.50.5/prog'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/aspell-0.50.5 failed.
!!! Function src_compile, Line 32, Exitcode 2
!!! (no error message)

I have even tried disabling distcc and it didn't help.

I was able to finish building Gnome (KDE didn't need it) on the new install using "emerge -i aspell-0.50.3" and "emerge -i aspell-en-0.51.0".
Comment 3 Andre Hinrichs 2004-03-31 23:20:37 UTC
I just fell back to ncurses-5.3-r5 and aspell compiles fine then.
So there is an incompatibility of aspell with ncurses-5.4
Comment 4 Andre Hinrichs 2004-03-31 23:23:52 UTC
I'd suggest to mask ncurses-5.4 until the aspell compile problem is fixed.
Comment 5 Andre Hinrichs 2004-04-01 23:31:55 UTC
I just tried the change of Martin Diers as described in bug #46432
and this seems to fix the problem. I've then also compiled aspell with
ncurses-5.3-r5 to see if there are any conflicts, but even then aspell compiles
fine.
Comment 6 Jon Portnoy (RETIRED) gentoo-dev 2004-04-02 10:52:27 UTC
46432 has a solution, hence marking this one as a dupe although it was first

*** This bug has been marked as a duplicate of 46432 ***