Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39950 - emerge dev-perl/Tk-TableMatrix-1.01 fails
Summary: emerge dev-perl/Tk-TableMatrix-1.01 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 02:41 UTC by felix schmid
Modified: 2004-06-12 05:14 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 felix schmid 2004-01-31 02:41:06 UTC
I try to emerge Tk-TableMatrix. It fails without telling me the reason (well, Error 1/2).


Reproducible: Always
Steps to Reproduce:
1. 'emerge Tk-TableMatrix'
2.
3.

Actual Results:  
compilation fails:

tkTable.c:2692: warning: passing arg 2 of `Tcl_SetVar2' from incompatible 
pointer type
tkTable.c:2700: warning: passing arg 2 of `Tcl_TraceVar' from incompatible 
pointer type
tkTable.c:2733: warning: passing arg 2 of pointer to function from incompatible 
pointer type
tkTable.c:2733: warning: assignment makes pointer from integer without a cast
tkTable.c:2764: warning: passing arg 2 of pointer to function from incompatible 
pointer type
tkTable.c:2764: warning: assignment makes pointer from integer without a cast
tkTable.c: In function `TableFetchSelection':
tkTable.c:3461: `Arg' undeclared (first use in this function)
tkTable.c:3461: `listArgv' undeclared (first use in this function)
tkTable.c:3462: parse error before "value"
tkTable.c:3480: warning: passing arg 3 of pointer to function from incompatible 
pointer type
tkTable.c:3497: `value' undeclared (first use in this function)
tkTable.c:3510: warning: passing arg 1 of `sscanf' makes pointer from integer 
without a cast
tkTable.c:3567: warning: implicit declaration of function `Tcl_GetResult'
tkTable.c:3567: warning: passing arg 2 of pointer to function makes pointer from 
integer without a cast
make[1]: *** [tkTable.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/Tk-TableMatrix-1.
01/work/Tk-TableMatrix-1.01/pTk'
make: *** [pTk/libpTk.a] Error 2

!!! ERROR: dev-perl/Tk-TableMatrix-1.01 failed.
!!! Function perl-module_src_compile, Line 50, Exitcode 2
!!! compilation failed


Expected Results:  
clean compile

hydra felix 518 (~): emerge info 
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.0-mm1)
=================================================================
System uname: 2.6.0-mm1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb 
/usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config 
/usr/share/config /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://mirrors.sec.informatik.
tu-darmstadt.de/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.
org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 apm arts avi berkdb bonobo cdr crypt cups directfb 
encode esd ethereal fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml imap 
imlib innodb java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg 
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt 
quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype 
usb x86 xml xml2 xmms xv zlib"
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2004-02-29 02:36:25 UTC
I can't duplicate this locally - and oddly enough, my emerge info is fairly identical to your own except my CFLAGS doesn't include the "-march=athlon-xp" flag (and I'm dev enough to admit that I don't follow the whole CFLAG thing well enough to know if that could be the culprit). I don't suppose you could humor me for a few minutes and take out the -march call from your CFLAGS and CXXFLAGS?
Comment 2 felix schmid 2004-02-29 11:44:12 UTC
tried it with this: CFLAGS="-O2 -pipe"...no success:


