Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46432 - emerge aspell failing apparently due to gpm
Summary: emerge aspell failing apparently due to gpm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Spell checking utilities and dictionaries -- related bugs (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 46399 46423 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-31 19:21 UTC by Dave
Modified: 2004-04-02 12:01 UTC (History)
3 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 Dave 2004-03-31 19:21:47 UTC
I see messages of

In function 'initialize_mousetype':: undefined reference to 'Gpm_Open'
In function 'initialize_mousetype':: undefined reference to 'gpm_fd'
In function '_nc_mouse_event':: undefined reference to 'Gpm_GetEvent'
In function 'mouse_activate':: undefined reference to 'gpm_fd'

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

In the forums, a workaround seems to have been discoverd:

USE="-gpm" emerge ncurses aspell

Which seems fine if you don't want to use the mouse in the console, but this probably should be looked into (yes, I want to use the mouse in the console).

Oddly enough, it had been successfully emerged previously, and I'm now in the middle of an emerge -e world, as I changed my CFLAGS flags to be significantly less aggressive and wanted all apps built with the new CFLAGS.

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




CFLAGS="-march=pentium4 -O2 -fPIC -DPIC -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
USE includes "gpm ncurses aspell"
Comment 1 David Röhr 2004-04-01 09:18:22 UTC
I have the same problem, with the same type of system.

CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"

Tested against aspell-0.50.4.1 and aspell-0.50.5. Is this a gpm error?

Also tested to downgrade gpm from 1.20.1 to gpm-1.20.0-r6, this didn't help. Any ideas?
Comment 2 Martin Diers 2004-04-01 16:49:20 UTC
This is caused by a bug in the ebuild. It does not include the -lgpm flag in LDFLAGS.

To work around this, edit the build, and change the pkg_setup function to match:

pkg_setup() {
    if [ ${ARCH} = "ppc" ] ; then
        CXXFLAGS="-O2 -fsigned-char"
        CFLAGS=${CXXFLAGS}
    fi
    LDFLAGS="-lgpm"
}
Comment 3 Jon Portnoy (RETIRED) gentoo-dev 2004-04-02 10:52:28 UTC
*** Bug 46399 has been marked as a duplicate of this bug. ***
Comment 4 Jon Portnoy (RETIRED) gentoo-dev 2004-04-02 10:58:29 UTC
Ideally it should be:

use gpm && LDFLAGS="-lgpm"

with a USE=gpm dep for gpm. 

We can't really check to see if ncurses was built with USE=gpm, so for now we're stuck with that little kludge.

Upping severity, this'll effect a pretty large number of people.
Comment 5 Jon Portnoy (RETIRED) gentoo-dev 2004-04-02 11:15:52 UTC
Committed.
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2004-04-02 12:01:16 UTC
*** Bug 46423 has been marked as a duplicate of this bug. ***