On 7/1/2013 2:55 PM, Charles Lepple wrote:> On Jul 1, 2013, at 12:47 PM, John Thurston wrote: > >> I'm running Solaris 10 on a dozen SPARC boxes. I'd like to explore NUT for use with our snmp UPS, but I'm unable to complete the configure/make/install process. >> >> Can anyone share a how-to for solaris? > > Here's some general NUT-on-Solaris information: > > http://people.cs.clemson.edu/~gdowdin/work/ch06.html > > Can't vouch for that specifically - I haven't used Solaris in years, and had a hard time getting OpenSolaris working back when that was an option. That said, we might be able to reach out to someone at Eaton to see how they set up the Buildbot slave for NUT. > > What errors are you getting? How are you installing the SNMP support packages?I thought I'd see if I could first get it to work without snmp support. I've started with a basic Solaris install and added the following packages from sunfreeware libiconv-1.14-sol10-sparc-local gcc-3.4.6-sol10-sparc-local make-3.82-sol10-sparc-local libintl-3.4.0-sol10-sparc-local Working from Mike Nowak's notes at: https://blogs.oracle.com/mikey/entry/network_ups_tools_on_solaris> ./configure --prefix=/opt/nut --with-statepath=/var/ups --with-user=ups --with-group=upsreturns alright, but the subsequent "make" fails with:> make[1]: Entering directory `/opt/downloads/nut-2.6.5/common' > /bin/bash ../libtool --tag=CC --mode=link gcc -I../include -g -O2 -Wall -Wsign-compare -o libparseconf.la parseconf.lo -lrt -lsocket -lnsl > libtool: link: false cru .libs/libparseconf.a .libs/parseconf.o > make[1]: *** [libparseconf.la] Error 1But at this point I don't know if I have some library in the wrong location, or if the makefile is being told to look in the wrong location, or something else entirely. -- Do things because you should, not just because you can. John Thurston 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
On Jul 1, 2013, at 7:42 PM, John Thurston wrote:>> libtool: link: false cru .libs/libparseconf.a .libs/parseconf.oLooks like libtool should be using "ar", but it replaced it with "false". Not sure if we can fix that, but it's worth a look on our end. Do you have binutils installed as well? Not sure if sunfreeware packages support dependencies, but if they do, gcc should depend on binutils. -- Charles Lepple clepple at gmail
On Mon, 2013-07-01 at 15:42 -0800, John Thurston wrote:> On 7/1/2013 2:55 PM, Charles Lepple wrote: > > On Jul 1, 2013, at 12:47 PM, John Thurston wrote: > > > >> I'm running Solaris 10 on a dozen SPARC boxes. I'd like to explore NUT for use with our snmp UPS, but I'm unable to complete the configure/make/install process. > >> > >> Can anyone share a how-to for solaris? > > > > Here's some general NUT-on-Solaris information: > > > > http://people.cs.clemson.edu/~gdowdin/work/ch06.html > > > > Can't vouch for that specifically - I haven't used Solaris in years, and had a hard time getting OpenSolaris working back when that was an option. That said, we might be able to reach out to someone at Eaton to see how they set up the Buildbot slave for NUT. > > > > What errors are you getting? How are you installing the SNMP support packages? > > I thought I'd see if I could first get it to work without snmp support. > I've started with a basic Solaris install and added the following > packages from sunfreeware > libiconv-1.14-sol10-sparc-local > gcc-3.4.6-sol10-sparc-local > make-3.82-sol10-sparc-local > libintl-3.4.0-sol10-sparc-local > > Working from Mike Nowak's notes at: > https://blogs.oracle.com/mikey/entry/network_ups_tools_on_solaris > > > ./configure --prefix=/opt/nut --with-statepath=/var/ups --with-user=ups --with-group=ups > > returns alright, but the subsequent "make" fails with: > > make[1]: Entering directory `/opt/downloads/nut-2.6.5/common' > > /bin/bash ../libtool --tag=CC --mode=link gcc -I../include -g -O2 -Wall -Wsign-compare -o libparseconf.la parseconf.lo -lrt -lsocket -lnsl > > libtool: link: false cru .libs/libparseconf.a .libs/parseconf.o > > make[1]: *** [libparseconf.la] Error 1 > > But at this point I don't know if I have some library in the wrong > location, or if the makefile is being told to look in the wrong > location, or something else entirely.that seems like configure didn't find ar and uses false instead. add /usr/ccs/bin to your $PATH and configure again. that should pick up /usr/ccs/bin/ar. if that doenst't exist install SUNWbtool or install the gnu binutils. bernd
On 7/1/2013 8:27 PM, Bernd Markgraf wrote:> On Mon, 2013-07-01 at 15:42 -0800, John Thurston wrote: >> On 7/1/2013 2:55 PM, Charles Lepple wrote: >>> On Jul 1, 2013, at 12:47 PM, John Thurston wrote: >>> >>>> I'm running Solaris 10 on a dozen SPARC boxes. I'd like to explore NUT for use with our snmp UPS, but I'm unable to complete the configure/make/install process.- snip ->> Working from Mike Nowak's notes at: >> https://blogs.oracle.com/mikey/entry/network_ups_tools_on_solaris >> >>> ./configure --prefix=/opt/nut --with-statepath=/var/ups --with-user=ups --with-group=ups >> >> returns alright, but the subsequent "make" fails with: >>> make[1]: Entering directory `/opt/downloads/nut-2.6.5/common' >>> /bin/bash ../libtool --tag=CC --mode=link gcc -I../include -g -O2 -Wall -Wsign-compare -o libparseconf.la parseconf.lo -lrt -lsocket -lnsl >>> libtool: link: false cru .libs/libparseconf.a .libs/parseconf.o >>> make[1]: *** [libparseconf.la] Error 1-snip -> that seems like configure didn't find ar and uses false instead. > add /usr/ccs/bin to your $PATH and configure again. that should pick > up /usr/ccs/bin/ar. if that doenst't exist install SUNWbtool or install > the gnu binutils.Thank you, Bernd. Adding /usr/ccs/bin to the $PATH got me past that. Now when I attempt to add --with-snmp, it fails with > configure: error: "Net-SNMP libraries not found, required for SNMP drivers" But I'm running Solaris 10, the service "/application/management/sma" is enabled, and /etc/sma/snmp/snmpd.conf exists. The libraries must be there somewhere. How can if figure out where they are and then configure nut with the correct paths? -- Do things because you should, not just because you can. John Thurston 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska