Amanda-Users

RE: compiling on Solaris 2.5.1

2003-01-31 16:57:41
Subject: RE: compiling on Solaris 2.5.1
From: Keith Hall <K.Hall AT servicepower DOT com>
To: Brock Sides <philarete AT mindspring DOT com>, amanda-users AT amanda DOT org
Date: Fri, 31 Jan 2003 21:27:48 -0000
Did you ever find a fix for this - I have the exact same issue on an old
Debian 2 system? (also gcc 2.7.2)

Regards,

Keith.

> -----Original Message-----
> From: Brock Sides [mailto:philarete AT mindspring DOT com]
> Sent: 26 January 2003 01:42
> To: amanda-users AT amanda DOT org
> Subject: compiling on Solaris 2.5.1
> 
> 
> I need some help compiling amanda 2.4.3 on Solaris 2.5.1 (Intel) with
> gcc 2.7.2 (the latest version of gcc I could find for Solaris 2.5.1).
> 
> Here's the error I get:
> 
>    $ make
>    Making all in config
>    make  all-am
>    Making all in common-src
>    source='debug.c' object='debug.lo' libtool=yes \
>    depfile='.deps/debug.Plo' tmpdepfile='.deps/debug.TPlo' \
>    depmode=gcc /bin/sh ../config/depcomp \
>    /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
>    -I../config  -I./../regex-src    -g -O2 -c -o debug.lo `test -f
>    debug.c || echo './'`debug.c
>    gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -g -O2 -c
>    debug.c -Wp,-MD,.deps/debug.TPlo -o debug.o
>    In file included from amanda.h:105,
>                     from debug.c:33:
>    /usr/include/netdb.h:195: warning: `struct sockaddr_in' declared
>    inside parameter list
>    /usr/include/netdb.h:195: warning: its scope is only this 
> definition
>    or declaration,
>    /usr/include/netdb.h:195: warning: which is probably not what you
>    want.
>    debug.c:59: parse error before `void'
>    debug.c:70: initializer element is not constant
>    debug.c:70: warning: data definition has no type or storage class
>    debug.c:72: parse error before `if'
>    debug.c:77: warning: parameter names (without types) in function
>    declaration
>    debug.c:77: warning: data definition has no type or storage class
>    debug.c:78: warning: parameter names (without types) in function
>    declaration
>    debug.c:78: warning: data definition has no type or storage class
>    debug.c:79: parse error before `void'
>    debug.c:82: initializer element is not constant
>    debug.c:82: warning: data definition has no type or storage class
>    debug.c:83: parse error before `}'
>    *** Error code 1
>    make: Fatal error: Command failed for target `debug.lo'
>    Current working directory /var/tmp/amanda-2.4.3/common-src
>    *** Error code 1
>    make: Fatal error: Command failed for target `all-recursive'
> 
> Any thoughts?
> 
> -- 
> Brock Sides
> philarete AT mindspring DOT com
> I'm not a consumer. I'm a customer.
> 

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