<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>7793</bug_id>
          
          <creation_ts>2002-09-11 07:04 0000</creation_ts>
          <short_desc>gcl fails to build</short_desc>
          <delta_ts>2003-02-04 19:42:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>seemant@gentoo.org</reporter>
          <assigned_to>george@gentoo.org</assigned_to>
          <cc>felix@fbreuer.de</cc>
    
    <cc>karltk@gentoo.org</cc>
    
    <cc>mmc@maruska.dyndns.org</cc>
    
    <cc>ska-fan@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2002-09-11 07:04:42 0000</bug_when>
            <thetext>gcc -pipe -fwritable-strings  -DVOL=volatile
-I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char  -o raw_gcl 
../o/main.o ../o/alloc.o ../o/gbc.o ../o/bitop.o ../o/typespec.o ../o/eval.o
../o/macros.o ../o/lex.o ../o/bds.o ../o/frame.o ../o/predicate.o
../o/reference.o ../o/assignment.o ../o/bind.o ../o/let.o ../o/conditional.o
../o/block.o ../o/iteration.o ../o/mapfun.o ../o/prog.o ../o/multival.o
../o/catch.o ../o/symbol.o ../o/cfun.o ../o/cmpaux.o ../o/package.o ../o/big.o
../o/number.o ../o/num_pred.o ../o/num_comp.o ../o/num_arith.o ../o/num_sfun.o
../o/num_co.o ../o/num_log.o ../o/num_rand.o ../o/earith.o ../o/character.o 
../o/sequence.o ../o/list.o ../o/hash.o ../o/array.o ../o/string.o
../o/regexpr.o ../o/structure.o ../o/toplevel.o ../o/file.o ../o/read.o
../o/backq.o ../o/print.o ../o/format.o ../o/pathname.o ../o/unixfsys.o
../o/unixfasl.o ../o/error.o ../o/unixtime.o ../o/unixsys.o ../o/unixsave.o
../o/funlink.o ../o/fat_string.o ../o/run_process.o ../o/nfunlink.o ../o/usig.o
../o/usig2.o ../o/utils.o ../o/makefun.o ../o/sockets.o  ../o/clxsocket.o
../o/init_pari.o ../o/nsocket.o ../o/new_init.o ../gmp/libgmp.a ../o/sfasl.o 
../o/readline.o ../lsp/defmacro.o ../lsp/evalmacros.o ../lsp/top.o
../lsp/module.o ../lsp/predlib.o ../lsp/setf.o ../lsp/arraylib.o ../lsp/assert.o
../lsp/defstruct.o ../lsp/describe.o ../lsp/iolib.o ../lsp/listlib.o
../lsp/mislib.o ../lsp/numlib.o ../lsp/packlib.o ../lsp/seq.o ../lsp/seqlib.o
../lsp/trace.o ../lsp/sloop.o  ../lsp/debug.o ../lsp/serror.o ../lsp/info.o
../lsp/destructuring_bind.o ../lsp/defpackage.o ../lsp/make_defpackage.o
../lsp/loop.o ../lsp/readline.o ../cmpnew/cmpinline.o ../cmpnew/cmputil.o
../cmpnew/cmptype.o ../cmpnew/cmpbind.o ../cmpnew/cmpblock.o ../cmpnew/cmpcall.o
../cmpnew/cmpcatch.o ../cmpnew/cmpenv.o ../cmpnew/cmpeval.o ../cmpnew/cmpflet.o
../cmpnew/cmpfun.o ../cmpnew/cmpif.o ../cmpnew/cmplabel.o ../cmpnew/cmplam.o
../cmpnew/cmplet.o ../cmpnew/cmploc.o ../cmpnew/cmpmap.o ../cmpnew/cmpmulti.o
../cmpnew/cmpspecial.o ../cmpnew/cmptag.o ../cmpnew/cmptop.o ../cmpnew/cmpvar.o
../cmpnew/cmpvs.o ../cmpnew/cmpwt.o  sys_gcl.o  -lc -lm -lreadline -lncurses 
/usr/lib/libbfd.a /usr/lib/libiberty.a  ../o/gcllib.a
../o/file.o: In function `open_stream&apos;:
../o/file.o(.text+0x1e4): the use of `tmpnam&apos; is dangerous, better use `mkstemp&apos;
/usr/lib/libbfd.a(srec.o): In function `srec_scan&apos;:
srec.o(.text+0xc5): undefined reference to `_sch_istable&apos;
srec.o(.text+0x2ec): undefined reference to `_sch_istable&apos;
srec.o(.text+0x511): undefined reference to `_sch_istable&apos;
srec.o(.text+0x5ec): undefined reference to `_sch_istable&apos;
/usr/lib/libbfd.a(binary.o): In function `binary_get_symtab&apos;:
binary.o(.text+0x1f8): undefined reference to `_sch_istable&apos;
/usr/lib/libbfd.a(binary.o)(.text+0x306): more undefined references to
`_sch_istable&apos; follow
/usr/lib/libbfd.a(syms.o): In function `bfd_decode_symclass&apos;:
syms.o(.text+0x256): undefined reference to `_sch_toupper&apos;
/usr/lib/libbfd.a(stabs.o): In function `_bfd_link_section_stabs&apos;:
stabs.o(.text+0x402): undefined reference to `_sch_istable&apos;
collect2: ld returned 1 exit status
make[1]: *** [raw_gcl] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/unixport&apos;
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>felix@fbreuer.de</who>
            <bug_when>2002-10-12 18:52:21 0000</bug_when>
            <thetext>I get this similar compile-time error

gcc -pipe -fwritable-strings  -DVOL=volatile
-I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char -O  -c -O -I../h 
cmpwt.c
../xbin/append  cmpwt.data  cmpwt.o
make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/cmpnew&apos;
(cd unixport; make saved_gcl)
make[1]: Entering directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/unixport&apos;
make[1]: warning: jobserver unavailable: using -j1.  Add `+&apos; to parent make rule.
gcc -pipe -fwritable-strings  -DVOL=volatile
-I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char -c  -I../h sys_gcl.c
gcc -pipe -fwritable-strings  -DVOL=volatile
-I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char  -o raw_gcl 
../o/main.o ../o/alloc.o ../o/gbc.o ../o/bitop.o ../o/typespec.o ../o/eval.o
../o/macros.o ../o/lex.o ../o/bds.o ../o/frame.o ../o/predicate.o
../o/reference.o ../o/assignment.o ../o/bind.o ../o/let.o ../o/conditional.o
../o/block.o ../o/iteration.o ../o/mapfun.o ../o/prog.o ../o/multival.o
../o/catch.o ../o/symbol.o ../o/cfun.o ../o/cmpaux.o ../o/package.o ../o/big.o
../o/number.o ../o/num_pred.o ../o/num_comp.o ../o/num_arith.o ../o/num_sfun.o
../o/num_co.o ../o/num_log.o ../o/num_rand.o ../o/earith.o ../o/character.o 
../o/sequence.o ../o/list.o ../o/hash.o ../o/array.o ../o/string.o
../o/regexpr.o ../o/structure.o ../o/toplevel.o ../o/file.o ../o/read.o
../o/backq.o ../o/print.o ../o/format.o ../o/pathname.o ../o/unixfsys.o
../o/unixfasl.o ../o/error.o ../o/unixtime.o ../o/unixsys.o ../o/unixsave.o
../o/funlink.o ../o/fat_string.o ../o/run_process.o ../o/nfunlink.o ../o/usig.o
../o/usig2.o ../o/utils.o ../o/makefun.o ../o/sockets.o  ../o/clxsocket.o
../o/init_pari.o ../o/nsocket.o ../o/new_init.o ../gmp/libgmp.a ../o/sfasl.o 
../o/readline.o ../lsp/defmacro.o ../lsp/evalmacros.o ../lsp/top.o
../lsp/module.o ../lsp/predlib.o ../lsp/setf.o ../lsp/arraylib.o ../lsp/assert.o
../lsp/defstruct.o ../lsp/describe.o ../lsp/iolib.o ../lsp/listlib.o
../lsp/mislib.o ../lsp/numlib.o ../lsp/packlib.o ../lsp/seq.o ../lsp/seqlib.o
../lsp/trace.o ../lsp/sloop.o  ../lsp/debug.o ../lsp/serror.o ../lsp/info.o
../lsp/destructuring_bind.o ../lsp/defpackage.o ../lsp/make_defpackage.o
../lsp/loop.o ../lsp/readline.o ../cmpnew/cmpinline.o ../cmpnew/cmputil.o
../cmpnew/cmptype.o ../cmpnew/cmpbind.o ../cmpnew/cmpblock.o ../cmpnew/cmpcall.o
../cmpnew/cmpcatch.o ../cmpnew/cmpenv.o ../cmpnew/cmpeval.o ../cmpnew/cmpflet.o
../cmpnew/cmpfun.o ../cmpnew/cmpif.o ../cmpnew/cmplabel.o ../cmpnew/cmplam.o
../cmpnew/cmplet.o ../cmpnew/cmploc.o ../cmpnew/cmpmap.o ../cmpnew/cmpmulti.o
../cmpnew/cmpspecial.o ../cmpnew/cmptag.o ../cmpnew/cmptop.o ../cmpnew/cmpvar.o
../cmpnew/cmpvs.o ../cmpnew/cmpwt.o  sys_gcl.o  -lc -lm -lreadline -lncurses 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbfd.a
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libiberty.a  ../o/gcllib.a
../o/file.o: In function `open_stream&apos;:
../o/file.o(.text+0x59c): the use of `tmpnam&apos; is dangerous, better use `mkstemp&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbfd.a(elf-strtab.o): In
function `_bfd_elf_strtab_finalize&apos;:
elf-strtab.o(.text+0x3eb): undefined reference to `htab_create_alloc&apos;
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbfd.a(merge.o): In function
`merge_strings&apos;:
merge.o(.text+0xf72): undefined reference to `htab_create_alloc&apos;
merge.o(.text+0xfb1): undefined reference to `htab_create_alloc&apos;
collect2: ld returned 1 exit status
make[1]: *** [raw_gcl] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/unixport&apos;
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 12, Exitcode 2
!!! (no error message)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>felix@fbreuer.de</who>
            <bug_when>2002-10-13 08:20:32 0000</bug_when>
            <thetext>The second of the linker errors is resolved by linking agains
