Amanda-Users

Re: 2.5.0 compile problems on HP-UX 10.10

2006-04-16 14:45:07
Subject: Re: 2.5.0 compile problems on HP-UX 10.10
From: stan <stanb AT panix DOT com>
To: Kevin Till <kevin.till AT zmanda DOT com>
Date: Sun, 16 Apr 2006 14:39:03 -0400
On Sun, Apr 16, 2006 at 08:14:55AM -0700, Kevin Till wrote:
> stan wrote:
> 
> >Here's the line that causes the error:
> >
> >char *aparent = vstralloc(parent_dir, "/", include, NULL);
> >
> >
> >
> >Any sugestiosn as to wheer to begin on resoloving this?
> 
> 
> see if this patch help:
> 
> --- calcsize.c  9 Mar 2006 16:51:41 -0000       1.36
> +++ calcsize.c  29 Mar 2006 15:45:08 -0000      1.37
> @@ -24,7 +24,7 @@
>   * file named AUTHORS, in the root directory of this distribution.
>   */
>  /*
> - * $Id: calcsize.c,v 1.36 2006/03/09 16:51:41 martinea Exp $
> + * $Id: calcsize.c,v 1.37 2006/03/29 15:45:08 martinea Exp $
>   *
>   * traverse directory tree to get backup size estimates
>   */
> @@ -329,10 +329,11 @@
>      int l;
>      int parent_len;
>      int has_exclude = !is_empty_sl(exclude_sl) && use_gtar_excl;
> +    char *aparent;
> 
>      if(parent_dir == NULL || include == NULL) return;
> 
> -    char *aparent = vstralloc(parent_dir, "/", include, NULL);
> +    aparent = vstralloc(parent_dir, "/", include, NULL);
> 
>      if(stat(parent_dir, &finfo) != -1)
>         parent_dev = finfo.st_dev;
> 

Thanks, that fixed it.

Guess this old version of GCC "gcc version 2.95.2 19991024 " can't handle 
the decleration, and definition at the same time.

I don't know if this fix should be comited, as I suppose, I should
be using a newer version of GCC. Even on a system as old as this.
I'm trying to do as little updating on these baoxes as ai can. They are
production critacl, but "dead ended" as the will eventually be replaced
by Soalris boxes.

Thanks, again.

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967

<Prev in Thread] Current Thread [Next in Thread>