gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Build output


From: Camm Maguire
Subject: Re: [Gcl-devel] Build output
Date: 23 Apr 2003 08:42:04 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!

C Y <address@hidden> writes:

> --- Camm Maguire <address@hidden> wrote:
> OK, sure.  I can provide you with a temp account.  I'll email you the
> info.
> 
> > BTW, doesn't gentoo have a gcl package?
> 
> It does, but it doesn't work.  It's also for an older version of gcl.
> 

OK, there were two issues with your system bfd library:

1)  configure uses the output frmo gcc -Wl,-M -static to find the path
    to your static bfd library.  This is not the most robust but works
    in general.  On your system, this command also outputs a line like
    ___/usr/lib........libbfd.a, which messes up the LIBS variable.  A
    simple fix is addinf the "grep '^/'" in :

                MP=`$CC [ -Wl,-M ] -static -o foo foo.c -lbfd -liberty 2>&1 | 
tr '()' '\012\012' | grep '^/' | $AWK '{print $NF}' | sort | uniq`


2)  Even with this, there is a problem linking on your system with
    libbfd.a libiberty.a.  The following is a missing symbol:

gcc -o raw_gcl  \
        -L.   -lgcl -lm  
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../libbfd.a 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libiberty.a -lreadline -lncurses -lc 
-lgclp
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../libbfd.a(elf-strtab.o)(.text+0x4ee):
 In function `_bfd_elf_strtab_finalize':
: undefined reference to `htab_create_alloc'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../libbfd.a(merge.o)(.text+0x1217):
 In function `merge_strings':
: undefined reference to `htab_create_alloc'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../libbfd.a(merge.o)(.text+0x1256):
 In function `merge_strings':
: undefined reference to `htab_create_alloc'
collect2: ld returned 1 exit status
make[1]: *** [raw_gcl] Error 1


I don't know if the latest bfd has another library requirement, but in
any case, we'll probably need to look at this a bit more carefully
with attention to robustness.  Luckily, we have the following option,
which works without problem:

./configure --disable-statsysbfd --enable-locbfd

I've compiled a tree with these switches together with --enable-ansi
in my home directory on your machine.  I've run the test suite, and
its standard 2.5.2.

Perhaps you could ask the gentoo/gcl person to add this to their
package? 

Take care,



> CY
> 
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
> 
> 
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gcl-devel
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]