[Nut-upsuser] Building NUT 2.2.1 under Solaris 10 (SPARC)

Huge huge at huge.org.uk
Fri Feb 8 18:12:35 UTC 2008


I'm trying to build NUT 2.2.1 on a SunBlade 2000 running Solaris 10
(Solaris 10 11/06 s10s_u3wos_10 SPARC) It won't compile. I'm not a
programmer, so I'm afraid I don't know why...



[huge at anubis ~/Prog/nut/nut-2.2.1]: ./configure --with-user=ups
--with-group=nutNetwork UPS Tools version 2.2.1
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
.
.
.
Configuration summary:
enable SSL development code: yes
enable IPv6 support: yes
build CGI programs: no
build upsclient library: no
build serial drivers: yes
build SNMP drivers: yes
build USB drivers: libusb-based drivers only
enable HAL support: no
[huge at anubis ~/Prog/nut/nut-2.2.1]: make
Making all in include
test -f nut_version.h || cp _nut_version.h nut_version.h
cmp -s _nut_version.h nut_version.h || cp _nut_version.h nut_version.h
rm -f _nut_version.h
make  all-am
Making all in common
if gcc -DHAVE_CONFIG_H -I. -I. -I../include     -I../include -O -Wall
-Wsign-compare -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o
common.o common.c; \
then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f
".deps/common.Tpo"; exit 1; fi
.
.
.
Making all in drivers
if gcc -DHAVE_CONFIG_H -I. -I. -I../include     -I../include 
-I/usr/sfw/include  -Dsolaris_2 -xarch=v9 -Dsolaris2 -I.
-I/usr/sfw/include  -O -Wall -Wsign-compare -MT al175.o -MD -MP -MF
".deps/al175.Tpo" -c -o al175.o al175.c; \
then mv -f ".deps/al175.Tpo" ".deps/al175.Po"; else rm -f
".deps/al175.Tpo"; exit 1; fi
gcc: language arch=v9 not recognized
gcc: al175.c: linker input file unused because linking not done
mv: cannot access .deps/al175.Tpo
*** Error code 2
make: Fatal error: Command failed for target `al175.o'
Current working directory /home/huge/prog/nut/nut-2.2.1/drivers
*** 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='include common clients conf data docs drivers lib man     
packaging scripts server'; 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'

[huge at anubis ~/Prog/nut/nut-2.2.1]: gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)







More information about the Nut-upsuser mailing list