<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hmm. Code schaut ok aus. glob.h wird eingebunden.<div class=""><br class=""></div><div class="">Lt. <a href="https://linux.die.net/man/3/glob" class="">https://linux.die.net/man/3/glob</a> gibt es da auch GLOB_BRACE.</div><div class=""><br class=""></div><div class="">Ich glaube das liegt an der Build-Umgebung. Siehe z.B. hier:</div><div class=""><a href="https://github.com/openwrt/packages-abandoned/blob/master/net/asterisk-11.x/patches/050-musl-glob-compat.patch" class="">https://github.com/openwrt/packages-abandoned/blob/master/net/asterisk-11.x/patches/050-musl-glob-compat.patch</a> <br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 17.11.2019 um 17:21 schrieb Winfried Peters <<a href="mailto:winfried.peters@gmail.com" class="">winfried.peters@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hallo,</div><div class=""><br class=""></div><div class="">ich möchte ein neues Installationspaket der aktuellen vzlogger-Version für Udo's YPORT+-OpenWrt-System erstellen. Dazu habe ich die OpenWrt-Umgebung mit den erforderlichen Paketen und Zielsystem eingerichtet. Der Compile bricht immer beim Stand von 7% beim Build von MeterW1therm.cpp.o ab. Hier der Logausschnitt:</div><div style="margin-left:40px" class=""><font size="1" class="">[  6%] Building CXX object src/protocols/CMakeFiles/proto.dir/MeterRandom.cpp.o<br class="">cd /home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/src/protocols && /home/romokerkid/openwrt/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-musl-g++   -DHAVE_CONFIG_HPP -DNDEBUG -I/home/romokerkid/openwrt/staging_dir/target-mips_24kc_musl-1.1.16/usr/include -I/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master -I/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/include  -W -Wall -Wextra -Werror -Wnon-virtual-dtor -Wno-system-headers -Winit-self -Wmissing-include-dirs -Wno-pragmas -Wredundant-decls -Wno-unused-parameter -std=c++11 -fpermissive -Wno-error=redundant-decls -Wno-ignored-qualifiers -O3 -Wno-unused-parameter -Wno-redundant-decls   -g3 -o CMakeFiles/proto.dir/MeterRandom.cpp.o -c /home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/src/protocols/MeterRandom.cpp<br class="">[  7%] Building CXX object src/protocols/CMakeFiles/proto.dir/MeterW1therm.cpp.o<br class="">cd /home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/src/protocols && /home/romokerkid/openwrt/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-musl-g++   -DHAVE_CONFIG_HPP -DNDEBUG -I/home/romokerkid/openwrt/staging_dir/target-mips_24kc_musl-1.1.16/usr/include -I/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master -I/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/include  -W -Wall -Wextra -Werror -Wnon-virtual-dtor -Wno-system-headers -Winit-self -Wmissing-include-dirs -Wno-pragmas -Wredundant-decls -Wno-unused-parameter -std=c++11 -fpermissive -Wno-error=redundant-decls -Wno-ignored-qualifiers -O3 -Wno-unused-parameter -Wno-redundant-decls   -g3 -o CMakeFiles/proto.dir/MeterW1therm.cpp.o -c /home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/src/protocols/MeterW1therm.cpp<br class="">/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/src/protocols/MeterW1therm.cpp: In member function 'virtual bool MeterW1therm::W1sysHWif::scanW1devices()':<br class="">/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/src/protocols/MeterW1therm.cpp:35:58: error: 'GLOB_BRACE' was not declared in this scope<br class="">  if (0 == glob("/sys/bus/w1/devices/{10,22,28,3b,42}-*", GLOB_BRACE|GLOB_NOSORT, NULL, &glob_res) ) {<br class="">                                                          ^<br class="">src/protocols/CMakeFiles/proto.dir/build.make:209: recipe for target 'src/protocols/CMakeFiles/proto.dir/MeterW1therm.cpp.o' failed<br class="">make[5]: *** [src/protocols/CMakeFiles/proto.dir/MeterW1therm.cpp.o] Error 1<br class="">make[5]: Leaving directory '/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master'<br class="">CMakeFiles/Makefile2:1172: recipe for target 'src/protocols/CMakeFiles/proto.dir/all' failed<br class="">make[4]: *** [src/protocols/CMakeFiles/proto.dir/all] Error 2<br class="">make[4]: Leaving directory '/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master'<br class="">Makefile:163: recipe for target 'all' failed<br class="">make[3]: *** [all] Error 2<br class="">make[3]: Leaving directory '/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master'<br class="">Makefile:46: recipe for target '/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/.built' failed<br class="">make[2]: *** [/home/romokerkid/openwrt/build_dir/target-mips_24kc_musl-1.1.16/vzlogger-master/.built] Error 2<br class="">make[2]: Leaving directory '/home/romokerkid/openwrt/package/utils/vzlogger'<br class="">package/Makefile:109: recipe for target 'package/utils/vzlogger/compile' failed<br class="">make[1]: *** [package/utils/vzlogger/compile] Error 2<br class="">make[1]: Leaving directory '/home/romokerkid/openwrt'<br class="">/home/romokerkid/openwrt/include/<a href="http://toplevel.mk:205/" class="">toplevel.mk:205</a>: recipe for target 'package/vzlogger/compile' failed<br class="">make: *** [package/vzlogger/compile] Error 2</font></div><div class=""><br class=""></div><div class="">Hier mein Makefile dazu:</div><div class="">---------------------------------------------------------------------------------------------</div><div class=""><font size="1" class="">include $(TOPDIR)/<a href="http://rules.mk/" class="">rules.mk</a></font><br class=""><font size="1" class="">PKG_NAME:=vzlogger<br class="">PKG_VERSION:=master<br class="">PKG_RELEASE:=1<br class="">PKG_REV:=master<br class="">PKG_FIXUP:=autoreconf<br class="">PKG_BUILD_DEPENDS:=libmosquitto libsml libmicrohttpd libjson libcurl libopenssl libstdcpp libgcrypt librt libsasl2<br class="">#PKG_BUILD_DEPENDS:=sml microhttpd json curl openssl stdcpp gcrypt rt sasl2<br class="">#PKG_BUILD_PARALLEL:=1<br class=""><br class="">PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz<br class="">PKG_SOURCE_URL:=git://<a href="http://github.com/volkszaehler/vzlogger.git" class="">github.com/volkszaehler/vzlogger.git</a><br class="">PKG_SOURCE_VERSION:=$(PKG_REV)<br class="">PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)<br class="">PKG_SOURCE_PROTO:=git<br class=""><br class="">CMAKE_INSTALL:=1<br class=""><br class="">include $(INCLUDE_DIR)/<a href="http://package.mk/" class="">package.mk</a><br class="">include $(INCLUDE_DIR)/<a href="http://cmake.mk/" class="">cmake.mk</a><br class=""><br class="">define Package/vzlogger<br class="">  SECTION:=utils<br class="">  CATEGORY:=Utilities<br class="">  DEPENDS:=+libmosquitto +libsml +libmicrohttpd +libjson +libcurl +libopenssl +libstdcpp +libgcrypt +librt +libsasl2<br class="">  URL:=<a href="https://github.com/volkszaehler/vzlogger" class="">https://github.com/volkszaehler/vzlogger</a><br class="">  TITLE:=Logging utility for several meters & sensors<br class="">endef<br class=""><br class="">define Package/vzlogger/description<br class="">  Logging utility for several meters & sensors<br class="">endef<br class=""><br class="">define Build/InstallDev<br class="">     $(CP) $(PKG_INSTALL_DIR)/* $(1)/<br class="">endef<br class=""><br class="">define Package/vzlogger/install<br class="">        $(INSTALL_DIR) $(1)/usr/bin<br class="">        $(CP) $(PKG_INSTALL_DIR)/usr/bin/vzlogger $(1)/usr/bin<br class="">     #$(INSTALL_DIR) $(1)/etc<br class="">   #$(CP) $(PKG_INSTALL_DIR)/etc/vzlogger.conf $(1)/etc<br class="">endef<br class=""><br class="">$(eval $(call BuildPackage,vzlogger,+libmosquitto +libsml,+libmicrohttpd,+libjson,+libcurl,+libopenssl,+libstdcpp,+libgcrypt,+librt,+libsasl2))</font></div><div class="">---------------------------------------------------------------------------------------------</div><div class=""><br class=""></div><div class="">Liegt die Ursache im MeterW1therm.cpp-Code oder an meiner Umgebung/Makefile-Konfiguration?</div><div class="">Ich komme hier leider nicht mehr weiter. Ich bin dankbar für Vorschläge und Ideen.</div><div class=""><br class=""></div><div class="">Viele Grüße</div><div class="">Winfried<br class=""></div></div>
</div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Gruß</div><div class=""><br class=""></div><div class="">Matthias</div></div></span>
</div>
<br class=""></div></body></html>