/usr/lib/libiberty.a instead of
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libiberty.a . How do I modify the ebuild
to have make do it this way?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>felix@fbreuer.de</who>
            <bug_when>2002-10-13 11:29:26 0000</bug_when>
            <thetext>Adding the following to src_compile of gcl-2.4.3.ebuild is (a rather ugly) way
to make gcl compile:

for i in */makefile makedefs makedefc makefile config.status ; do 
  mv $i $i.orig.2 ;
  cat $i.orig.2 | \
    sed -e
&apos;s|/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libiberty.a|/usr/lib/libiberty.a|g&apos; &gt; $i
done


However the ebuild still fails, as the make install step produces the following
error:

if [ -d &quot;/usr/lib&quot; ] ; then  \
(cd /var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/gcl-tk/demos ; \
echo &apos;(load &quot;../tkl.o&quot;)(TK::GET-AUTOLOADS (directory &quot;*.lisp&quot;))&apos; |
../../unixport/saved_gcl) ; fi
GCL (GNU Common Lisp)  Version(2.5.0) Sun Oct 13 17:31:05 CEST 2002
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter

&gt;
Loading ../tkl.o
Not enough space in bfd_buf 80 16
make[1]: *** [install1] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3&apos;
make: *** [install] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 14, Exitcode 2
!!! (no error message)