tkTable.c:514: warning: passing arg 3 of pointer to function from incompatible pointer type
tkTable.c: In function `TableWidgetObjCmd':
tkTable.c:651: warning: passing arg 3 of pointer to function from incompatible pointer type
tkTable.c:820: warning: passing arg 3 of pointer to function from incompatible pointer type
tkTable.c: In function `TableDestroy':
tkTable.c:940: warning: passing arg 2 of `Tcl_UntraceVar' from incompatible pointer type
tkTable.c: In function `TableConfigure':
tkTable.c:1048: error: `Arg' undeclared (first use in this function)
tkTable.c:1048: error: (Each undeclared identifier is reported only once
tkTable.c:1048: error: for each function it appears in.)
tkTable.c:1048: error: `objArray' undeclared (first use in this function)
tkTable.c:1063: warning: implicit declaration of function `LangString'
tkTable.c:1063: warning: passing arg 2 of pointer to function from incompatible pointer type
tkTable.c:1063: warning: assignment makes pointer from integer without a cast
tkTable.c:1092: warning: passing arg 2 of pointer to function from incompatible pointer type
tkTable.c:1092: warning: assignment makes pointer from integer without a cast
tkTable.c:1108: warning: passing arg 2 of `Tcl_UntraceVar' from incompatible pointer type
tkTable.c:1113: warning: passing arg 2 of `Tcl_SetVar2' from incompatible pointer type
tkTable.c:1132: warning: passing arg 2 of `Tcl_TraceVar' from incompatible pointer type
tkTable.c:1244: warning: passing arg 3 of pointer to function from incompatible pointer type
tkTable.c: In function `TableSetActiveIndex':
tkTable.c:2611: warning: passing arg 2 of `Tcl_SetVar2' from incompatible pointer type
tkTable.c: In function `TableVarProc':
tkTable.c:2692: warning: passing arg 2 of `Tcl_SetVar2' from incompatible pointer type
tkTable.c:2700: warning: passing arg 2 of `Tcl_TraceVar' from incompatible pointer type
tkTable.c:2733: warning: passing arg 2 of pointer to function from incompatible pointer type
tkTable.c:2733: warning: assignment makes pointer from integer without a cast
tkTable.c:2764: warning: passing arg 2 of pointer to function from incompatible pointer type
tkTable.c:2764: warning: assignment makes pointer from integer without a cast
tkTable.c: In function `TableFetchSelection':
tkTable.c:3461: error: `Arg' undeclared (first use in this function)
tkTable.c:3461: error: `listArgv' undeclared (first use in this function)
tkTable.c:3462: error: parse error before "value"
tkTable.c:3480: warning: passing arg 3 of pointer to function from incompatible pointer type
tkTable.c:3497: error: `value' undeclared (first use in this function)
tkTable.c:3510: warning: passing arg 1 of `sscanf' makes pointer from integer without a cast
tkTable.c:3567: warning: implicit declaration of function `Tcl_GetResult'
tkTable.c:3567: warning: passing arg 2 of pointer to function makes pointer from integer without a cast
make[1]: *** [tkTable.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/Tk-TableMatrix-1.01/work/Tk-TableMatrix-1.01/pTk'
make: *** [pTk/libpTk.a] Error 2

!!! ERROR: dev-perl/Tk-TableMatrix-1.01 failed.
!!! Function perl-module_src_compile, Line 49, Exitcode 2
!!! compilation failed

hydra felix 507 (~): 
Comment 3 Knut Liseter 2004-04-10 03:38:43 UTC
I have the exact same error as stated here. I found that using the following ebuild (a simple edit of the 1.01 ebuild using version 1.1 of tk::tablematrix) I was able to compile tk-tablematrix -- File name is "Tk-TableMatrix-1.1.ebuild":

#######################
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-perl/Tk-TableMatrix/Tk-TableMatrix-1.01.ebuild,v 1.4 2004/01/20
14:02:36 mcummings Exp $
                                                                                                        
inherit perl-module
                                                                                                        
S=${WORKDIR}/${P}
DESCRIPTION="Perl module for Tk-TableMatrix"
SRC_URI="http://search.cpan.org/CPAN/authors/id/C/CE/CERNEY/${P}.tar.gz"
HOMEPAGE="http://search.cpan.org/author/CERNEY/${P}"
                                                                                                        
SLOT="0"
LICENSE="Artistic"
KEYWORDS="x86 amd64 ppc sparc alpha"
                                                                                                        
DEPEND="dev-perl/perl-tk !=dev-perl/ExtUtils-MakeMaker-6.15"
                                                                                                        
src_unpack() {
        unpack ${A}
        cd ${S}
        #epatch ${FILESDIR}/patch.diff
}
#################################


Note that i uncommented the epatch bit. Also, when building, looking in the work-directory of Tk-TableMatrix-1.01 (/var/tmp/portage/Tk-TableMatrix-1.01/work/Tk-TableMatrix-1.01/pTk
) that the file tkTable.h does not define "Arg", which apparently causes all the problems. 

In the work directory of Tk-TableMatrix-1.1 (/var/tmp/portage/Tk-TableMatrix-1.1/work/Tk-TableMatrix-1.1/pTk) I noted that tkTable.h DOES define "Arg", given as:
#define Arg Tcl_Obj*

Why this only happens to our setup I dont know, but hopefully this sheds som light on the problem. Below is my setup


root@vega root # emerge --info
Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr composite crypt cups directfb encode esd foomaticdb freetype gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype video_cards_radeon x86 xml xml2 xmms xv xvid zlib"


Some other stuff:
root@vega root # perl -v
This is perl, v5.8.2 built for i686-linux

root@vega root # epm -qa | grep perl-tk
perl-tk-800.025-r1


Comment 4 David Cooper 2004-05-05 13:19:20 UTC
I get the same exact error on an Intel P4. Come to think about it, I've tried to emerge Tk-TableMatrix before awhile back (it was still 1.01) and had the same implosions. Seems that it has made it into the main portage and my system is trying to import it as a new package. So its making emerge world not very happy.

info:

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1)
=================================================================
System uname: 2.6.1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo http://cudlug.cudenver.edu/gentoo/ http://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex truetype usb x86 xml2 xmms xv zlib"

This is perl, v5.8.2 built for i686-linux

Comment 5 Paul Greidanus 2004-05-11 17:18:34 UTC
I just tried something I found on a seperate bug list, if you emerge perl-tk, does that fix the problem? 
Mine seems to be emerging with no problems.
Comment 6 Martin Bonner 2004-05-15 14:44:11 UTC
I just experienced the same error today, but yes, emerge perl-tk solved the problem for me, so it looks like it's just a dependancy issue.
Comment 7 felix schmid 2004-05-24 02:25:50 UTC
Sorry, I already have emerged perl-tk. Fails nevertheless :(
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2004-06-12 05:14:30 UTC
1.1 is in the tree, almost verbatim to the suggested ebuild. Please reopen this bug if the problem persists. Thanks!