Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 1997 01:55:32 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, jkh@time.cdrom.com
Cc:        cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org, jkh@freefall.freebsd.org
Subject:   Re: cvs commit: src/gnu/usr.bin/man/lib Makefile
Message-ID:  <199704111555.BAA27230@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> man makefiles tn3270-like complications and evilness.)  Perhaps config.h
>> should be a source file (configured before import time) as in cvs and gdb.
>
>Well, we're still not out of the woods with gdb yet, boss:  :-)
>
>in/gdb/gdb/../../../../contrib/gdb/opcodes/dis-buf.c
>cc -O2 -pipe -I/usr/src/gnu/usr.bin/gdb/gdb -I/usr/include/readline -I/usr/src/gnu/usr.bin/gdb/gdb/../bfd -DNO_MMALLOC -I/usr/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/include/. -I/usr/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/. -I/usr/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/bfd/. -I/usr/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/libiberty/. -I/usr/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/config/. -DHAVE_CONFIG_H   -c /usr/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/opcodes/disassemble.c
>make: don't know how to make bfd. Stop
>*** Error code 2

It's almost the same problem :-(.  `ld -f' doesn't work right for
libraries that don't already exist, and libbfd.a doesn't exist if `make
depend' is run first.  It works for nonexistent libraries referenced as
foo/bar.a (ld -f just prints the name folling the `l' in this case), but
not for nonexistent libraries accessed as -Lfoo -lbar (ld -f just prints
the name following the `l' in this case too, so -lbfd becomes plain bfd.
Oops.  It can't do better, since the library might actually be named
foo/bar.so.666 when it exists, or there might be more than one -L).

>Hmmmm.  I'll look into this now.  What do you want me to do with
>config.h then?

Just avoid doing it that way in future imports.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704111555.BAA27230>