Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80217 - gpm-1.20.1 complie error with emacs
Summary: gpm-1.20.1 complie error with emacs
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
: 85061 91836 93591 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-31 08:10 UTC by Igor Balotsky
Modified: 2005-05-22 14:23 UTC (History)
7 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 Igor Balotsky 2005-01-31 08:10:47 UTC
<here is the entire output of when I type emerge gpm>

Calculating dependencies ...done!
>>> emerge (1 of 1) sys-libs/gpm-1.20.1 to /
>>> md5 src_uri ;-) gpm-1.20.1.tar.bz2
>>> md5 src_uri ;-) gpm-1.20.1-patches-1.0.tar.bz2
>>> Unpacking source...
>>> Unpacking gpm-1.20.1.tar.bz2 to /var/tmp/portage/gpm-1.20.1/work
>>> Unpacking gpm-1.20.1-patches-1.0.tar.bz2 to /var/tmp/portage/gpm-1.20.1/work
>>> Unpacking gpm-1.20.1-patches-1.0.tar.bz2 to /var/tmp/portage/gpm-1.20.1/work
 * Applying various patches (bugfixes/updates) ...
 *   01_all_info.patch.bz2 ...                                 [ ok ]
 *   02_all_OPEN_MAX.patch.bz2 ...                             [ ok ]
 *   03_all_DESTDIR.patch.bz2 ...                              [ ok ]
 *   04_all_root.patch.bz2 ...                                 [ ok ]
 *   05_all_serialconsole.patch.bz2 ...                        [ ok ]
 *   06_all_gawk.patch.bz2 ...                                 [ ok ]
 *   08_all_nodebug.patch.bz2 ...                              [ ok ]
 *   09_all_logfillup.patch.bz2 ...                            [ ok ]
 *   10_all_link.patch.bz2 ...                                 [ ok ]
 *   11_all_lib_segv.patch.bz2 ...                             [ ok ]
 * Done with patching
