[Nut-upsdev] [Nut-upsuser] Nut-2.7.3 & gcc-3.3.6

Sergey Talchuk tals1975 at gmail.com
Wed Jul 8 09:22:29 UTC 2015


+ attachment with *.txt

On Wed, Jul 8, 2015 at 12:18 PM, Sergey Talchuk <tals1975 at gmail.com> wrote:

> Hi Charles,
>
> Yes, it looks like my g++ does contain STL library which might be just my
> specific case...
> However, as a temporary solution I disabled nutclient in Makefile (please
> find the file attached). And nut-2.7.3 can be compiled now.
>
> Thanks,
> Sergey
>
>
> On Wed, Jul 8, 2015 at 4:13 AM, Charles Lepple <clepple at gmail.com> wrote:
>
>> On Jul 6, 2015, at 10:32 AM, Sergey Talchuk <tals1975 at gmail.com> wrote:
>>
>> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
>> -I../include      -MT nutclient.lo -MD -MP -MF $depbase.Tpo -c -o
>> nutclient.lo nutclient.cpp &&\
>> mv -f $depbase.Tpo $depbase.Plo
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include -MT nutclient.lo
>> -MD -MP -MF .deps/nutclient.Tpo -c nutclient.cpp  -fPIC -DPIC -o
>> .libs/nutclient.o
>> In file included from nutclient.cpp:20:
>> nutclient.h:26:18: string: No such file or directory
>> nutclient.h:27:18: vector: No such file or directory
>> nutclient.h:28:15: map: No such file or directory
>> nutclient.h:29:15: set: No such file or directory
>> nutclient.h:30:21: exception: No such file or directory
>>
>>
>> This is going to be slightly harder to auto-detect. You have g++, but
>> apparently it cannot find STL.
>>
>> --
>> Charles Lepple
>> clepple at gmail
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150708/234070a4/attachment.html>
-------------- next part --------------
diff -Naur nut-2.7.3.orig/clients/Makefile.am nut-2.7.3/clients/Makefile.am
--- nut-2.7.3.orig/clients/Makefile.am	2015-03-10 02:21:44.000000000 -0700
+++ nut-2.7.3/clients/Makefile.am	2015-07-08 01:46:59.000000000 -0600
@@ -20,9 +20,9 @@
 bin_PROGRAMS = upsc upslog upsrw upscmd
 dist_bin_SCRIPTS = upssched-cmd
 sbin_PROGRAMS = upsmon upssched
-lib_LTLIBRARIES = libupsclient.la libnutclient.la
+lib_LTLIBRARIES = libupsclient.la #libnutclient.la
 if WITH_DEV
- include_HEADERS = upsclient.h ../include/parseconf.h nutclient.h
+ include_HEADERS = upsclient.h ../include/parseconf.h #nutclient.h
 endif
 if WITH_CGI
  cgiexec_PROGRAMS = upsstats.cgi upsimage.cgi upsset.cgi
@@ -55,6 +55,6 @@
 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
 libupsclient_la_LDFLAGS = -version-info 4:0:0
 
-libnutclient_la_SOURCES = nutclient.h nutclient.cpp
-libnutclient_la_LDFLAGS = -version-info 0:0:0
+#libnutclient_la_SOURCES = nutclient.h nutclient.cpp
+#libnutclient_la_LDFLAGS = -version-info 0:0:0
 
diff -Naur nut-2.7.3.orig/clients/Makefile.in nut-2.7.3/clients/Makefile.in
--- nut-2.7.3.orig/clients/Makefile.in	2015-04-22 02:38:04.000000000 -0600
+++ nut-2.7.3/clients/Makefile.in	2015-07-08 01:46:25.000000000 -0600
@@ -156,17 +156,17 @@
 	"$(DESTDIR)$(cgiexecdir)" "$(DESTDIR)$(sbindir)" \
 	"$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)"
 LTLIBRARIES = $(lib_LTLIBRARIES)
-libnutclient_la_LIBADD =
-am_libnutclient_la_OBJECTS = nutclient.lo
-libnutclient_la_OBJECTS = $(am_libnutclient_la_OBJECTS)
+#libnutclient_la_LIBADD =
+#am_libnutclient_la_OBJECTS = nutclient.lo
+#libnutclient_la_OBJECTS = $(am_libnutclient_la_OBJECTS)
 AM_V_lt = $(am__v_lt_ at AM_V@)
 am__v_lt_ = $(am__v_lt_ at AM_DEFAULT_V@)
 am__v_lt_0 = --silent
 am__v_lt_1 = 
-libnutclient_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
-	$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
-	$(AM_CXXFLAGS) $(CXXFLAGS) $(libnutclient_la_LDFLAGS) \
-	$(LDFLAGS) -o $@
+#libnutclient_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
+#	$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
+#	$(AM_CXXFLAGS) $(CXXFLAGS) $(libnutclient_la_LDFLAGS) \
+#	$(LDFLAGS) -o $@
 am__DEPENDENCIES_1 =
 @WITH_SSL_TRUE at am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
 libupsclient_la_DEPENDENCIES = ../common/libcommonclient.la \
