Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24255 - (gtk)bitchx-1.0.19-r5 doesnt compile, zvt missing
Summary: (gtk)bitchx-1.0.19-r5 doesnt compile, zvt missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-10 19:07 UTC by Travis Tilley (RETIRED)
Modified: 2003-07-16 21:58 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 Travis Tilley (RETIRED) gentoo-dev 2003-07-10 19:07:53 UTC
gtkBitchX is refusing to compile, complaining about zvt. I'm assuming this is a
dependency that this ebuild should have if gtk and gnome are in the use settings.

Now, a completely different issue is that i dont want just gtkbitchx if
gtkbitchx is being installed. the way things are now it seems impossible to have
both the gui and console versions, and this is a disagreeable situation. why not
have two ebuilds, one for bitchx and one for gtkbitchx? there are other packages
in the tree that do exactly this, vim for example. gvim is it's own ebuild. as
is kvim. but then again, they both inherit from a vim eclass and i dont know if
that is a good thing (tm). *shrug*

Anyways, here is the error message:

In file included from term.c:646:
gtkbitchx.c:6:25: zvt/zvtterm.h: No such file or directory
In file included from term.c:646:
gtkbitchx.c: In function `output_info':
gtkbitchx.c:487: warning: implicit declaration of function `zvt_term_feed'
gtkbitchx.c:487: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:487: (Each undeclared identifier is reported only once
gtkbitchx.c:487: for each function it appears in.)
gtkbitchx.c:487: parse error before ')' token
gtkbitchx.c:487: warning: left-hand operand of comma expression has no effect
gtkbitchx.c:487: warning: left-hand operand of comma expression has no effect
gtkbitchx.c:487: parse error before ')' token
gtkbitchx.c: In function `gtk_sizewindow':
gtkbitchx.c:494: warning: implicit declaration of function `zvt_term_set_size'
gtkbitchx.c:494: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:494: parse error before ')' token
gtkbitchx.c: In function `gtk_contextmenu':
gtkbitchx.c:674: warning: implicit declaration of function `zvt_term_get_buffer'
gtkbitchx.c:674: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:674: parse error before ')' token
gtkbitchx.c:750: warning: implicit declaration of function `vt_get_selection'
gtkbitchx.c:750: parse error before ')' token
gtkbitchx.c:754: warning: assignment makes pointer from integer without a cast
gtkbitchx.c: In function `zvt_load_font':
gtkbitchx.c:843: warning: implicit declaration of function `zvt_term_set_fonts'
gtkbitchx.c:843: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:843: parse error before ')' token
gtkbitchx.c:844: parse error before ')' token
gtkbitchx.c:845: parse error before ')' token
gtkbitchx.c: In function `gtk_windowicon':
gtkbitchx.c:869: warning: implicit declaration of function
`gdk_imlib_data_to_pixmap'
gtkbitchx.c: In function `gtk_command_handler':
gtkbitchx.c:1861: warning: implicit declaration of function
`zvt_term_set_color_scheme'
gtkbitchx.c:1861: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:1861: parse error before ')' token
gtkbitchx.c:1910: parse error before ')' token
gtkbitchx.c: In function `window_map':
gtkbitchx.c:2042: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:2042: parse error before ')' token
gtkbitchx.c: In function `gtkbx_init':
gtkbitchx.c:2112: warning: implicit declaration of function `zvt_term_new'
gtkbitchx.c:2113: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:2113: parse error before ')' token
gtkbitchx.c:2114: warning: implicit declaration of function
`zvt_term_set_scrollback'
gtkbitchx.c:2114: parse error before ')' token
gtkbitchx.c:2115: warning: implicit declaration of function `zvt_term_set_blink'
gtkbitchx.c:2115: parse error before ')' token
gtkbitchx.c:2116: warning: implicit declaration of function `zvt_term_set_bell'
gtkbitchx.c:2116: parse error before ')' token
gtkbitchx.c:2176: parse error before ')' token
gtkbitchx.c:2180: warning: implicit declaration of function
`zvt_term_set_background'
gtkbitchx.c:2180: parse error before ')' token
gtkbitchx.c:2180: warning: left-hand operand of comma expression has no effect
gtkbitchx.c:2180: warning: left-hand operand of comma expression has no effect
gtkbitchx.c:2180: warning: left-hand operand of comma expression has no effect
gtkbitchx.c:2180: parse error before ')' token
gtkbitchx.c:2182: parse error before ')' token
gtkbitchx.c: In function `gtk_new_window':
gtkbitchx.c:2570: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:2570: parse error before ')' token
gtkbitchx.c:2571: parse error before ')' token
gtkbitchx.c:2572: parse error before ')' token
gtkbitchx.c:2576: parse error before ')' token
gtkbitchx.c:2576: warning: left-hand operand of comma expression has no effect
gtkbitchx.c:2576: warning: left-hand operand of comma expression has no effect
gtkbitchx.c:2576: warning: left-hand operand of comma expression has no effect
gtkbitchx.c:2576: parse error before ')' token
gtkbitchx.c:2633: parse error before ')' token
gtkbitchx.c:2644: parse error before ')' token
gtkbitchx.c: In function `gui_screen':
gtkbitchx.c:3064: `ZvtTerm' undeclared (first use in this function)
gtkbitchx.c:3064: parse error before ')' token
gtkbitchx.c:3065: parse error before ')' token
gtkbitchx.c: In function `gui_startup':
gtkbitchx.c:3288: warning: implicit declaration of function `gdk_imlib_init'
gmake[1]: *** [term.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory `/var/tmp/portage/bitchx-1.0.19-r5/work/BitchX/source'
make: *** [gtkBitchX] Error 2

