On Tue, Dec 28, 1999 at 03:29:02PM +0100, Niels M�ller wrote:
> I wrote:
> > Jonathan McDowell <[EMAIL PROTECTED]> writes:
> >
> > > The comp.unix.programmer FAQ (Section 6.2) suggests that to build
> > > static libraries out of other static libraries you should use the
> > > original object files.
> > >
> > > I've attached the output of a "make" on my system with a clean
> > > 0.1.20. Also the output of "./configure" in case that's of use.
> > But apprearantly I changed that some time ago. I don't know what is
> > the best way to handle this; should object files that are needed on
> > some platforms but not others be included in liblsh.a, or linked
> > into the executables later?
> I think the following patch to src/Makefile.am.in should restore the
> old behaviour. Can you try if it works for you?
Builds lsh, lshd and others successfully, but fails at the following
point:
make[3]: Entering directory `/usr/src/lsh-0.1.20/src/testsuite'
gcc -g -O2 -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Waggregate-return -Wpointer-arith -Wbad-function-cast
-Wnested-externs -o spki-tag-test spki-tag-test.o ../liblsh.a
../symmetric/libsymmetric.a -lutil -lnsl -lcrypt -lz -lgmp
../liblsh.a(sexp.o): In function `sexp_argp_parser':
/usr/src/lsh-0.1.20/src/sexp.c:915: undefined reference to `argp_error'
make[3]: *** [spki-tag-test] Error 1
make[3]: Leaving directory `/usr/src/lsh-0.1.20/src/testsuite'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/lsh-0.1.20/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lsh-0.1.20'
make: *** [all-recursive-am] Error 2
This seems to be due to the Makefile.am in src/testsuite not having
@LIBOBJS@ specified in LDADD.
Note that I didn't edit Makefile.am.in - I changed Makefile.in as I
haven't got round to upgrading my autoconf from 2.12 yet, so can't build
all the config files. I'm probably going to be busy in the next week or
so, but I'll upgrade to 2.13 and give it another shot when I have time.
J.
--
Social deviant, | "Who's going to f***ing find | Fax: +44-28-30250834
programmer and | out?" -- Richard Nixon | Tel: +44-28-30252654
student | | Made by HuggieTag