Subject: Problem building rdist: fails to link on NetBSD-current pmax
To: None <port-pmax@netbsd.org>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 12/10/1994 17:53:49
rdist fails to link due to multiple definitions of the symbol
``_warn'':
    cc   -o rdist gram.o docmd.o expand.o lookup.o main.o server.o -lcompat
    err.o(.text+0x1b0): multiple definition of `_warn'
    main.o(.text+0x88c): first defined here


As far as I can guess, a cycle in libc.a is causing the linker
to include err.o in its output.  err.o is compiled from err.c,
which has the definition of err(3).   Since rdist defines
its own version of warn(), this results in the multiple definition.

If that diagnosis is correct, I'm not sure how to go about fixing this.
I know rdist _used_ to build. Perhaps I have a bad library.

Has anyone else tried this??