Bug 140909 - net-analyzer/rrdtool-1.2.15 build fails on tcl bindings
Bug#: 140909 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: TEST-REQUEST Assigned To: netmon@gentoo.org Reported By: jdaluz@gmail.com
Component: Ebuilds
URL: 
Summary: net-analyzer/rrdtool-1.2.15 build fails on tcl bindings
Keywords:  
Status Whiteboard: 
Opened: 2006-07-18 06:40 0000
Description:   Opened: 2006-07-18 06:40 0000
Updating rrdtool from 1.2.13 to 1.2.15, I get the following error:

creating rrdupdate
make[2]: Leaving directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15/src'
Making all in bindings
make[2]: Entering directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15/bindings'
Making all in tcl
make[3]: Entering directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15/bindings/tcl'
echo "package ifneeded Rrd 1.2.15 \"load /usr/lib64/tclrrd1.2.15[info
sharedlibextension]\"" > pkgIndex.tcl
x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe -ggdb -fno-strict-aliasing -Wall
-std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline -W  -fPIC -DPIC -march=k8 -O2
-pipe -ggdb -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -Winline -W  -fPIC -DPIC -fPIC -I/usr/include -I../../src
-DUSE_TCL_STUBS -c tclrrd.c -DVERSION=\"1.2.15\"
tclrrd.c: In function 

------- Comment #1 From Jose daLuz 2006-07-18 06:40:23 0000 -------
Updating rrdtool from 1.2.13 to 1.2.15, I get the following error:

creating rrdupdate
make[2]: Leaving directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15/src'
Making all in bindings
make[2]: Entering directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15/bindings'
Making all in tcl
make[3]: Entering directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15/bindings/tcl'
echo "package ifneeded Rrd 1.2.15 \"load /usr/lib64/tclrrd1.2.15[info
sharedlibextension]\"" > pkgIndex.tcl
x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe -ggdb -fno-strict-aliasing -Wall
-std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline -W  -fPIC -DPIC -march=k8 -O2
-pipe -ggdb -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -Winline -W  -fPIC -DPIC -fPIC -I/usr/include -I../../src
-DUSE_TCL_STUBS -c tclrrd.c -DVERSION=\"1.2.15\"
tclrrd.c: In function ‘Rrd_Create’:
tclrrd.c:93: warning: unused parameter ‘clientData’
tclrrd.c: In function ‘Rrd_Dump’:
tclrrd.c:190: warning: unused parameter ‘clientData’
tclrrd.c: In function ‘Rrd_Last’:
tclrrd.c:216: warning: unused parameter ‘clientData’
tclrrd.c: In function ‘Rrd_Update’:
tclrrd.c:244: warning: unused parameter ‘clientData’
tclrrd.c: In function ‘Rrd_Fetch’:
tclrrd.c:314: warning: unused parameter ‘clientData’
tclrrd.c: In function ‘Rrd_Graph’:
tclrrd.c:399: warning: cast from pointer to integer of different size
tclrrd.c:355: warning: unused parameter ‘clientData’
tclrrd.c: In function ‘Rrd_Tune’:
tclrrd.c:458: warning: unused parameter ‘clientData’
tclrrd.c: In function ‘Rrd_Resize’:
tclrrd.c:479: warning: unused parameter ‘clientData’
tclrrd.c: In function ‘Rrd_Restore’:
tclrrd.c:500: warning: unused parameter ‘clientData’
x86_64-pc-linux-gnu-gcc -pipe -shared -Wl,-rpath,/usr/lib64:/usr/lib64
-L../../src/.libs -L../../src -L/usr/lib64 tclrrd.o -o tclrrd1.2.15.so -lrrd_th
-lm -L/usr/lib64 -ltclstub8.4  -lfreetype -lpng -lz -lart_lgpl_2 -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -ltclstub8.4
collect2: ld returned 1 exit status
make[3]: *** [tclrrd1.2.15.so] Error 1
make[3]: Leaving directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15/bindings/tcl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/rrdtool-1.2.15/work/rrdtool-1.2.15'
make: *** [all] Error 2

!!! ERROR: net-analyzer/rrdtool-1.2.15 failed.

I do not have the tcltk USE flag set, but setting it and rebuilding produces
the same error. I thought this flag was deprecated in favor of separate tcl and
tk USE flags.

Portage 2.1.1_pre3-r1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla,
glibc-2.4-r3, 2.6.17-ck1-r2 x86_64)
=================================================================
System uname: 2.6.17-ck1-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r1, 2.16.93, 2.17, 2.17.50.0.2, 2.17.50.0.3
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler
/etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb -ffriend-injection"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks fixpackages parallel-fetch
sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://gentoo.osuosl.org/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise
/usr/portage/local/layman/portage-xgl /usr/portage/local/layman/liferea_overlay
/usr/portage/local/layman/gentopia
/usr/portage/local/layman/break-my-gentoo-main"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr
cli crypt cups dbus debug dlloader dri dvd dvdr eds emboss encode esd firefox
flac foomaticdb fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imlib
ipv6 isdnlog java jpeg kde kdehiddenvisibility ldap lzw lzw-tiff mad mono mp3
mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl pic png pppd
python qt qt3 quicktime readline reflection ruby samba sdl session spell spl
sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb
userlocales vorbis xml xml2 xorg xpm xv zlib elibc_glibc input_devices_keyboard
input_devices_mouse input_devices_evdev kernel_linux linguas_en userland_GNU
video_cards_vesa video_cards_nvidia"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS

------- Comment #2 From Jose daLuz 2006-07-21 07:01:03 0000 -------
This same error occurs in rrdtool-1.2.15-r1.

------- Comment #3 From Xake 2006-12-05 18:09:01 0000 -------
If you have tcl on yur system this fails no matter if you have USE="tcl" or
not.

First case == USE="tcl"
It tries to compile with -ltclstub8.4, however on my system the file is name
libtclstaub8.4g.so (observe the "g") and editing the Makefiles to use
-ltclstaub8.4g instead fixes this.

Second case == USE="-tcl"
--without-tcllib does nothing resulting in ./copnfigure pick up tcl from env.
The correct variable is --disable-tcl. Using this disable tcl no matter if tcl
is installed or not.

------- Comment #4 From Cédric Krier 2006-12-16 05:19:56 0000 -------
Fix in cvs

------- Comment #5 From Jose daLuz 2006-12-16 06:50:20 0000 -------
Sorry, I haven't followed this closely. 1.2.15-r2, which I merged on Dec 3,
already fixed this on my system. I just rebuilt it (after syncing and checking
the Changelog to make sure I had the change from this morning) and it still
builds correctly with USE=-tcl.

I'm not sure why the earlier -r2 worked for me but not for Peter Hjalmarsson.

I forgot that I had filed this bug in July! 8-0