I used the
following commands to get it to compile on solaris9.
CFLAGS='-L/usr/local/lib
-R/usr/local/lib';export CFLAGS
CPPFLAGS=-I/usr/local/include;export
CPPFLAGS
LDFLAGS='-L/usr/local/lib
-R/usr/local/lib';export LDFLAGS
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/sfw/lib;export
LD_LIBRARY_PATH
./configure
--with-user=amanda --with-group=backup --with-libraries="/usr/lib
/usr/local/lib" --with-includes="/usr/include /usr/local/include
/usr/local/include/readline" --without-ipv6
Paul
Crittenden
Computer
Systems Manager
Simpson College
Phone:
515-961-1680
Email:
paul.crittenden AT simpson DOT edu
From:
owner-amanda-users AT amanda DOT org [mailto:owner-amanda-users AT amanda DOT org] On Behalf Of Byarlay, Wayne A.
Sent: Tuesday, January 08, 2008
3:21 PM
To: amanda-users AT amanda DOT org
Subject: can't make on Solaris 10
Greetings…
I
am trying to ./configure and make Amanda 2.5.2p1 on a Sun Solaris 10 sparc
machine I’m a solaris noob.
I
read the manual on http://www.amanda.org/docs/systemnotes.html#id323498
which advised me to add /usr/ccs/bin to the path, which I did; and the
./configure works fine with my parameters. BUT… when I try to >make, I
get the following error. I googled it a bunch and saw it mentioned a LOT for
people trying to make other things as well… but nothing that was useful
to me.
------------------------
/usr/include/string.h:16:
warning: ignoring #pragma ident
In
file included from /usr/include/wait.h:14,
from amanda.h:197,
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:197,
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:197,
from alloc.c:33:
/usr/include/sys/wait.h:86:
error: parse error before "siginfo_t"
In
file included from amanda.h:197,
from alloc.c:33:
/usr/include/wait.h:26:
error: parse error before "siginfo_t"
In
file included from amanda.h:257,
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 /amanda/amanda-2.5.2p1/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='gnulib
config common-src amandad-src tape-src client-src
dumper-src server-src changer-src restore-src recover-src
oldrecover-src amplot 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'
Any
help or hints are appreciated. -wab