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

Huge huge at huge.org.uk
Sat Feb 9 12:19:19 UTC 2008


Charles,

On Sat, 2008-02-09 at 01:18, Charles Lepple wrote:
> On Feb 8, 2008 1:12 PM, Huge <huge at huge.org.uk> wrote:
> > 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
> [...]
> > 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
> 
> Do you have a custom CFLAGS environment variable that includes
> "-xarch=v9"? (That sounds like it is either for a different version of
> gcc, or it is for Sun's C compiler instead.

I do have Sun's compiler installed as well, if that makes any
difference. But there is no CFLAGS environment variable;

[huge at anubis ~/prog/nut/nut-2.2.1]: printenv | grep CFLAGS
[huge at anubis ~/prog/nut/nut-2.2.1]:


> Can you gzip and attach the config.log? If the gzipped version is more
> than 30KB or so, just email it to me off-list and I'll post the
> relevant parts.

Attached.

BTW, so I can get on, I edited the "-xarch=v9" out of the gcc command
line in "./drivers/Makefile" and it all compiled correctly.

Regards,

H.
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/x-gzip
Size: 12167 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20080209/a7b9ae95/attachment.bin 


More information about the Nut-upsuser mailing list