Hello
I was trying to compile newer owfs for OpenWrt backfire (2.6 kernel). I
got the latest stable version from svn( it comes with 2.4p4) and the
just changed the version number in package Makefile. The make scripts
downloads and compiles everything idiomatically.
When I run them I get this error
ow_serial_open.c: In function 'serial_change':
ow_serial_open.c:118: error: 'CMSPAR' undeclared (first use in this
function)
ow_serial_open.c:118: error: (Each undeclared identifier is reported
only once
ow_serial_open.c:118: error: for each function it appears in.)
more in the attachment I also attach the Makefile which specifies build
options. I noticed that this file(ow_serial_open.c) is not present in
2.5p4.
--
P4trykx
make[8]: Entering directory
`/home/patyrk/router/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/owfs-2.8p5/module/owlib/src/c'
/bin/bash ../../../../libtool --tag=CC --mode=compile
mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../../../../src/include
-I/home/patyrk/router/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include
-I/home/patyrk/router/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/include
-I/home/patyrk/router/backfire/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include
-I/home/patyrk/router/backfire/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/include
-I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith
-Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L -pthread -Os -pipe -mips32 -mtune=mips32
-funit-at-a-time -fhonour-copts -msoft-float -D_XOPEN_SOURCE=500
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT
ow_serial_open.lo -MD -MP -MF .deps/ow_serial_open.Tpo -c -o ow_serial_open.lo
ow_serial_open.c
mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../../../../src/include
-I/home/patyrk/router/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include
-I/home/patyrk/router/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/include
-I/home/patyrk/router/backfire/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include
-I/home/patyrk/router/backfire/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/include
-I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith
-Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__
-D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L -pthread -Os -pipe -mips32 -mtune=mips32
-funit-at-a-time -fhonour-copts -msoft-float -D_XOPEN_SOURCE=500
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT
ow_serial_open.lo -MD -MP -MF .deps/ow_serial_open.Tpo -c ow_serial_open.c
-fPIC -DPIC -o .libs/ow_serial_open.o
ow_serial_open.c: In function 'serial_change':
ow_serial_open.c:118: error: 'CMSPAR' undeclared (first use in this function)
ow_serial_open.c:118: error: (Each undeclared identifier is reported only once
ow_serial_open.c:118: error: for each function it appears in.)
make[8]: *** [ow_serial_open.lo] Error 1
make[8]: Leaving directory
`/home/patyrk/router/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/owfs-2.8p5/module/owlib/src/c'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
`/home/patyrk/router/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/owfs-2.8p5/module/owlib/src'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory
`/home/patyrk/router/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/owfs-2.8p5/module/owlib'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/home/patyrk/router/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/owfs-2.8p5/module'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/patyrk/router/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/owfs-2.8p5'
make[3]: ***
[/home/patyrk/router/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/owfs-2.8p5/.built]
Error 2
make[3]: Leaving directory
`/home/patyrk/router/backfire/feeds/packages/utils/owfs'
make[2]: *** [package/feeds/packages/owfs/compile] Error 2
make[2]: Leaving directory `/home/patyrk/router/backfire'
make[1]: ***
[/home/patyrk/router/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile]
Error 2
make[1]: Leaving directory `/home/patyrk/router/backfire'
make: *** [world] Błąd 2
a
#
# Copyright (C) 2008-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=owfs
PKG_VERSION:=2.8p5
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=26a4fb0ac8e1372b33cb7846726c282d
PKG_FIXUP:=libtool
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
#
# templates
#
define Package/$(PKG_NAME)/Default
TITLE:=OWFS (1-Wire File System)
URL:=http://owfs.sourceforge.net/
SECTION:=net
CATEGORY:=Network
SUBMENU:=Filesystem
endef
define Package/$(PKG_NAME)/Default/description
OWFS is a suite of programs that designed to make the 1-wire bus and its
devices easily accessible. The underlying priciple is to create a virtual
filesystem, with the unique ID being the directory, and the individual
properties of the device are represented as simple files that can be read
and written.
Details of the individual slave or master design are hidden behind a
consistent interface. The goal is to provide an easy set of tools for a
software designer to create monitoring or control applications. There are
some performance enhancements in the implementation, including data caching,
parallel access to bus masters, and aggregation of device communication.
Still the fundemental goal has been ease of use, flexibility and correctness
rather than speed.
endef
define Package/owfs/Server
$(call Package/owfs/Default)
DEPENDS:=+libow +libpthread
endef
define Package/owfs/Library
$(call Package/owfs/Default)
SECTION:=libs
CATEGORY:=Libraries
endef
define Package/owfs/Utility
$(call Package/owfs/Default)
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libow
endef
#
# shared libraries
#
define Package/libow
$(call Package/owfs/Library)
DEPENDS:=+libusb +libpthread
TITLE:=OWFS - common shared library
endef
define Package/libow/description
$(call Package/$(PKG_NAME)/Default/description)
This package contains the OWFS library.
endef
define Package/libow-capi
$(call Package/owfs/Library)
DEPENDS:=+libow
TITLE:=OWFS - C-API library
endef
define Package/libow-capi/description
$(call Package/$(PKG_NAME)/Default/description)
This package contains the OWFS C-API library.
endef
#
# utilities
#
define Package/owshell
$(call Package/owfs/Utility)
TITLE:=OWFS - shell utilities
endef
define Package/owshell/description
$(call Package/$(PKG_NAME)/Default/description)
This package contains the OWFS shell utilities.
endef
define Package/owfs
$(call Package/owfs/Utility)
# libfuse depends on kmod-fuse, no need to declare dependency
DEPENDS+= +libfuse +fuse-utils
TITLE:=OWFS - fuse file system
endef
define Package/owfs/description
$(call Package/$(PKG_NAME)/Default/description)
This package contains the OWFS fuse filesystem.
endef
#
# network daemons
#
define Package/owhttpd
$(call Package/owfs/Server)
TITLE:=OWFS - http server
endef
define Package/owhttpd/description
$(call Package/$(PKG_NAME)/Default/description)
This package contains the OWFS http server.
endef
define Package/owftpd
$(call Package/owfs/Server)
TITLE:=OWFS - ftp server
endef
define Package/owftpd/description
$(call Package/$(PKG_NAME)/Default/description)
This package contains the OWFS ftp server.
endef
define Package/owserver
$(call Package/owfs/Server)
TITLE:=OWFS - network server
endef
define Package/owserver/description
$(call Package/$(PKG_NAME)/Default/description)
This package contains the OWFS network server.
endef
CONFIGURE_ARGS += \
--enable-owftpd \
--enable-owserver \
--enable-owhttpd \
--enable-owfs \
--with-fuseinclude="$(STAGING_DIR)/usr/include" \
--with-fuselib="$(STAGING_DIR)/usr/lib" \
--enable-shared \
--disable-rpath \
--enable-zero \
--disable-parport \
--disable-ownfsd \
--disable-ownet \
--disable-owpython \
--disable-libow-perl \
--disable-owphp \
--disable-owtcl \
--disable-owside \
--disable-swig \
CONFIGURE_VARS += \
LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -Wl,-rpath-link=$(TOOLCHAIN_DIR)/usr/lib" \
lt_cv_sys_lib_dlsearch_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
lt_cv_sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
shrext_cmds=".so" \
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
HOST_CPU="$(PKGARCH)" \
all install
endef
define Build/InstallDev
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/ow{capi,fs_config}.h $(STAGING_DIR)/usr/include/
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libow{,capi}*.so* $(STAGING_DIR)/usr/lib/
endef
define Package/owfs/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owfs $(1)/usr/bin/
endef
define Package/owshell/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owget $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owread $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owwrite $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owdir $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owpresent $(1)/usr/bin/
endef
define Package/owserver/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owserver $(1)/usr/bin/
endef
define Package/owhttpd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owhttpd $(1)/usr/bin/
endef
define Package/owftpd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owftpd $(1)/usr/bin/
endef
define Package/libow/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libow-*.so.* $(1)/usr/lib/
endef
define Package/libow-capi/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libowcapi-*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,owfs))
$(eval $(call BuildPackage,owshell))
$(eval $(call BuildPackage,owserver))
$(eval $(call BuildPackage,owhttpd))
$(eval $(call BuildPackage,owftpd))
$(eval $(call BuildPackage,libow))
$(eval $(call BuildPackage,libow-capi))
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers