Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78328 - sci-electronics/tclspice-0.2.17 fails to compile
Summary: sci-electronics/tclspice-0.2.17 fails to compile
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 02:19 UTC by Tamran Lengyel
Modified: 2005-02-24 16:12 UTC (History)
1 user (show)

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


Attachments
Fix for proper definition of malloc and realloc (gcc34-fix.diff,443 bytes, patch)
2005-01-17 02:20 UTC, Tamran Lengyel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tamran Lengyel 2005-01-17 02:19:32 UTC
I had a little trouble with the malloc() and realloc() statements, which I fixed with a patch (see attachment).  Now, it fails to compile with the following:
... [previous cut for clarity]
maths/sparse/libsparse.a misc/libmisc.a -lm -lncurses -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: spice.o: relocation R_X86_64_32S against `SIMinfo' can not be used when making a shared object; recompile with -fPIC
spice.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libspice.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/tclspice-0.2.17/work/tclspice/src'
make[1]: *** [tcl-recursive] Error 2
make[1]: Leaving directory `/var/tmp/portage/tclspice-0.2.17/work/tclspice/src'
make: *** [tcl] Error 2

!!! ERROR: sci-electronics/tclspice-0.2.17 failed.
!!! Function src_compile, Line 28, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message



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




Portage 2.0.51-r12 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.        
r0, 2.6.10-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r2 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jun  4 2004, 23:
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=opteron -pipe -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config         
3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/shar        
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /us        
exmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texm        
tex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=opteron -pipe -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 berkdb bitmap-fonts bonobo cdr crypt cup        
r emul-linux-x86 esd f77 fam flac font-server fortran gdbm ggi gif gpm         
 gtk gtkhtml guile imagemagick imlib innodb ipv6 jp2 jpeg libwww lm_sen        
lzw-tiff mad mikmod motif moznoirc moznomail moznoxft mp3 mpeg4 mplayer        
ltilib mysql ncurses nls nptl oggvorbis opengl oscar pam pdflib perl pl        
ng python readline sdl slang ssl tcltk tcpd tetex tiff truetype truetyp        
ype1-fonts usb userlocales videos xinerama xml xml2 xmms xpm xrandr xsc        
 xv xvid yahoo zlib"
Unset:  LDFLAGS
Comment 1 Tamran Lengyel 2005-01-17 02:20:39 UTC
Created attachment 48739 [details, diff]
Fix for proper definition of malloc and realloc
Comment 2 Tamran Lengyel 2005-01-17 16:54:39 UTC
Well, re-compiling with:

CFLAGS="-fPIC" emerge tclspic

works fine.  I know you're not supposed to do that, but
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2005-01-22 14:10:28 UTC
Ok, if you could compile this manually; open up src/Makefile.in before running ./configure and if you look at line 637 - add in an -fPIC after $(COMPILE)... Let's see if that fixes it.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2005-02-24 16:12:20 UTC
Please try request in comment #3.