@@ -276,12 +276,12 @@
 am__v_CXXLD_ = $(am__v_CXXLD_ at AM_DEFAULT_V@)
 am__v_CXXLD_0 = @echo "  CXXLD   " $@;
 am__v_CXXLD_1 = 
-SOURCES = $(libnutclient_la_SOURCES) $(libupsclient_la_SOURCES) \
+SOURCES =$(libupsclient_la_SOURCES) \
 	$(upsc_SOURCES) $(upscmd_SOURCES) $(upsimage_cgi_SOURCES) \
 	$(upslog_SOURCES) $(upsmon_SOURCES) $(upsrw_SOURCES) \
 	$(upssched_SOURCES) $(upsset_cgi_SOURCES) \
 	$(upsstats_cgi_SOURCES)
-DIST_SOURCES = $(libnutclient_la_SOURCES) $(libupsclient_la_SOURCES) \
+DIST_SOURCES = $(libupsclient_la_SOURCES) \
 	$(upsc_SOURCES) $(upscmd_SOURCES) $(upsimage_cgi_SOURCES) \
 	$(upslog_SOURCES) $(upsmon_SOURCES) $(upsrw_SOURCES) \
 	$(upssched_SOURCES) $(upsset_cgi_SOURCES) \
@@ -291,8 +291,8 @@
     n|no|NO) false;; \
     *) (install-info --version) >/dev/null 2>&1;; \
   esac
-am__include_HEADERS_DIST = upsclient.h ../include/parseconf.h \
-	nutclient.h
+am__include_HEADERS_DIST = upsclient.h ../include/parseconf.h #\
+#	nutclient.h
 HEADERS = $(include_HEADERS)
 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
 # Read a list of newline-separated strings from the standard input,
@@ -509,8 +509,8 @@
 # but only add them if we really use the target.
 AM_CFLAGS = -I$(top_srcdir)/include $(am__append_2) $(am__append_3)
 dist_bin_SCRIPTS = upssched-cmd
-lib_LTLIBRARIES = libupsclient.la libnutclient.la
- at WITH_DEV_TRUE@include_HEADERS = upsclient.h ../include/parseconf.h nutclient.h
+lib_LTLIBRARIES = libupsclient.la #libnutclient.la
+ at WITH_DEV_TRUE@include_HEADERS = upsclient.h ../include/parseconf.h #nutclient.h
 upsc_SOURCES = upsc.c upsclient.h
 upscmd_SOURCES = upscmd.c upsclient.h
 upsrw_SOURCES = upsrw.c upsclient.h
@@ -532,8 +532,8 @@
 # libupsclient version information
 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
 libupsclient_la_LDFLAGS = -version-info 4:0:0
-libnutclient_la_SOURCES = nutclient.h nutclient.cpp
-libnutclient_la_LDFLAGS = -version-info 0:0:0
+#libnutclient_la_SOURCES = nutclient.h nutclient.cpp
+#libnutclient_la_LDFLAGS = -version-info 0:0:0
 all: all-am
 
 .SUFFIXES:
@@ -604,8 +604,8 @@
 	  rm -f $${locs}; \
 	}
 
-libnutclient.la: $(libnutclient_la_OBJECTS) $(libnutclient_la_DEPENDENCIES) $(EXTRA_libnutclient_la_DEPENDENCIES) 
-	$(AM_V_CXXLD)$(libnutclient_la_LINK) -rpath $(libdir) $(libnutclient_la_OBJECTS) $(libnutclient_la_LIBADD) $(LIBS)
+#libnutclient.la: $(libnutclient_la_OBJECTS) $(libnutclient_la_DEPENDENCIES) $(EXTRA_libnutclient_la_DEPENDENCIES) 
+#	$(AM_V_CXXLD)$(libnutclient_la_LINK) -rpath $(libdir) $(libnutclient_la_OBJECTS) $(libnutclient_la_LIBADD) $(LIBS)
 
 libupsclient.la: $(libupsclient_la_OBJECTS) $(libupsclient_la_DEPENDENCIES) $(EXTRA_libupsclient_la_DEPENDENCIES) 
 	$(AM_V_CCLD)$(libupsclient_la_LINK) -rpath $(libdir) $(libupsclient_la_OBJECTS) $(libupsclient_la_LIBADD) $(LIBS)
@@ -835,7 +835,7 @@
 	-rm -f *.tab.c
 
 @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/cgilib.Po at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/nutclient.Plo at am__quote@
+#@AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/nutclient.Plo at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/upsc.Po at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/upsclient.Plo at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/upscmd.Po at am__quote@


More information about the Nut-upsdev mailing list