[PATCH] updated GNU/FreeBSD patch for latest binutils

Robert Millan zeratul2@wanadoo.es
Mon Jun 2 11:29:00 GMT 2003


hi Nick!

On Fri, May 30, 2003 at 08:59:09AM +0100, Nick Clifton wrote:
> 
> I would prefer to have to have some verification that the current
> versions of the configuration files are broken for native FreeBSD
> systems before we go changing them again.

it seems there's still some problem (on GNU/FreeBSD, haven't tested
native FreeBSD). It happens with the CVS snapshot i took after you
fixed the GNU/FreeBSD test case in gas.

I built binutils like this:

  ./configure --enable-shared
  make
  sudo make prefix=/tmp/usr/ install

after some testing i found that only when this exact combination is used
(if i pass --prefix=/tmp/usr to configure, and not to make, then it works),
and only on GNU/FreeBSD, the install target fails with:

/bin/sh ./libtool  --mode=install /bin/sh /home/rmh/tmp/binutils/binutils-cvs20030530/install-sh -c libopcodes.la /tmp/usr//lib/libopcodes.la
libtool: install: warning: relinking `libopcodes.la'
(cd /home/rmh/tmp/binutils/binutils-cvs20030530/opcodes; /bin/sh ./libtool --mode=relink gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o libopcodes.la -rpath /usr/local/lib -release 2.14.90 dis-buf.lo disassemble.lo i386-dis.lo ../bfd/libbfd.la)
gcc -shared  .libs/dis-buf.o .libs/disassemble.o .libs/i386-dis.o  -Wl,--rpath -Wl,/usr/local/lib  -L/usr/local/lib -lbfd   -Wl,-soname -Wl,libopcodes-2.14.90.so -o .libs/libopcodes-2.14.90.so
/usr/bin/ld: cannot find -lbfd
collect2: ld returned 1 exit status
libtool: install: error: relink `libopcodes.la' with the above command before installing it

maybe a missing -L flag?

I'm attaching you the full build log in case you want to look.

-- 
Robert Millan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-log.gz
Type: application/octet-stream
Size: 14692 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20030602/f4b50b1c/attachment.obj>


More information about the Binutils mailing list