!!! ERROR: net-irc/bitchx-1.0.19-r5 failed.
!!! Function src_compile, Line 100, Exitcode 2
!!! (no error message)
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2003-07-10 19:12:52 UTC
I'm thinkin the depend line should look like this:

DEPEND=">=sys-libs/ncurses-5.1 
        ssl? ( >=dev-libs/openssl-0.9.6 )
        xmms? ( media-sound/xmms )
        ncurses? ( sys-libs/ncurses )
        esd? ( >=media-sound/esound-0.2.5
                >=media-libs/audiofile-0.1.5 )
        gtk? ( =x11-libs/gtk+-1.2*
                >=media-libs/imlib-1.9.10-r1 )
        gnome? ( >=gnome-base/gnome-libs-1.4.1.2-r1
                >=x11-libs/libzvt-2.0.0 )"
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2003-07-10 19:30:39 UTC
nevermind, even with libzvt installed i get the same error.

In file included from term.c:646:
gtkbitchx.c:6:25: zvt/zvtterm.h: No such file or directory

perhaps it wants a 1.x version of libzvt for gnome1, something not available in portage at this time.
Comment 3 Luca Barbato gentoo-dev 2003-07-10 19:55:04 UTC
make sure you have both gtk and gnome as useflags

and make sure you have the gnome-libs installed (those are the old gtk1 gnome and includes the zvt gtk1 too)

the ebuild should work as supposed.

try to rsync just in case you have a wrong one.

here is working as should.
Comment 4 Travis Tilley (RETIRED) gentoo-dev 2003-07-10 21:49:58 UTC
gtk and gnome are both in my use flags and i experienced this error while doing an emerge world -uDe (because i had changed my opt and use settings). I will run an emerge sync and then emerge bitchx -uDe overnight just in case. till it finishes i cant really say much more.
Comment 5 Travis Tilley (RETIRED) gentoo-dev 2003-07-11 18:11:25 UTC
same error. emerge sync && emerge bitchx -uDe and bam:


gcc -I. -I/var/tmp/portage/bitchx-1.0.19-r5/work/BitchX/include -I../include -I. -I./include -D_REENTRANT -I/usr/X11R6/include -I/usr/include/glib-1.2 -I/usr/include/gtk-1.2 -I/usr/lib/glib/include -O2 -Wall -march=pentium3 -mcpu=pentium4 -pipe  -c ./term.c
tcl_public.c:1569:1: warning: no newline at end of file
gcc -I. -I/var/tmp/portage/bitchx-1.0.19-r5/work/BitchX/include -I../include -I. -I./include -D_REENTRANT -I/usr/X11R6/include -I/usr/include/glib-1.2 -I/usr/include/gtk-1.2 -I/usr/lib/glib/include -O2 -Wall -march=pentium3 -mcpu=pentium4 -pipe  -c timer.c
In file included from term.c:646:
gtkbitchx.c:6:25: zvt/zvtterm.h: No such file or directory


so yeah, there is a problem. with a -uDe it should be installing any necessary deps and it isnt.


ayanami root # emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.5.75 i686 Intel(R) Celeron(R) CPU 1.80GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/root/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode gif jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gtkhtml alsa gdbm berkdb slang readline arts bonobo svga ggi tcltk java ruby X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla cdr 3ds acl acpi acpi4linux amd ardour-ksi artswrappersuid dga dnd dvd evo faad fbcon fbdev flash fluidsynth gb gnomedb gstreamer gtk2 guile icc imap jack jack-tmpfs ladcca lcms leim libgda mad matrox md5sum mng mozinterfaceinfo moznocompose moznoirc moznomail mozsvg mozxmlterm mpi mule music nas neXt objc ofx openal pic plotutils samba slp snmp socks5 sox sse tiff type1 usagi usb v4l vim-with-x wmf wxwindows xinerama xosd xvid -3dnow"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -mcpu=pentium4 -O2 -pipe"
CXXFLAGS="-march=pentium3 -mcpu=pentium4 -O2 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox buildpkg"


