Amanda-Users

Re: Problem while compiling amanda 2.5.0

2006-06-29 15:24:16
Subject: Re: Problem while compiling amanda 2.5.0
From: "John Franks" <jrfranks AT zmanda DOT com>
To: "Carl Holzhauer" <cholzhauer AT sscorp DOT com>, <amanda-users AT amanda DOT org>
Date: Thu, 29 Jun 2006 12:18:20 -0700
Problem while compiling amanda 2.5.0Let me guess: Solaris 10 with gcc installed from the sunfreeware site?

If so - use the following commands to fix the problem:
cd /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/<compiler version>/install-tools

Put the line SHELL=/bin/sh on the first line of the mkheaders.conf file. Then run:
    ./mkheaders

Regards,
John Franks
jrfranks AT zmanda DOT com

----- Original Message ----- From: Carl Holzhauer
To: amanda-users AT amanda DOT org
Sent: Friday, April 14, 2006 1:19 PM
Subject: Problem while compiling amanda 2.5.0




This is the error message I recieve when I run the "make" command:

-bash-3.00$ make
Making all in config
make  all-am
Making all in common-src
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. ./config -I./../regex-src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE FILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT alloc.lo -MD -MP -MF ".deps/alloc. Tpo" -c -o alloc.lo alloc.c; \ then mv -f ".deps/alloc.Tpo" ".deps/alloc.Plo"; else rm -f ".deps/alloc.Tpo"; ex it 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -D_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT alloc .lo -MD -MP -MF .deps/alloc.Tpo -c alloc.c -fPIC -DPIC -o .libs/alloc.o
In file included from /usr/include/wait.h:14,
                from amanda.h:182,
                from alloc.c:33:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
                from /usr/include/wait.h:15,
                from amanda.h:182,
                from alloc.c:33:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from /usr/include/wait.h:16,
                from amanda.h:182,
                from alloc.c:33:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from amanda.h:182,
                from alloc.c:33:
/usr/include/wait.h:26: error: parse error before "siginfo_t"
In file included from amanda.h:238,
                from alloc.c:33:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `alloc.lo'
Current working directory /home/amanda/amanda-2.5.0/common-src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
 case $f in \
   *=* | --[!k]*);; \
   *k*) failcom='fail=yes';; \
 esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='config common-src client-src dumper-src recover-src man docs e xample'; for subdir in $list; do \
 echo "Making $target in $subdir"; \
 if test "$subdir" = "."; then \
   dot_seen=yes; \
   local_target="$target-am"; \
 else \
   local_target="$target"; \
 fi; \
 (cd $subdir && make  $local_target) \
 || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
 make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive




Message transport security by GatewayDefender
4:19:24 PM ET - 4/14/2006

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Problem while compiling amanda 2.5.0, John Franks <=