Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110901 - app-i18n/minichinput-0.1.9 fails to build.
Summary: app-i18n/minichinput-0.1.9 fails to build.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 08:00 UTC by Casper Gasper
Modified: 2006-11-05 09:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
error log of ebuild (config.log,17.93 KB, text/plain)
2005-10-30 08:03 UTC, Casper Gasper
Details
Preliminary patch for some of the bugs in configure.in (configure.in.patch,3.12 KB, patch)
2006-08-04 15:13 UTC, Matthias Bethke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Casper Gasper 2005-10-30 08:00:55 UTC
Ebuild of 0.1.9 fails.  Last few lines:

checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for XOpenDisplay in -lX11... no
configure: error: Cannot find X11 libs



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




Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 Intel(R) Celeron(R) M processor         1300MHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl eds emboss
encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib
java jpeg junit kde libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql
ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline samba sdl sftplogging slang spell ssl svga tcpd tiff truetype
truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Casper Gasper 2005-10-30 08:03:03 UTC
Created attachment 71733 [details]
error log of ebuild
Comment 2 Matthias Bethke 2006-08-04 15:10:00 UTC
It seems to me like there's a bug in autoconf. minichinput uses the AC_PATH_X macro which according to the docs will set either $x_includes and $x_libraries or $no_x. However, it doesn't set any of these variables here. This causes the assignment
LDFLAGS="$LDFLAGS -L$x_libraries"
to insert an -L switch without an argument into gcc's commandline which it chokes on of course.
I'll attach a preliminary hack to fix this, hardcoding the paths to where they have to be on my system. "Fixing" this reveals another bug in the Xft and Freetype library path searching, I also fixed this (unlike the above, this should be a solid fix, I'll mail it upstream as well).
Then there is a final hurdle to be taken in the resulting config.status. If anyone finds the unterminated substitute command in the following sed script, please tell:

/^[      ]*VPATH[        ]*=/{
s/:*$(srcdir):*/:/;
s/:*${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[     ]*\):*/\1/;
s/:*$//;
s/^[^=]*=[       ]*$//;
}

:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,ImmModules/turbo/Makefile.  Generated from Makefile.in by configure.,;t t
s,@srcdir@,.,;t t
s,@abs_srcdir@,/var/tmp/portage/minichinput-0.1.9/work/miniChinput-0.1.9/ImmModules/turbo,;t t
s,@top_srcdir@,../..,;t t
s,@abs_top_srcdir@,/var/tmp/portage/minichinput-0.1.9/work/miniChinput-0.1.9/ImmModules/turbo/../..,;t t
s,@builddir@,.,;t t
s,@abs_builddir@,/var/tmp/portage/minichinput-0.1.9/work/miniChinput-0.1.9/ImmModules/turbo,;t t
s,@top_builddir@,../../,;t t
s,@abs_top_builddir@,/var/tmp/portage/minichinput-0.1.9/work/miniChinput-0.1.9/ImmModules/turbo/../../.,;t t
s,@INSTALL@,/bin/install -c,;t t
Comment 3 Matthias Bethke 2006-08-04 15:13:57 UTC
Created attachment 93448 [details, diff]
Preliminary patch for some of the bugs in configure.in
Comment 4 Wai Ling 2006-08-06 20:52:37 UTC
I have applied your patch, but the errors still persist:

>>> Emerging (1 of 1) app-i18n/minichinput-0.1.9 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking miniChinput-0.1.9.tar.gz ;-)
>>> checking miniChinput-0.1.9-rxvt.patch ;-)
>>> Unpacking source...
>>> Unpacking miniChinput-0.1.9.tar.gz to /var/portage/portage/minichinput-0.1.9/work
 * Applying miniChinput-0.1.9-rxvt.patch ...                                                                           [ ok ]
 * Applying minichinput-0.1.9-configure.patch ...                                                                      [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/portage/portage/minichinput-0.1.9/work/miniChinput-0.1.9 ...
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for a BSD-compatible install... /bin/install -c
checking whether make sets ${MAKE}... yes
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for X... libraries , headers
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for XOpenDisplay in -lX11... no
configure: error: Cannot find X11 libs

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/portage/portage/minichinput-0.1.9/work/miniChinput-0.1.9/config.log

!!! ERROR: app-i18n/minichinput-0.1.9 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  minichinput-0.1.9.ebuild, line 36:   Called econf
  ebuild.sh, line 541:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 5 Matthias Bethke 2006-08-07 03:36:37 UTC
Sorry, forgot to mention it: even though configure.in is included with the original archive, it also comes with a ready-made confugure script and this is what portage uses. So you have to recreate the script with autoconf after patching for now---just add an "autoconf" as the first line in the ebuild's src_compile(). Then the configuration should go a little further and die with a bunch of "unterminated `s' command" errors.
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2006-11-05 09:42:05 UTC
Sorry for the delay. I've just fixed the problem with passing --x-includes and --x-libraries. Thanks for the bug report and comments.