>>> Source unpacked.
./configure --prefix=/usr --host=i586-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/gpm
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -mcpu=i586 -fomit-frame-pointer ) works... yes
checking whether the C compiler (gcc -O2 -mcpu=i586 -fomit-frame-pointer ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /bin/install -c
checking for bison... bison -y
checking whether ln -s works... yes
checking for dvips... no
checking for texi2html... no
checking for tex... no
checking for texindex... /usr/bin/texindex
checking for makeinfo... /usr/bin/makeinfo
checking for diff... /usr/bin/diff
checking for sed... /bin/sed
checking for emacs... /usr/bin/emacs
checking where to install Emacs Lisp files... ${datadir}/emacs/site-lisp
checking how to run the C preprocessor... gcc -E
checking for syslog.h... yes
checking for linux/input.h... yes
checking for linux/joystick.h... yes
checking for ncurses.h... yes
checking for ncurses/curses.h... no
checking for curses.h... yes
checking for sys/sysmacros.h... yes
checking for linux/major.h... yes
checking for linux/tty.h... yes
checking for __u32... yes
checking whether system is ELF... yes
checking for vsyslog... yes
checking for syslog... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for tputs in -ltinfo... no
checking for tputs in -lncurses... yes
checking for wgetch in -lncurses... yes
updating cache ./config.cache
creating ./config.status
creating Makefile.include
creating Makefile
creating doc/Makefile
creating src/Makefile
creating contrib/Makefile
creating doc/doc.gpm
creating src/headers/config.h
touch src/.depend # to prevent unecessary warnings
make -C src dep
make[1]: Entering directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src'
bison -y  /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src/prog/gpm-root.y && mv y.tab.c prog/gpm-root.c
# make links in srcdir
make[1]: [.depend] Error 1 (ignored)
# create dependencies
for DEPS in `echo *.c */*.c`; do \
gcc -I. -I /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -M -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  $DEPS | \
/bin/sed 's/\(\)\.o\([ :]*\)/\1.o \1.lo\2/g'  >> .depend ; done
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src'
make[1]: Entering directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src'
# make links in srcdir
make[1]: [dep] Error 1 (ignored)
# create dependencies
for DEPS in `echo *.c */*.c`; do \
gcc -I. -I /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -M -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  $DEPS | \
/bin/sed 's/\(\)\.o\([ :]*\)/\1.o \1.lo\2/g'  >> .depend ; done
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src'
make[1]: Entering directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src'
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o main.o main.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o gpm.o gpm.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o gpn.o gpn.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o mice.o mice.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o special.o special.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o twiddler.o twiddler.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o synaptics.o synaptics.c
synaptics.c:888: warning: `tp_dump_report_data' defined but not used
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o startup.o startup.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o server_tools.o server_tools.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o report.o report.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o tools.o tools.c
gcc -L/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src  -o gpm main.o gpm.o gpn.o mice.o special.o twiddler.o synaptics.o startup.o server_tools.o report.o tools.o   -lm
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -DPIC -fPIC -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/liblow.lo lib/liblow.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -DPIC -fPIC -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/libhigh.lo lib/libhigh.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -DPIC -fPIC -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/libxtra.lo lib/libxtra.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -DPIC -fPIC -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/report-lib.lo lib/report-lib.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -DPIC -fPIC -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o tools.lo tools.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -DPIC -fPIC -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/libcurses.lo lib/libcurses.c
gcc -fPIC -shared -Wl,-soname,libgpm.so.1 \
-L/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src  -o lib/libgpm.so.1.19.0 lib/liblow.lo lib/libhigh.lo lib/libxtra.lo lib/report-lib.lo tools.lo lib/libcurses.lo  -lncurses  -lncurses  -lc 
ln -s -f libgpm.so.1.19.0 lib/libgpm.so
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/liblow.o lib/liblow.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/libhigh.o lib/libhigh.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/libxtra.o lib/libxtra.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/report-lib.o lib/report-lib.c
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o lib/libcurses.o lib/libcurses.c
ar rc lib/libgpm.a lib/liblow.o lib/libhigh.o lib/libxtra.o lib/report-lib.o tools.o lib/libcurses.o
ranlib lib/libgpm.a
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o prog/mev.o prog/mev.c
gcc -L/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src  -o prog/mev prog/mev.o lib/libgpm.so  
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o prog/hltest.o prog/hltest.c
gcc -L/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src  -o prog/hltest prog/hltest.o lib/libgpm.so  
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o prog/mouse-test.o prog/mouse-test.c
gcc -L/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src  -o prog/mouse-test prog/mouse-test.o mice.o twiddler.o synaptics.o lib/libgpm.so   -lm
gcc -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o prog/disable-paste.o prog/disable-paste.c
gcc -L/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src  -o prog/disable-paste prog/disable-paste.o lib/libgpm.so  
gcc -I. -I/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -mcpu=i586 -fomit-frame-pointer -O2 -mcpu=i586 -fomit-frame-pointer -c -o prog/gpm-root.o prog/gpm-root.c
gcc -L/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src  -o prog/gpm-root prog/gpm-root.o   lib/libgpm.so
rm prog/hltest.o prog/mev.o prog/disable-paste.o
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/src'
make[1]: Entering directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc'
/bin/sed -f /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/infofilter /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/doc.gpm > /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/gpm.texinfo
chmod 400 /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/gpm.texinfo
if [ "/usr/bin/makeinfo" != "no" ]; then /usr/bin/makeinfo /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/gpm.texinfo -o /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/gpm.info; fi
/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/gpm.texinfo:277: warning: unlikely character ( in @var.
/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/gpm.texinfo:277: warning: unlikely character ) in @var.
/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/manpager doc.gpm
awk: /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/manpager:35: warning: escape sequence `\{' treated as plain `{'
awk: /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/manpager:36: warning: escape sequence `\}' treated as plain `}'
for i in gpm-root.1 gpm-types.7 gpm.8 mev.1 mouse-test.1; do \
        expand $i | sed s/^'[ ]*'//g > $i.new; \
        mv $i.new $i; \
done;
rm /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc/gpm.texinfo
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/doc'
make[1]: Entering directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/contrib'
/usr/bin/emacs -batch -l /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/contrib/emacs/exec.el -exec '(byte-compile-file "emacs/t-mouse.el")'
While compiling toplevel forms in file /var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/contrib/emacs/t-mouse.el:
  ** assignment to free variable mouse-sel-set-selection-function
  ** assignment to free variable mouse-sel-get-selection-function
Wrong number of arguments: #<subr byte-code>, 1
make[1]: *** [emacs/t-mouse.elc] Error 255
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1/work/gpm-1.20.1/contrib'
make: *** [do-all] Error 1

!!! ERROR: sys-libs/gpm-1.20.1 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:
1. Use Secure Shell for Windows.
2. Just run emerge gpm.
3. 



Actual Results:  
The error in the details.

Expected Results:  
I wanted gpm to compile normally.

<<I'm kind of new to Linux, and I don't know if maybe my use flags are somehow
conflicting. I have a lot of them>>

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r6 i686)
=================================================================
System uname: 2.4.26-gentoo-r6 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 24 2004, 02:42:32)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i586 -fomit-frame-pointer"
CHOST="i586-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 -mcpu=i586 -fomit-frame-pointer"
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="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X adabas apache2 apm arts avi berkdb birdstep bitmap-fonts cde crypt cscope
ctype cups curl curlwrappers db2 dba dbase dbm dbmaker dbx debug dedicated doc
emacs emacs-w3 empress empress-bcs encode esoob f77 fastcgi fbcon filepro
firebird flatfile font-server foomaticdb fortran freetds frontbase ftp gdbm gif
ginac gnutls gpm gtk gtk2 guile hardened hardenedphp hyperwave-api icc icc-pgo
imlib informix ingres inifile innodb interbase ipv6 java jikes jpeg junit
kerberos ldap leim libg++ libwww mad matroska memlimit mikmod mime mmx motif
mpeg msql mssql mule mysql mysqli ncurses nls nptl oci8 odbc oggvorbis opengl
oracle7 oss pam pcre pdflib perl php png posix postgres ppds python qdbm qt
quicktime readline recode ruby samba sapdb sasl sdl shared sharedmem simplexml
slang snmp soap sockets socks5 solid spell spl sqlite ssl svga sybase sybase-ct
symlink tcltk tcpd tidy tiff tokenizer truetype truetype-fonts type1-fonts
unicode x86 xml xml2 xmlrpc xmms xprint xsl xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Ramana Kumar 2005-02-07 00:48:53 UTC
could mine be a related problem, trying to emerge gpm-1.20.1-r3 ? the end of emerge output:
...
make[1]: Entering directory `/var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc'
/bin/sed -f /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/infofilter /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/doc.gpm > /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/gpm.texinfo
awk -f /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/manpager doc.gpm
awk: /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/manpager:35: warning: escape sequence `\{' treated as plain `{'
awk: /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/manpager:36: warning: escape sequence `\}' treated as plain `}'
for i in gpm-root.1 gpm-types.7 gpm.8 mev.1 mouse-test.1; do \
        expand $i | sed s/^'[ ]*'//g > $i.new; \
        mv $i.new $i; \
