Re: Question about xrename function

From: Robert Collins <robert.collins@dont-contact.us>
Date: Tue, 1 May 2001 07:17:11 +1000

----- Original Message -----
From: "Guido Serassio" <serassio@libero.it>
To: "Alex Rousskov" <rousskov@measurement-factory.com>
Cc: <squid-dev@squid-cache.org>
Sent: Tuesday, May 01, 2001 2:47 AM
Subject: Re: Question about xrename function

> Il 18.30 30/04/2001 Alex Rousskov ha scritto:
> >On Mon, 30 Apr 2001, Guido Serassio wrote:
> >
> > > Il 15.30 30/04/2001 Alex Rousskov ha scritto:
> > >
> > > >I am probably the person who wrote that comment. If you use
xrename in
> > > >debug.c then you have to link all programs that use debug.c with
> > > >tools.c where xrename is defined. IIRC, the latter presented a
problem
> > > >because tools.c depended on too many things; those things would
have
> > > >to be imported in every program that uses debug.c.
> > > >
> > > >All or some of the above may no longer be true though, and/or I
may be
> > > >misremembering. Try replacing "rename" in debug.c with "xrename",
see
> > > >what happens, and submit a better comment text afterwards. :)
> > > >
> > > >Alex.
> > >
> > > I tried, no problems, no compile errors, rotate works fine.
> > > So I removed the comment in the source and replaced rename with
xrename.
> >
> >Did you really try to build cache_manager, client, dnsserver, and all
> >other executables that do not link with $(OBJS) ?
> >
> >Alex.
>
> OK, I looked in Makefile, and found where is the problem:
>
> debug.o is linked in pinger, cache_diff and test_cache_digest
executable.
>
> So , how can resolve this problem ?

You could copy the logic from xrename as a work-around. Or perhaps
xrename could be moved into libmiscutil.a.

Rob

> Guido
>
>
>
> -
> =======================================================
> Serassio Guido
> Via Albenga, 11/4 10134 -
Torino - ITALY
> Tel. : +39.011.610749
> E-mail: serassio@interfree.it
> serassio@libero.it
> WWW: http://serassio.interfree.it
>
>
Received on Mon Apr 30 2001 - 15:20:07 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:51 MST