Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197177 - sys-libs/gpm-1.20.1-r6 will not compile.
Summary: sys-libs/gpm-1.20.1-r6 will not compile.
Status: RESOLVED DUPLICATE of bug 195977
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-26 21:51 UTC by Sabeeh Baig
Modified: 2007-10-26 21:55 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 Sabeeh Baig 2007-10-26 21:51:25 UTC
sys-libs/gpm-1.20.1-r6 will not compile.  It errors out with an "emake failed" message.  I've tried different C/XXFlags, LDFlags.  I have commented out both so that it would use the default.  I've even tried GCC 4.1.2 and GCC 4.2.2.  Gpm installed fine when my install was new.  Now, it refuses to recompile, no matter what I do.  The original compile of gpm runs fine, but I want to find out why it won't recompile.

Reproducible: Always

Steps to Reproduce:
1. emerge gpm

Actual Results:  
The compile died.

Expected Results:  
It should have finished compiling and unmerged the original instances of gpm.

Build Log:

>>> Unpacking source...
>>> Unpacking gpm-1.20.1.tar.bz2 to /var/tmp/portage/sys-libs/gpm-1.20.1-r6/work
>>> Unpacking gpm-1.20.1-patches-1.4.tar.bz2 to /var/tmp/portage/sys-libs/gpm-1.20.1-r6/work
 [32;01m*[0m Applying various patches (bugfixes/updates) ...
 [32;01m*[0m   01_all_info.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   03_all_DESTDIR.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   04_all_root.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   05_all_serialconsole.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   08_all_nodebug.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   09_all_logfillup.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   10_all_link.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   11_all_lib_segv.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   12_all_linux26-dependcache.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   20_all_gpm-1.20.1-subscript.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   21_all_synps2-four-way-button.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   25_all_gpm-mousewheel-support.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   30_all_gpm-1.20.1-weak-wgetch.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m   60_all_parallel-build.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Done with patching
 [32;01m*[0m Applying gpm-configure-LANG.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying gpm-daemon.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1 ...
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/lib64 --sysconfdir=/etc/gpm --build=x86_64-pc-linux-gnu
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--hash-style=gnu) works... yes
checking whether the C compiler (gcc -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--hash-style=gnu) 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... /usr/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... no
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/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
bison -y  /var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src/prog/gpm-root.y && mv y.tab.c prog/gpm-root.c
# make links in srcdir
make[1]: [dep] Error 1 (ignored)
# create dependencies
for DEPS in `echo *.c */*.c`; do \
	x86_64-pc-linux-gnu-gcc -I. -I /var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src -M -I/var/tmp/portage/sys-libs/gpm-1.20.1-r6/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/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src'
make[1]: Entering directory `/var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src'
x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -c -o main.o main.c
x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -c -o gpm.o gpm.c
x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -c -o gpn.o gpn.c
x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -c -o mice.o mice.c
gpn.c: In function 'loadlut':
gpn.c:108: warning: pointer targets in passing argument 1 of 'getsym' differ in signedness
gpn.c:110: warning: pointer targets in passing argument 1 of 'getsym' differ in signedness
gpm.c: In function 'getMouseData':
gpm.c:380: warning: pointer targets in initialization differ in signedness
gpm.c:399: warning: pointer targets in return differ in signedness
gpm.c:430: warning: pointer targets in return differ in signedness
gpm.c: In function 'processMouse':
gpm.c:482: warning: pointer targets in passing argument 2 of 'which_mouse->m_type->fun' differ in signedness
gpm.c: In function 'processConn':
gpm.c:812: warning: passing argument 3 of 'accept' from incompatible pointer type
gpm.c: In function 'old_main':
gpm.c:1123: warning: value computed is not used
gpm.c: In function 'open_console':
gpm.c:172: warning: control reaches end of non-void function
mice.c:170: warning: type qualifiers ignored on function return type
mice.c: In function 'option_modem_lines':
mice.c:185: warning: pointer targets in initialization differ in signedness
mice.c:186: warning: pointer targets in initialization differ in signedness
mice.c:187: warning: pointer targets in initialization differ in signedness
gpm.c:165: warning: 'si.line' is used uninitialized in this function
mice.c: In function 'M_gunze':
mice.c:1323: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness
gpm.c: In function 'get_console_size':
gpm.c:165: warning: 'si.line' is used uninitialized in this function
gpm.c:157: note: 'si.line' was declared here
x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR="\"/etc/gpm\"" -DSBINDIR="\"/usr/sbin\""  -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer -c -o special.o special.c
special.c: In function 'processSpecial':
special.c:158: error: 'OPEN_MAX' undeclared (first use in this function)
special.c:158: error: (Each undeclared identifier is reported only once
special.c:158: error: for each function it appears in.)
make[1]: *** [special.o] Error 1
make[1]: *** Waiting for unfinished jobs....
gpm.c: In function 'processMouse':
gpm.c:165: warning: 'si.line' is used uninitialized in this function
gpm.c:157: note: 'si.line' was declared here
gpm.c: In function 'emit_keystrokes':
gpm.c:165: warning: 'si.line' is used uninitialized in this function
gpm.c:157: note: 'si.line' was declared here
gpm.c: In function 'old_main':
gpm.c:165: warning: 'si.line' is used uninitialized in this function
gpm.c:157: note: 'si.line' was declared here
make[1]: Leaving directory `/var/tmp/portage/sys-libs/gpm-1.20.1-r6/work/gpm-1.20.1/src'
make: *** [do-all] Error 1
 [31;01m*[0m 
 [31;01m*[0m ERROR: sys-libs/gpm-1.20.1-r6 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m              ebuild.sh, line 1695:  Called dyn_compile
 [31;01m*[0m              ebuild.sh, line 1033:  Called qa_call 'src_compile'
 [31;01m*[0m              ebuild.sh, line   44:  Called src_compile
 [31;01m*[0m   gpm-1.20.1-r6.ebuild, line   44:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   	emake \
 [31;01m*[0m   		CC=$(tc-getCC) \
 [31;01m*[0m   		AR=$(tc-getAR) \
 [31;01m*[0m   		RANLIB=$(tc-getRANLIB) \
 [31;01m*[0m   		EMACS=: \
 [31;01m*[0m   		|| die "emake failed"
 [31;01m*[0m  The die message:
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/tmp/portage/sys-libs/gpm-1.20.1-r6/temp/build.log'.
 [31;01m*[0m 

emerge --info:

brisbane sabeeh # emerge --info
Portage 2.1.3.16 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23-gentoo x86_64)
=================================================================
System uname: 2.6.23-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+
Timestamp of tree: Thu, 25 Oct 2007 19:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r3
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
LINGUAS="en_US en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/layman/xeffects /usr/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus divx dri dvd dvdr encode ffmpeg firefox flac foomaticdb fortran gdbm gif gphoto2 gpm gtk gtk2 hal iconv ieee1394 ipv6 isdnlog java javascript jpeg jpeg2k libnotify mad matroska midi mime mmx mp3 mpeg mplayer msn mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oscar oss pam pcre pdf perl png pppd python quicktime readline realmedia reflection session spl sse sse2 ssl startup-notification svg tcpd theora truetype truetype-fonts type1-fonts unicode usb vcd vim-syntax vorbis wmp xcomposite xorg xprint xvid" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="fglrx vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 21:55:45 UTC

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