i've been playing around with gcc 3.3 a lot lately but for this i did the entire -uDe merge with gcc 3.2.2.


ayanami root # gcc --version
gcc (GCC) 3.2.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Comment 6 Martin Lesser 2003-07-16 01:33:37 UTC
SOLUTION: In bitchx-1.0.19-r5.ebuild replace

        #ugly workaround
        use gtk && use gnome && ( \
                CFLAGS="${CFLAGS} -I/usr/include/gnome-1.0"

with
        #ugly workaround
        use gtk && use gnome && ( \
                CFLAGS="${CFLAGS} -I/usr/include/gnome-1.0"
                append-flags "-I/usr/include/gnome-1.0"

Don't know why CFLAGS are not appended when emake is called.

HTH, Martin

Comment 7 Luca Barbato gentoo-dev 2003-07-16 03:14:06 UTC
it is strage since the CFLAGS should be updated in the configuration and set directly in the Makefile.

Anyway I applied your fix hoping that this time it work for everyone.

thanks
Comment 8 Travis Tilley (RETIRED) gentoo-dev 2003-07-16 06:20:53 UTC
i just did an emerge sync and saw the new -r5 come down the line:


net-irc/bitchx/ChangeLog
        4247 100%    0.00kB/s    0:00:00
net-irc/bitchx/Manifest
        1111 100%    0.00kB/s    0:00:00
net-irc/bitchx/bitchx-1.0.19-r5.ebuild
        3666 100%    0.00kB/s    0:00:00

i even see the changes in the ebuild when i open it in a text editor. however.

gcc -I. -I/var/tmp/portage/bitchx-1.0.19-r5/work/BitchX/include -I../include -I. -I./include -D_REENTRANT -I/usr/X11R6/include -I/usr/include/glib-1.2 -I/usr/include/gtk-1.2 -I/usr/lib/glib/include -O2 -Wall -march=pentium3 -mcpu=pentium4 -pipe  -c ./term.c
tcl_public.c:1569:1: warning: no newline at end of file
gcc -I. -I/var/tmp/portage/bitchx-1.0.19-r5/work/BitchX/include -I../include -I. -I./include -D_REENTRANT -I/usr/X11R6/include -I/usr/include/glib-1.2 -I/usr/include/gtk-1.2 -I/usr/lib/glib/include -O2 -Wall -march=pentium3 -mcpu=pentium4 -pipe  -c timer.c
In file included from term.c:646:
gtkbitchx.c:6:25: zvt/zvtterm.h: No such file or directory
In file included from term.c:646:
gtkbitchx.c: In function `output_info':


i'm not seeing -I/usr/include/gnome-1.0 anywhere. but i do have all the needed stuff installed:
 
ayanami root # ls /usr/include/gnome-1.0/zvt/
lists.h  vt.h  vtx.h  zvtterm.h


this bug is -not- fixed. i have no idea why not either.
Comment 9 Travis Tilley (RETIRED) gentoo-dev 2003-07-16 06:34:59 UTC
changing emake to make also has no effect. or econf to ./configure. so this has nothing to do with the eclass functions.

i dont use gtkbitchx so this really isnt bothering me and apparently either nobody else gets the error or (more likely) not many people are using gtkbitchx. which is why it should be broken off into another ebuild IMHO. installing both bitchx and gtkbitchx at once is also impossible atm i'd imagine.
Comment 10 Travis Tilley (RETIRED) gentoo-dev 2003-07-16 21:58:23 UTC
Wow. *shakes head* I just took a look at the ebuild. CFLAGS is being set from inside a subshell. I cant believe I didnt notice that. To fix this, the workaround should be:
 
    #ugly workaround
    use gtk && use gnome && ( \
        einfo "gtkBitchX will be built, if you want BitchX please issue"
        einfo "USE="-gtk" emerge bitchx"
        sleep 10
        ) && CFLAGS="${CFLAGS} -I/usr/include/gnome-1.0"


ooops. :)
guess this proves nobody uses gtkbitchx since it never should have worked *cough* so what's this about seperate ebuilds for bitchx and gtkbitchx? anyone?

Problem fixed, this bug can remain closed. :)