Amanda-Users

Problem compiling on Solaris 10

2006-06-29 04:25:08
Subject: Problem compiling on Solaris 10
From: "Christopher Davis" <giarmdok AT usa DOT net>
To: <amanda-users AT amanda DOT org>
Date: Thu, 29 Jun 2006 07:14:22 -0600
I'm trying to compile amand 2.5.0p2 on Solaris 10 -

Here's what I'm doing -

I'm running configure with the following options:


./configure --prefix=/usr/local/amanda
--with-configdir=/usr/local/amanda/configs --with-index-server=backup
--with-user=amanda --with-config=Daily --with- tape-server=hvbackup
--with-tape-device=/dev/nst0l --with-tmpdir=/usr/local/amanda/tmp
--with-group=bin --without-server


I've setup my path to that /usr/ccs/bin/make is in and should be found before
any version of make.  I've installed GCC 3.2.2 off the sunfreeware site.   
This is the same process I've used on a dozen or more solaris 8 boxes with no
problems.



Here's the error below - any ideas?


I get the following when I run 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_FI
LE_OFFSET_BITS=64   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT
alloc.lo -MD -MP -MF ".deps/alloc.Tpo" -c -o alloc.lo allo
c.c; \
then mv -f ".deps/alloc.Tpo" ".deps/alloc.Plo"; else rm -f ".deps/alloc.Tpo";
exit 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_OFF
SET_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 /tmp/a/amanda/amanda-2.5.0p2/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
example'; 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'




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