This error does *not* occur when I do make install manually!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-10-15 19:01:04 0000</bug_when>
            <thetext>*** Bug 9175 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ska-fan@gentoo.org</who>
            <bug_when>2002-10-16 00:49:31 0000</bug_when>
            <thetext>Maybe mask 2.4.3, as 2.4.0 works for me and 2.4.3 does not.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2002-10-16 02:09:59 0000</bug_when>
            <thetext>Hi guys.

Sorry for a long lag in responce - I just got back to my bugs after a long trip.
I masked gcl-2.4.3 for now, will try Felix&apos;es suggestions shortly.
Thanks for reports and some problem tracing!

George</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mmc@maruska.dyndns.org</who>
            <bug_when>2002-10-18 05:32:48 0000</bug_when>
            <thetext>well, i added into src_compile()  (ebuild 2.4.3):

for i in  makedefs makedefc ; do 
     mv $i $i.libs.orig ;
     cat $i.libs.orig | \
     sed -e &apos;s|/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbfd.a
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libiberty.a|-liberty -lbfd|g&apos; &gt; $i
done


and it works</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2002-10-18 15:30:19 0000</bug_when>
            <thetext>Thanks Michal and everybody for tracing this!

I made a few changes to 2.4.3.ebuild, please unmask and test. 
Especially pcc and gcc-3.2 people?

George</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>felix@fbreuer.de</who>
            <bug_when>2002-10-23 12:23:40 0000</bug_when>
            <thetext>I still get this error during make install:


if [ -d &quot;/usr/lib&quot; ] ; then  \
(cd /var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/gcl-tk/demos ; \
echo &apos;(load &quot;../tkl.o&quot;)(TK::GET-AUTOLOADS (directory &quot;*.lisp&quot;))&apos; |
../../unixport/saved_gcl) ; fi
GCL (GNU Common Lisp)  Version(2.5.0) Wed Oct 23 18:18:53 CEST 2002
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter

&gt;
Loading ../tkl.o
Not enough space in bfd_buf 80 16
make[1]: *** [install1] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3&apos;
make: *** [install] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 8, Exitcode 2
!!! (no error message)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2002-11-07 01:31:22 0000</bug_when>
            <thetext>felix make sure /var/tmp/portage has enough space

george: the latest one works for me.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>