done;
chmod 400 /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/gpm.texinfo
if [ "/usr/bin/makeinfo" != "no" ]; then /usr/bin/makeinfo /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/gpm.texinfo -o /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/gpm.info; fi
touch gpm.man
/var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/gpm.texinfo:277: warning: unlikely character ( in @var.
/var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/gpm.texinfo:277: warning: unlikely character ) in @var.
rm /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc/gpm.texinfo
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/doc'
make[1]: Entering directory `/var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/contrib'
/usr/bin/emacs -batch -l /var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/contrib/emacs/exec.el -exec '(byte-compile-file "emacs/t-mouse.el")'
/usr/bin/emacs: error while loading shared libraries: libXm.so.2: cannot open shared object file: No such file or directory
make[1]: *** [emacs/t-mouse.elc] Error 127
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1-r3/work/gpm-1.20.1/contrib'
make: *** [do-all] Error 1

!!! ERROR: sys-libs/gpm-1.20.1-r3 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 2 SpanKY gentoo-dev 2005-02-07 05:50:44 UTC
no, your problem is not related
Comment 3 Ville Oikarinen 2005-02-18 12:24:18 UTC
I don't know whether you mean by "compile error with emacs" that you had emacs installed or that the compile error was related to emacs.

Anyway, I got the same error. The build script tries to use emacs, but I only have xemacs.

The real fix would add a USE flag that would tell whether to use emacs, xemacs or skip the documentation building part of the build (and accordingly depend on either emacs or xemacs).

But here is a quick hack fix for xemacs users:
# cd /usr/local/bin
# ln -s /usr/bin/xemacs emacs

Now, make sure root has /usr/local/bin in the PATH and try again. Good luck!

Maybe the link is not very wise in the long run (there could be surprising differences between xemacs and emacs), but it seems to work in this case.
Comment 4 SpanKY gentoo-dev 2005-03-13 05:19:48 UTC
*** Bug 85061 has been marked as a duplicate of this bug. ***
Comment 5 Joshua Hoblitt 2005-03-29 17:37:06 UTC
I have a similar but slightly different error.

/usr/bin/emacs -batch -l /var/tmp/portage/gpm-1.20.1-r4/work/gpm-1.20.1/contrib/emacs/exec.el -exec '(byte-compile-file "emacs/t-mouse.el")'
Warning: Lisp directory `/usr/share/emacs/site-lisp' does not exist.
Opening directory: no such file or directory, /usr/share/emacs/site-lisp
make[1]: *** [emacs/t-mouse.elc] Error 255
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.1-r4/work/gpm-1.20.1/contrib'
make: *** [do-all] Error 1
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r4 x86_64 AMD Opteron(tm) Processor 850
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 29 2005, 15:14:59)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.5, 1.6.3, 1.4_p6, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa berkdb bitmap-fonts crypt cups curl emul-linux esd fam font-server fortran gdbm gif gnome gnome2 gpm gstreamer gtk gtk2 imlib ipv6 jp2 jpeg libwww lzw lzw-tiff motif mozilla mp3 mutlilib mysql ncurses nls ntpl ntplonly opengl oss pam perl pic png python readline ssl sysvipc tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales xml2 xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


