Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121477 - toshiba-utils appears to require X and possibly GTK+
Summary: toshiba-utils appears to require X and possibly GTK+
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on: 152134
Blocks:
  Show dependency tree
 
Reported: 2006-02-03 14:39 UTC by Avuton Olrich
Modified: 2007-01-12 12:36 UTC (History)
2 users (show)

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


Attachments
toshiba-utils-2.0.1-r1.ebuild.diff (toshiba-utils-2.0.1-r1.ebuild.diff,912 bytes, patch)
2006-09-30 18:04 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Avuton Olrich 2006-02-03 14:39:14 UTC
Trying to install without X:

checking for X... (cached) no
configure: error: 
*** X libraries or include files not found. Check 'config.log' for
*** more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/toshiba-utils-2.0.1-r1/work/toshutils-2.0.1/config.log

!!! ERROR: app-laptop/toshiba-utils-2.0.1-r1 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  toshiba-utils-2.0.1-r1.ebuild, line 33:   Called econf

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

emerge --info:
Portage 2.1_pre4-r1 (!/usr/portage/profiles/default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.6-r2, 2.6.15-gentoo-r2 i686)
=================================================================
System uname: 2.6.15-gentoo-r2 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
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.5
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -ffast-math -march=i686"
CHOST="i686-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=i686 -pipe"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
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="/mnt/shapeshifter/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa ao apache2 asf audiofile avi bash-completion bitmap-fonts bittorrent bzip2 cairo cardbus cdda cddb cdparanoia cdrom cgi cli css cups dbus dhcp dri dvd encode escreen exif fam fat ffmpeg firefox flac fontconfig ftp gcj gdbm gif gimp glibc-omitfp gmail gpm gs gstreamer hal http icecast icq ieee1394 input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse irc irssi jabber java java-external javascript jikes joystick jp2 jpeg jpeg2k kde lame libwww linuxthreads-tls lm_sensors logrotate lzo lzw mad mikmod mmap mmx mng moznoxft mozsvg mp3 mp4live mpeg mpeg2 mplayer mpm-prefork msn musepack ncurses net network nfs nntp nodrm nptl nptlonly ntfs ogg oggvorbis openssh openssl oscar pam pcmcia pcre pdf pdflib perl php png python qt quicktime rar readline real reiser4 reiserfs rtc scp screen sdl session sharedmem shout sid sndfile speex spell ssl subversion svg svgz sysfs szip t1lib tcpd tga theora tiff timidity truetype truetype-fonts type1 type1-fonts udev usb utf8 vfat video_cards_ati vidix vorbis win32codecs wma wma123 wordperfect xfs xft xine xv xvid yahoo zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:580: checking host system type
configure:611: checking whether make sets ${MAKE}
configure:640: checking for gcc
configure:753: checking whether the C compiler (gcc -O2 -ffast-math -march=i686 -s) works
configure:769: gcc -o conftest -O2 -ffast-math -march=i686  -s conftest.c  1>&5
configure:795: checking whether the C compiler (gcc -O2 -ffast-math -march=i686 -s) is a cross-compiler
configure:800: checking whether we are using GNU C
configure:809: gcc -E conftest.c
configure:828: checking whether gcc accepts -g
configure:871: checking for a BSD compatible install
configure:924: checking how to run the C preprocessor
configure:945: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1008: checking for X
configure:1075: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1071:27: X11/Intrinsic.h: No such file or directory
configure: failed program was:
#line 1070 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
configure:1151: gcc -o conftest -O2 -ffast-math -march=i686  -s conftest.c -lXt  1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
configure: failed program was:
#line 1144 "configure"
#include "confdefs.h"

int main() {
XtMalloc()
; return 0; }
configure:1842: checking for bison
configure:1875: checking for flex
configure:1909: checking for yywrap in -lfl
configure:1928: gcc -o conftest -O2 -ffast-math -march=i686  -s conftest.c -lfl   1>&5
configure:1953: checking for xmessage
configure:1988: checking for wall
configure:2023: checking for yywrap in -lfl
configure:2080: checking for X
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2006-09-30 18:04:30 UTC
Created attachment 98489 [details, diff]
toshiba-utils-2.0.1-r1.ebuild.diff

the USE flags in this ebuild don't seem to actually do anything except pull in gtk+.  they should set options to configure as well.

this patch should make configure do the right thing, but i still get errors while compiling:

gcc -s -o tdocked tdocked.o hci.o sci.o
gcc -Wall -I../pixmaps -DLINUX  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include  -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -DVERSION=\"2.0.1\" -DBINDIR=\"/usr/bin\"\
        -DXMESSAGE=\"/usr/bin/xmessage\" -DWALL=\"/usr/bin/wall\" -c thotswap.c
thotswap.c: In function `DisplayXMessage':
thotswap.c:187: error: `XMESSAGE' undeclared (first use in this function)
thotswap.c:187: error: (Each undeclared identifier is reported only once
thotswap.c:187: error: for each function it appears in.)
make: *** [thotswap.o] Error 1


i do have xmessage and wall installed at the referenced locations.

also, you can't build this package with USE="-gtk":

gcc -Wall -I../pixmaps -DLINUX    -O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -M sci.c hci.c fan.c svpw.c hotkey.c tpasswd.c dispswitch.c machine.c misc.c alarms.c config.c alarm.c wmtuxtime.c wmgeneral.c tuxtime-conf.c ownerstring.c tdocked.c thotswap.c tbacklight.c |\
        sed 's/\/usr\/[^ ]* *//g;/^  \\$/d' |\
        grep -v '^ \\$' >>Makefile
dispswitch.c:52:20: gtk/gtk.h: No such file or directory
machine.c:42:20: gtk/gtk.h: No such file or directory
misc.c:45:20: gtk/gtk.h: No such file or directory
alarms.c:33:20: gtk/gtk.h: No such file or directory
tuxtime-conf.c:42:20: gtk/gtk.h: No such file or directory
[...]
dispswitch.c:52:20: gtk/gtk.h: No such file or directory
dispswitch.c:78: error: syntax error before '*' token
dispswitch.c:78: warning: type defaults to `int' in declaration of `internal'
dispswitch.c:78: warning: type defaults to `int' in declaration of `external'
dispswitch.c:78: warning: type defaults to `int' in declaration of `simultaneous'
dispswitch.c:78: warning: data definition has no type or storage class
dispswitch.c: In function `CatchSignal':
dispswitch.c:105: warning: implicit declaration of function `gtk_main_quit'
dispswitch.c: At top level:
dispswitch.c:143: error: syntax error before '*' token
dispswitch.c: In function `SetDisplayCallback':
dispswitch.c:149: error: `data' undeclared (first use in this function)
dispswitch.c:149: error: (Each undeclared identifier is reported only once
dispswitch.c:149: error: for each function it appears in.)
dispswitch.c: In function `main':
dispswitch.c:274: error: `GtkWidget' undeclared (first use in this function)
dispswitch.c:274: error: `window' undeclared (first use in this function)
dispswitch.c:274: error: `box' undeclared (first use in this function)
dispswitch.c:274: error: `row' undeclared (first use in this function)
dispswitch.c:274: error: `frame' undeclared (first use in this function)
dispswitch.c:274: error: `button' undeclared (first use in this function)
dispswitch.c:274: error: `label' undeclared (first use in this function)


etc.

i cleaned up some of the die messages while i was at it.
Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2006-12-18 14:21:52 UTC
see bug #146978 for an updated ebuild that sould fix also this issue.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-01-12 12:36:34 UTC
-r2 is in the tree