Subject: uucp/uucico not finding libs... (and dozens of other failed links)
To: None <>
From: Brian Grayson \(home\) <>
List: current-users
Date: 11/13/2001 21:26:13
  Sorry if this was discussed recently -- I had to resubscribe to the
list.  My last sup was on Saturday the 11th.  A quick search of the
archive didn't seem to turn up this problem.

  When I just did a build from virtually scratch, it complained when
it got to gnu/libexec/uucp/uucico:

install ===> gnu/libexec/uucp/uucico
/home/src/tools/obj.i386/tools.NetBSD-1.5Y-i386/bin/i386--netbsdelf-gcc -o uucico -nostdlib -Wl,-rpath-link,/usr/lib /usr/lib/crt0.o /usr/lib/crtbegin.o uucico.o trans.o send.o rec.o xcmd.o prot.o protg.o protf.o prott.o prote.o proti.o protj.o proty.o protz.o time.o chat.o conn.o copy.o log.o util.o /home/src/gnu/libexec/uucp/libunix/obj.i386/libunix.a /home/src/gnu/libexec/uucp/libuuconf/obj.i386/libuuconf.a /home/src/gnu/libexec/uucp/libuucp/obj.i386/libuucp.a -L/usr/lib -lgcc -lc -lgcc /usr/lib/crtend.o
 i386--netbsdelf-gcc: /home/src/gnu/libexec/uucp/libunix/obj.i386/libunix.a: No such file or directory
 i386--netbsdelf-gcc: /home/src/gnu/libexec/uucp/libuuconf/obj.i386/libuuconf.a: No such file or directory
 i386--netbsdelf-gcc: /home/src/gnu/libexec/uucp/libuucp/obj.i386/libuucp.a: No such file or directory

  I did a bit of digging, and here's what I understand:

  - make build does a make dependall and a make install.

  - make install in /usr/src/gnu/libexec/uucp/libuucp does nothing.

  - if you do "make" (no target) or "make all" in
  /usr/src/gnu/libexec/uucp/libuucp, it builds the library (unlike
  "make install").

  - make install still doesn't do anything.

  - if you do this plain "make" in all three directories mentioned
  above, then the build of uucico et al works.

  The same problem occurs with libiberty, gnu/usr.bin/cvs/libdiff,
gnu/usr.bin/cvs/libcvs, gnu/usr.bin/gcc/backend,
gnu/usr.bin/gcc/frontend, gnu/usr.bin/groff/{libgroff, libdriver,
libbib}, gnu/usr.bin/rcs/lib, gnu/usr.bin/texinfo/common, ....

  If I change one of the "libinstall::" lines in any of these
Makefiles to be

libinstall:: lib${LIB}.a

then everything Just Works, as that forces a "make install" to
actually do something.

  Of course, if instead of "make build" I do "make dependall all
install", I presume everything would Just Work as well.

  Am I the only one who's stumbled across this?  Am I doing something
idiotic?  :)  I don't think I have any weirdness in my mk.conf or