Comment 6 Andreas Kotowicz 2005-04-03 11:20:58 UTC
any solution to this bug yet? I do have emacs installed but this package still doesn't compile. now I've unmerged gpm and evolution stoped working, so I really need this package to compile again.
Comment 7 Michael Imhof (RETIRED) gentoo-dev 2005-05-02 12:39:34 UTC
Any news or solutions for this bug?
Comment 8 SpanKY gentoo-dev 2005-05-02 15:04:31 UTC
ive never used emacs nor do i understand its language so i have no idea how to fix this :p
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-05-03 04:58:11 UTC
I added emacs IUSE to gpm-1.20.1-r4. I'm not going to add
xemacs IUSE (it's up to xemacs herd). I cannot reproduce the
bug on my laptop, so people who had this problem previously
please try emerging gpm-1.20.1-r4 w/ and w/o emacs USE
flag and report back if this works or not. Thanks in advance.
Comment 10 Andy Dustman 2005-05-05 07:23:56 UTC
You added IUSE="emacs" but there is no DEPEND for emacs. Thus when building a new system, attempts to merge gpm with USE="emacs" fails because emacs is not installed first, and the build attempts to run emacs on some .el files to compile them. This occurs with gpm-1.20.1-r4.
Comment 11 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-05-05 08:45:02 UTC
Thanks for your report. 
I tried to add emacs to DEPEND, but emacs does not have
m68k and sh keywords. Could you guys check and add your
arch keyword to app-editors/emacs? In the meantime,
please turn off emacs USE when you build system.
Comment 12 SpanKY gentoo-dev 2005-05-05 10:50:49 UTC
i'll use.mask emacs on m68k/sh

in the future you can ignore those arches when it comes to DEPENDs, i'll take care of it later when i see it
Comment 13 Colin Macdonald 2005-05-07 15:32:31 UTC
Got bitten by this "emacs-use-flag-without-dependency" issue while helping a friend install a new system.  He had emacs in his use flags and there is no dependency on virtual emacs.  Why is this broken package in stable?  Either add the dependency or pull the version with the broken emacs use flag from stable.

The system was x86 2005.0 FWIW.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2005-05-07 15:46:06 UTC
*** Bug 91836 has been marked as a duplicate of this bug. ***
Comment 15 Igor Balotsky 2005-05-07 15:57:46 UTC
The latest version, gpm-1.20.1-r4 works just fine. I have not had this problem for many months now.
Comment 16 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-05-07 16:40:21 UTC
Fixed in CVS. Colin: sorry for any inconvenience. 
I noticed the problem from comment #10 but I was 
not able to fix it because of broken deps to emacs 
on sh and m68k. Now emacs USE flag is masked on
those arches, so I can close this bug.

The change was committed to stable version of gpm
because it didn't change any files except elisp, and
for those who had problems with elisp failed to 
compile gpm anyways. However, my assumption was not
correct as it turned out that it affected people
having emacs USE flag without emacs on system :-(

If you have any trouble with it, please post comments
on this bug. Thanks in advance.
Comment 17 SpanKY gentoo-dev 2005-05-22 14:23:28 UTC
*** Bug 93591 has been marked as a duplicate of this bug. ***