Hi,
I have a problem compiling my first package. I've created a Makefile
for wireshark, because i need tshark in openwrt.
include $(TOPDIR)/rules.mk
PKG_NAME:=wireshark
PKG_VERSION:=1.0.8
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/wireshark-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://wireshark.osmirror.nl/download/src
PKG_MD5SUM:=09d895f111ee768cc0d7c7e2c427c496
PKG_CAT:=bzcat
include $(INCLUDE_DIR)/package.mk
define Package/wireshark/Default
URL:=http://wireshark.org/
endef
define Package/wireshark
$(call Package/wireshark/Default)
SECTION:=net
CATEGORY:=Base system
DEPENDS:=+glib2
TITLE:=Network sniffing utility
endef
CONFIGURE_ARGS += \
--disable-wireshark
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
endef
define Package/wireshark/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin $(1)/usr/bin/
endef
$(eval $(call BuildPackage,wireshark))
After configuring the package and the make starts I get following error:
touch /home/kersten/Entwicklung/Router/8.09/build_dir/mips/wireshark-1.0.8/.configured
make -C /home/kersten/Entwicklung/Router/8.09/build_dir/mips/wireshark-1.0.8
DESTDIR="/home/kersten/Entwicklung/Router/8.09/build_dir/mips/wireshark-1.0.8/ipkg-install"
install
make[3]: Entering directory
`/home/kersten/Entwicklung/Router/8.09/build_dir/mips/wireshark-1.0.8'
mips-linux-uclibc-gcc -DINET6 -D_U_="__attribute__((unused))" -Os
-pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -Wall -W
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -I/usr/local/include
-I/home/kersten/Entwicklung/Router/8.09/staging_dir/mips/usr//include/glib-2.0
-I/home/kersten/Entwicklung/Router/8.09/staging_dir/mips/usr//lib/glib-2.0/include
-I/usr/include/pcap -o rdps ./rdps.c
./rdps ./print.ps ps.c
./rdps: ./rdps: cannot execute binary file
make[3]: *** [ps.c] Error 126
make[3]: Leaving directory
`/home/kersten/Entwicklung/Router/8.09/build_dir/mips/wireshark-1.0.8'
make[2]: *** [/home/kersten/Entwicklung/Router/8.09/build_dir/mips/wireshark-1.0.8/.built]
Error 2
make[2]: Leaving directory
`/home/kersten/Entwicklung/Router/8.09/package/wireshark'
make[1]: *** [package/wireshark/install] Error 2
make[1]: Leaving directory `/home/kersten/Entwicklung/Router/8.09'
make: *** [package/wireshark-install] Fehler 2
Because this is my first package for openwrt I don't know where or why
I get the message ./rdps: ./rdps: cannot execute binary file.
Can anybody give mi a hint on where I can fix the error?
Thanks for help Kersten