Skip to contentSkip to conversation

libpcap: fixup pcap-config

PATCH New Baruch Siach 3 participants 13 messages Feb 3, 2013 – Feb 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libpcap: fixup pcap-config

---

This patch depends on Stefan's LIBFOO_CONFIG_FIXUP patch. pcap-config still insists on adding the build machine RPATH to its --libs output. Sould I add a libcap specific fixup for this?

 package/libpcap/libpcap.mk |    1 +
 1 file changed, 1 insertion(+)
package/libpcap/libpcap.mk +1 -0
index 7e68f51..5be61bf 100644
@@ -24,6 +24,7 @@ LIBPCAP_DEPENDENCIES = zlib
 LIBPCAP_CONF_ENV = ac_cv_linux_vers=2 \
 		ac_cv_header_linux_wireless_h=yes # configure misdetects this
 LIBPCAP_CONF_OPT = --disable-yydebug --with-pcap=linux
+LIBPCAP_CONFIG_FIXUP = pcap-config
 
 ifeq ($(BR2_PACKAGE_LIBUSB),y)
 LIBPCAP_CONF_OPT += --enable-canusb
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v5 2/2 wireshark: new package

This is only the bare minimum needed to build the textual tshark utility. Support for more options, including the wireshark GUI, can be added later.

Cc Stefan Fr?berg <[email protected]>

---

Changes v4 -> v5:
* update to version 1.8.5 as suggested by Gustavo Zacarias

Changes v3 -> v4:
* Update to version 1.8.4

Changes v2 -> v3:
* Use an upstreamable patch as suggested by Thomas Petazzoni
* Add license info

Changes v1 -> v2:
* Patch configure.in and enable autoreconf, instead of overriding $prefix
* Remove --with-sysroot as suggested by Arnout Vandecappelle

 package/Config.in                                  |    1 +
 package/wireshark/Config.in                        |   14 +++++++
 .../wireshark/wireshark-dont-include-prefix.patch  |   41 ++++++++++++++++++++
 package/wireshark/wireshark.mk                     |   19 +++++++++
 4 files changed, 75 insertions(+)
 create mode 100644 package/wireshark/Config.in
 create mode 100644 package/wireshark/wireshark-dont-include-prefix.patch
 create mode 100644 package/wireshark/wireshark.mk
package/Config.in +1 -0
index ebd9817..63ab1f3 100644
@@ -727,6 +727,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/wget/Config.in"
 endif
 source "package/wireless_tools/Config.in"
+source "package/wireshark/Config.in"
 source "package/wpa_supplicant/Config.in"
 source "package/xinetd/Config.in"
 source "package/xl2tp/Config.in"
package/wireshark/Config.in new file +14 -0
new file mode 100644
index 0000000..e6d4e72
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_WIRESHARK
+	bool "wireshark"
+	select BR2_PACKAGE_LIBPCAP
+	select BR2_PACKAGE_LIBGCRYPT
+	select BR2_PACKAGE_LIBGLIB2
+	depends on BR2_USE_WCHAR # glib2
+	help
+	  Network traffic sniffer and protocol decoder. Currently only tshark,
+	  the console interface, is enabled.
+
+	  http://www.wireshark.org
+
+comment "wireshark requires a toolchain with WCHAR support"
+	depends on !BR2_USE_WCHAR
package/wireshark/wireshark-dont-include-prefix.patch new file +41 -0

41 lines not on this page · raw message

package/wireshark/wireshark.mk new file +19 -0
new file mode 100644
index 0000000..32c943a
@@ -0,0 +1,19 @@
+#############################################################
+#
+# wireshark
+#
+#############################################################
+
+WIRESHARK_VERSION = 1.8.5
+WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.bz2
+WIRESHARK_SITE = http://www.wireshark.org/download/src/all-versions
+WIRESHARK_LICENSE = wireshark license
+WIRESHARK_LICENSE_FILES = COPYING
+WIRESHARK_DEPENDENCIES = libpcap libgcrypt libglib2
+WIRESHARK_AUTORECONF = YES
+WIRESHARK_CONF_ENV = LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config \
+			ac_cv_path_PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config
+WIRESHARK_CONF_OPT = --disable-wireshark --without-krb5 --disable-usr-local \
+		     --enable-static=no
+
+$(eval $(call autotools-package))
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH v5 2/2 wireshark: new package

Hi Baruch

This looks very good. Im going to test this later this evening.

Stefan

3.2.2013 8:04, Baruch Siach kirjoitti:

Quoted 135 lines

This is only the bare minimum needed to build the textual tshark utility. Support for more options, including the wireshark GUI, can be added later.

Cc Stefan Fr?berg <[email protected]>

---

Changes v4 -> v5:
* update to version 1.8.5 as suggested by Gustavo Zacarias

Changes v3 -> v4:
* Update to version 1.8.4

Changes v2 -> v3:
* Use an upstreamable patch as suggested by Thomas Petazzoni
* Add license info

Changes v1 -> v2:
* Patch configure.in and enable autoreconf, instead of overriding $prefix
* Remove --with-sysroot as suggested by Arnout Vandecappelle

 package/Config.in                                  |    1 +
 package/wireshark/Config.in                        |   14 +++++++
 .../wireshark/wireshark-dont-include-prefix.patch  |   41 ++++++++++++++++++++
 package/wireshark/wireshark.mk                     |   19 +++++++++
 4 files changed, 75 insertions(+)
 create mode 100644 package/wireshark/Config.in
 create mode 100644 package/wireshark/wireshark-dont-include-prefix.patch
 create mode 100644 package/wireshark/wireshark.mk
package/Config.in +1 -0
index ebd9817..63ab1f3 100644
@@ -727,6 +727,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/wget/Config.in"
 endif
 source "package/wireless_tools/Config.in"
+source "package/wireshark/Config.in"
 source "package/wpa_supplicant/Config.in"
 source "package/xinetd/Config.in"
 source "package/xl2tp/Config.in"
package/wireshark/Config.in new file +14 -0
new file mode 100644
index 0000000..e6d4e72
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_WIRESHARK
+	bool "wireshark"
+	select BR2_PACKAGE_LIBPCAP
+	select BR2_PACKAGE_LIBGCRYPT
+	select BR2_PACKAGE_LIBGLIB2
+	depends on BR2_USE_WCHAR # glib2
+	help
+	  Network traffic sniffer and protocol decoder. Currently only tshark,
+	  the console interface, is enabled.
+
+	  http://www.wireshark.org
+
+comment "wireshark requires a toolchain with WCHAR support"
+	depends on !BR2_USE_WCHAR
package/wireshark/wireshark-dont-include-prefix.patch new file +41 -0
new file mode 100644
index 0000000..567af9a
@@ -0,0 +1,41 @@
+configure.in: don't add the build host's /usr/include and /usr/lib to the 
+search path of include files and libraries. This is not what you want when 
+cross compiling.
+
+Sent upstream as https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7926.
+
+Signed-off-by: Baruch Siach <[email protected]>
+---
+diff -Nuar wireshark-1.8.3.orig/configure.in wireshark-1.8.3/configure.in
+--- wireshark-1.8.3.orig/configure.in	2012-08-15 23:33:32.000000000 +0300
++++ wireshark-1.8.3/configure.in	2012-10-28 10:07:54.864388531 +0200
+@@ -635,29 +635,6 @@
+ AC_SUBST(CORESERVICES_FRAMEWORKS)
+ AC_SUBST(LAUNCHSERVICES_FRAMEWORKS)
+ 
+-#
+-# If using $prefix we add "$prefix/include" to the include search path
+-# and "$prefix/lib" to the library search path.
+-#
+-if test "x$prefix" != "x" ; then
+-	AC_MSG_CHECKING(whether to use $prefix for headers and libraries)
+-	if test -d $prefix/include ; then
+-		AC_MSG_RESULT(yes)
+-		#
+-		# Arrange that we search for header files in "$prefix/include", as
+-		# various packages we use may have been installed under "$prefix/include".
+-		#
+-		CPPFLAGS="$CPPFLAGS -I$prefix/include"
+-
+-		#
+-		# Arrange that we search for libraries in "$prefix/lib".
+-		#
+-		AC_WIRESHARK_ADD_DASH_L(LDFLAGS, $prefix/lib)
+-	else
+-		AC_MSG_RESULT(no)
+-	fi
+-fi
+-
+ dnl Look in /usr/local for header files and libraries ?
+ dnl XXX FIXME don't include /usr/local if it is already in the system
+ dnl search path as this causes gcc 3.2 on Linux to complain about a change
package/wireshark/wireshark.mk new file +19 -0
new file mode 100644
index 0000000..32c943a
@@ -0,0 +1,19 @@
+#############################################################
+#
+# wireshark
+#
+#############################################################
+
+WIRESHARK_VERSION = 1.8.5
+WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.bz2
+WIRESHARK_SITE = http://www.wireshark.org/download/src/all-versions
+WIRESHARK_LICENSE = wireshark license
+WIRESHARK_LICENSE_FILES = COPYING
+WIRESHARK_DEPENDENCIES = libpcap libgcrypt libglib2
+WIRESHARK_AUTORECONF = YES
+WIRESHARK_CONF_ENV = LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config \
+			ac_cv_path_PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config
+WIRESHARK_CONF_OPT = --disable-wireshark --without-krb5 --disable-usr-local \
+		     --enable-static=no
+
+$(eval $(call autotools-package))
#3 lore raw

PATCH v5 2/2 wireshark: new package

Hi Stefan,

Quoted 1 line · Stefan Fr?berg

This looks very good. Im going to test this later this evening.

Did you have a chance to test, then?

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#4 lore raw

PATCH v5 2/2 wireshark: new package

Hi Baruch

14.2.2013 6:56, Baruch Siach kirjoitti:

Quoted 8 lines

Hi Stefan,

Quoted 1 line · Stefan Fr?berg

This looks very good. Im going to test this later this evening.

Did you have a chance to test, then?

baruch

Sorry, I was distracted again but it's compiling right now. Will report later.

Stefan

#5 lore raw

PATCH v5 2/2 wireshark: new package

14.2.2013 17:05, Stefan Fr?berg kirjoitti:

Quoted 14 lines

Hi Baruch

14.2.2013 6:56, Baruch Siach kirjoitti:

Quoted 8 lines

Hi Stefan,

Quoted 1 line · Stefan Fr?berg

This looks very good. Im going to test this later this evening.

Did you have a chance to test, then?

baruch

Sorry, I was distracted again but it's compiling right now. Will report later.

Quoted 7 lines

Stefan

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

I got the following error when compiling.

make[2]: Poistutaan hakemistosta
"/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/ui/cli"
Making all in .
make[2]: Siirryt??n hakemistoon
"/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5"
/usr/bin/perl ./make-version.pl .
Version configuration file version.conf not found. Using defaults.
svnversion.h unchanged.
/bin/sh ./libtool --tag=CC --mode=link
/mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
-DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
-W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0 -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include -export-dynamic -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z -Wl,combreloc
-Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--as-needed -o tshark
tshark-capture-pcap-util-unix.o tshark-capture-pcap-util.o
tshark-cfile.o tshark-clopts_common.o tshark-disabled_protos.o
tshark-frame_data_sequence.o tshark-packet-range.o tshark-print.o
tshark-ps.o tshark-sync_pipe_write.o tshark-timestats.o
tshark-tap-megaco-common.o tshark-tap-rtp-common.o tshark-version_info.o
tshark-capture_ifinfo.o tshark-capture_sync.o tshark-capture_ui_utils.o
tshark-capture_opts.o tshark-tempfile.o tshark-tshark.o
ui/cli/libcliui.a ui/libui.a wiretap/libwiretap.la epan/libwireshark.la
wsutil/libwsutil.la -dlopen plugins/asn1/asn1.la -dlopen
plugins/docsis/docsis.la -dlopen plugins/ethercat/ethercat.la -dlopen
plugins/gryphon/gryphon.la -dlopen plugins/irda/irda.la -dlopen
plugins/m2m/m2m.la -dlopen plugins/mate/mate.la -dlopen
plugins/opcua/opcua.la -dlopen plugins/profinet/profinet.la -dlopen
plugins/stats_tree/stats_tree.la -dlopen plugins/unistim/unistim.la
-dlopen plugins/wimax/wimax.la -pthread -Wl,--export-dynamic
-lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lm
-L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib -Wl,-rpath,/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-lpcap
-L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-lgcrypt -lgpg-error -lgnutls -lz
libtool: link: rm -f .libs/tshark.nm .libs/tshark.nmS .libs/tshark.nmT
libtool: link: (cd .libs &&
/mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
-pipe -funit-at-a-time -Wno-error -Os -Os -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0 -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
-c -fno-builtin "tsharkS.c")
libtool: link: rm -f ".libs/tsharkS.c" ".libs/tshark.nm"
".libs/tshark.nmS" ".libs/tshark.nmT"
libtool: link:
/mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc
-DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
-W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0 -I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z -Wl,combreloc
-Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--as-needed -o tshark
tshark-capture-pcap-util-unix.o tshark-capture-pcap-util.o
tshark-cfile.o tshark-clopts_common.o tshark-disabled_protos.o
tshark-frame_data_sequence.o tshark-packet-range.o tshark-print.o
tshark-ps.o tshark-sync_pipe_write.o tshark-timestats.o
tshark-tap-megaco-common.o tshark-tap-rtp-common.o tshark-version_info.o
tshark-capture_ifinfo.o tshark-capture_sync.o tshark-capture_ui_utils.o
tshark-capture_opts.o tshark-tempfile.o tshark-tshark.o .libs/tsharkS.o
-pthread -Wl,--export-dynamic -Wl,-rpath -Wl,/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib -Wl,--export-dynamic ui/cli/libcliui.a ui/libui.a
wiretap/.libs/libwiretap.so epan/.libs/libwireshark.so -L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-L/usr/lib
/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/wiretap/.libs/libwiretap.so /mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/wsutil/.libs/libwsutil.so wsutil/.libs/libwsutil.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgthread-2.0.so -lpthread /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgmodule-2.0.so -ldl
/mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.3/glib/.libs/libglib-2.0.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libglib-2.0.so
-lm -lpcap /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgcrypt.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgpg-error.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libintl.so
-lc -lz -pthread -Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/wiretap/.libs
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/epan/.libs
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/wsutil/.libs
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.3/glib/.libs
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib /mnt/hee/new/buildroot-2012.08/output/host/usr/lib/gcc/i586-unknown-linux-uclibc/4.7.1/../../../../i586-unknown-linux-uclibc/bin/ld:
warning: libc.so.6, needed by /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so,
not found (try using -rpath or -rpath-link) /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fwrite at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `sprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `stderr at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `ferror at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strchr at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strncat at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fread at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `vasprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `gmtime at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strstr at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fseek at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fileno at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__ctype_b_loc at GLIBC_2.3' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fputc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strdup at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__errno_location at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fgets at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `atoi at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `time at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strrchr at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strverscmp at GLIBC_2.1' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strtol at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `feof at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `gmtime_r at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `vsnprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strncasecmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `abort at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strcasecmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strncmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `recv at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strcat at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fclose at GLIBC_2.1' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fgetc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `memmove at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__xstat64 at GLIBC_2.2' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `calloc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strcpy at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strncpy at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `free at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fopen64 at GLIBC_2.1' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `snprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__fxstat64 at GLIBC_2.2' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strftime at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__assert at GLIBC_2.2' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `realloc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `tmpfile64 at GLIBC_2.1' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `memmem at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strcmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strtoul at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__ctype_toupper_loc at GLIBC_2.3' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `malloc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `memcmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `send at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `ftell at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fputs at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fflush at GLIBC_2.0'
collect2: error: ld returned 1 exit status
libtool: link: rm -f ".libs/tsharkS.o"
make[2]: *** [tshark] Virhe 1
make[2]: Poistutaan hakemistosta
"/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5"
make[1]: *** [all-recursive] Virhe 1
make[1]: Poistutaan hakemistosta
"/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5"
make: *** [all] Virhe 2

#6 lore raw

PATCH v5 2/2 wireshark: new package

14.2.2013 17:43, Stefan Fr?berg kirjoitti:

Quoted 251 lines

14.2.2013 17:05, Stefan Fr?berg kirjoitti:

Quoted 14 lines

Hi Baruch

14.2.2013 6:56, Baruch Siach kirjoitti:

Quoted 8 lines

Hi Stefan,

Quoted 1 line · Stefan Fr?berg

This looks very good. Im going to test this later this evening.

Did you have a chance to test, then?

baruch

Sorry, I was distracted again but it's compiling right now. Will report later.

Quoted 7 lines

Stefan

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

I got the following error when compiling.

make[2]: Poistutaan hakemistosta "/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/ui/cli" Making all in .
make[2]: Siirryt??n hakemistoon "/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5" /usr/bin/perl ./make-version.pl .
Version configuration file version.conf not found. Using defaults. svnversion.h unchanged.
/bin/sh ./libtool --tag=CC --mode=link
/mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc

(quoted diff) +0 -10
-DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
-W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include  
-export-dynamic -Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z -Wl,combreloc
-Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--as-needed -o tshark

tshark-capture-pcap-util-unix.o tshark-capture-pcap-util.o tshark-cfile.o tshark-clopts_common.o tshark-disabled_protos.o tshark-frame_data_sequence.o tshark-packet-range.o tshark-print.o tshark-ps.o tshark-sync_pipe_write.o tshark-timestats.o tshark-tap-megaco-common.o tshark-tap-rtp-common.o tshark-version_info.o tshark-capture_ifinfo.o tshark-capture_sync.o tshark-capture_ui_utils.o tshark-capture_opts.o tshark-tempfile.o tshark-tshark.o ui/cli/libcliui.a ui/libui.a wiretap/libwiretap.la epan/libwireshark.la wsutil/libwsutil.la -dlopen plugins/asn1/asn1.la -dlopen plugins/docsis/docsis.la -dlopen plugins/ethercat/ethercat.la -dlopen plugins/gryphon/gryphon.la -dlopen plugins/irda/irda.la -dlopen plugins/m2m/m2m.la -dlopen plugins/mate/mate.la -dlopen plugins/opcua/opcua.la -dlopen plugins/profinet/profinet.la -dlopen plugins/stats_tree/stats_tree.la -dlopen plugins/unistim/unistim.la

(quoted diff) +0 -7
-dlopen plugins/wimax/wimax.la -pthread -Wl,--export-dynamic
-lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl   -lm
-L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-Wl,-rpath,/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-lpcap
-L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-lgcrypt -lgpg-error -lgnutls  -lz

libtool: link: rm -f .libs/tshark.nm .libs/tshark.nmS .libs/tshark.nmT
libtool: link: (cd .libs && /mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc

(quoted diff) +0 -9
-pipe -funit-at-a-time -Wno-error -Os -Os -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
-c -fno-builtin "tsharkS.c")

libtool: link: rm -f ".libs/tsharkS.c" ".libs/tshark.nm" ".libs/tshark.nmS" ".libs/tshark.nmT"
libtool: link:
/mnt/hee/new/buildroot-2012.08/output/host/usr/bin/i586-unknown-linux-uclibc-gcc

(quoted diff) +0 -10
-DPYTHON_DIR= -pipe -funit-at-a-time -Wno-error -Os -Os
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
-W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-Wold-style-definition -Wno-error=unused-but-set-variable
-fexcess-precision=fast -pthread
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/include/glib-2.0
-I/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/glib-2.0/include
-Wl,-S -Wl,-O1 -Wl,--as-needed -Wl,-z -Wl,combreloc
-Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--as-needed -o tshark

tshark-capture-pcap-util-unix.o tshark-capture-pcap-util.o tshark-cfile.o tshark-clopts_common.o tshark-disabled_protos.o tshark-frame_data_sequence.o tshark-packet-range.o tshark-print.o tshark-ps.o tshark-sync_pipe_write.o tshark-timestats.o tshark-tap-megaco-common.o tshark-tap-rtp-common.o tshark-version_info.o tshark-capture_ifinfo.o tshark-capture_sync.o tshark-capture_ui_utils.o tshark-capture_opts.o tshark-tempfile.o tshark-tshark.o .libs/tsharkS.o

(quoted diff) +0 -3
-pthread -Wl,--export-dynamic -Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-Wl,--export-dynamic  ui/cli/libcliui.a ui/libui.a

wiretap/.libs/libwiretap.so epan/.libs/libwireshark.so

(quoted diff) +0 -2
-L/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-L/usr/lib

/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/wiretap/.libs/libwiretap.so /mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/wsutil/.libs/libwsutil.so wsutil/.libs/libwsutil.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgthread-2.0.so -lpthread /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgmodule-2.0.so -ldl /mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.3/glib/.libs/libglib-2.0.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libglib-2.0.so -lm -lpcap /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgcrypt.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgpg-error.so /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libintl.so

(quoted diff) +0 -12
-lc -lz -pthread -Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/wiretap/.libs
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/epan/.libs
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5/wsutil/.libs
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/build/libglib2-2.30.3/glib/.libs
-Wl,-rpath
-Wl,/mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib

/mnt/hee/new/buildroot-2012.08/output/host/usr/lib/gcc/i586-unknown-linux-uclibc/4.7.1/../../../../i586-unknown-linux-uclibc/bin/ld:
warning: libc.so.6, needed by /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so,
not found (try using -rpath or -rpath-link) /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fwrite at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `sprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `stderr at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `ferror at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strchr at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strncat at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fread at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `vasprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `gmtime at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strstr at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fseek at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fileno at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__ctype_b_loc at GLIBC_2.3' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fputc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strdup at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__errno_location at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fgets at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `atoi at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `time at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strrchr at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strverscmp at GLIBC_2.1' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strtol at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `feof at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `gmtime_r at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `vsnprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strncasecmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `abort at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strcasecmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strncmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `recv at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strcat at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fclose at GLIBC_2.1' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fgetc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `memmove at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__xstat64 at GLIBC_2.2' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `calloc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strcpy at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strncpy at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `free at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fopen64 at GLIBC_2.1' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `snprintf at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__fxstat64 at GLIBC_2.2' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strftime at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__assert at GLIBC_2.2' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `realloc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `tmpfile64 at GLIBC_2.1' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `memmem at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strcmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `strtoul at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `__ctype_toupper_loc at GLIBC_2.3' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `malloc at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `memcmp at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `send at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `ftell at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fputs at GLIBC_2.0' /mnt/hee/new/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libgnutls.so:
undefined reference to `fflush at GLIBC_2.0'
collect2: error: ld returned 1 exit status

Quoted 10 lines

libtool: link: rm -f ".libs/tsharkS.o"
make[2]: *** [tshark] Virhe 1
make[2]: Poistutaan hakemistosta "/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5" make[1]: *** [all-recursive] Virhe 1
make[1]: Poistutaan hakemistosta "/mnt/hee/new/buildroot-2012.08/output/build/wireshark-1.8.5"
make: *** [all] Virhe 2

It seems I need to upgrade to latest git version if I want this to work. That version of gnutls has
--disable-rpath in it's conf.

BTW, Baruch did you manage to compile this version of wireshark against that gnutls 3 ?
Im asking it because in gentoo there is a patch for wireshark 1.8.5 that is supposedly to support gnutls 3

Here's the patch
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/files/wireshark-1.8.3-gnutls3.patch?revision=1.1&view=markup

And heres their ebuild file where they are applying that patch against 1.8..5

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.5.ebuild?view=markup

Regards
Stefan

#7 lore raw

PATCH v5 2/2 wireshark: new package

Hi Stefan,

On Thu, Feb 14, 2013 at 05:52:52PM +0200, Stefan Fr?berg wrote:
[...]

Quoted 3 lines

It seems I need to upgrade to latest git version if I want this to work. That version of gnutls has
--disable-rpath in it's conf.

Thanks for testing.

Quoted 2 lines

BTW, Baruch did you manage to compile this version of wireshark against that gnutls 3 ?

Nope. I only tried OpenSSL which I already have on my target.

Quoted 10 lines

Im asking it because in gentoo there is a patch for wireshark 1.8.5 that is supposedly to support gnutls 3

Here's the patch
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/files/wireshark-1.8.3-gnutls3.patch?revision=1.1&view=markup

And heres their ebuild file where they are applying that patch against 1.8..5

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.5.ebuild?view=markup

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#8 lore raw

PATCH v5 2/2 wireshark: new package

Hello Baruch

15.2.2013 13:51, Baruch Siach kirjoitti:

Quoted 4 lines

Hi Stefan,

On Thu, Feb 14, 2013 at 05:52:52PM +0200, Stefan Fr?berg wrote:
[...]

Quoted 8 lines
Quoted 3 lines

It seems I need to upgrade to latest git version if I want this to work. That version of gnutls has
--disable-rpath in it's conf.

Thanks for testing.

Quoted 2 lines

BTW, Baruch did you manage to compile this version of wireshark against that gnutls 3 ?

Nope. I only tried OpenSSL which I already have on my target.

Your .mk file needs --with-gnutls=no added to it's configuration in case both OpenSSL and gnutls are installed.
And maybe later a submenu of choice what SSL (if any) implementation to use for decrypting.

I will try later this evening how far I get this time with compiling it.

Stefan

Quoted 12 lines
Quoted 10 lines

Im asking it because in gentoo there is a patch for wireshark 1.8.5 that is supposedly to support gnutls 3

Here's the patch
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/files/wireshark-1.8.3-gnutls3.patch?revision=1.1&view=markup

And heres their ebuild file where they are applying that patch against 1.8..5

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.5.ebuild?view=markup

baruch

#9 lore raw

PATCH v5 2/2 wireshark: new package

Hi Stefan,

Quoted 8 lines · Stefan Fr?berg

15.2.2013 13:51, Baruch Siach kirjoitti:

Quoted 7 lines · Stefan Fr?berg

[...]

Quoted 3 lines

It seems I need to upgrade to latest git version if I want this to work. That version of gnutls has
--disable-rpath in it's conf.

Thanks for testing.

Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

BTW, Baruch did you manage to compile this version of wireshark against that gnutls 3 ?

Nope. I only tried OpenSSL which I already have on my target.

Your .mk file needs --with-gnutls=no added to it's configuration in case both OpenSSL and gnutls are installed.
And maybe later a submenu of choice what SSL (if any) implementation to use for decrypting.

Ok. I'll fix that in my next patch iteration.

Quoted 1 line

I will try later this evening how far I get this time with compiling it.

Keep me posted.

Thanks,
baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#10 lore raw

PATCH v5 2/2 wireshark: new package

[snip]

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines

BTW, Baruch did you manage to compile this version of wireshark against that gnutls 3 ?

Nope. I only tried OpenSSL which I already have on my target.

Your .mk file needs --with-gnutls=no added to it's configuration in case both OpenSSL and gnutls are installed.
And maybe later a submenu of choice what SSL (if any) implementation to use for decrypting.

Quoted 7 lines

Ok. I'll fix that in my next patch iteration.

Quoted 1 line

I will try later this evening how far I get this time with compiling it.

Keep me posted.

Thanks,
baruch

After inspecting the following
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.5.ebuild?view=markup
http://www.linuxfromscratch.org/blfs/view/svn/basicnet/wireshark.html

and most importantly,

http://wiki.wireshark.org/SSL

I found out that wireshark uses OpenSSL indirectly only when using kerberos (which buildroot does not currently have), only if the said kerberos has ssl support compiled in ("krb5-config --libs" spits' out -lcrypto) and only if you pass --with-ssl to wireshark config.

For decrypting SSL streams the wireshark will use only, and *only*, GnuTLS and libgcrypt.

So if you want to include SSL decrypting support by default then you should:

1 ) try that gentoo wireshark patch that adds support for compiling
against gnutls v3
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/files/wireshark-1.8.3-gnutls3.patch?revision=1.1

2) Add --with-gnutls=yes to WIRESHARK_CONF_OPT

3) Add gnutls to wireshark dependencies.

Also, when compiling against uClibc I had to add LIBS="-ldl" to
WIRESHARK_CONF_ENV as a workaround to finish compiling. Ofcourse the prober fix for this would be a patch to configure.ac that would check if libdl exists and then add it to LIBS

Regards
Stefan

#11 lore raw

PATCH v5 2/2 wireshark: new package

15.2.2013 22:34, Stefan Fr?berg kirjoitti:

Quoted 37 lines

[snip]

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines

BTW, Baruch did you manage to compile this version of wireshark against that gnutls 3 ?

Nope. I only tried OpenSSL which I already have on my target.

Your .mk file needs --with-gnutls=no added to it's configuration in case both OpenSSL and gnutls are installed.
And maybe later a submenu of choice what SSL (if any) implementation to use for decrypting.

Quoted 7 lines

Ok. I'll fix that in my next patch iteration.

Quoted 1 line

I will try later this evening how far I get this time with compiling it.

Keep me posted.

Thanks,
baruch

After inspecting the following
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.5.ebuild?view=markup
http://www.linuxfromscratch.org/blfs/view/svn/basicnet/wireshark.html

and most importantly,

http://wiki.wireshark.org/SSL

I found out that wireshark uses OpenSSL indirectly only when using kerberos (which buildroot does not currently have), only if the said kerberos has ssl support compiled in ("krb5-config --libs" spits' out -lcrypto) and only if you pass --with-ssl to wireshark config.

For decrypting SSL streams the wireshark will use only, and *only*, GnuTLS and libgcrypt.

So if you want to include SSL decrypting support by default then you should:

1 ) try that gentoo wireshark patch that adds support for compiling
against gnutls v3
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/files/wireshark-1.8.3-gnutls3.patch?revision=1.1

Quoted 8 lines

2) Add --with-gnutls=yes to WIRESHARK_CONF_OPT

3) Add gnutls to wireshark dependencies.

Also, when compiling against uClibc I had to add LIBS="-ldl" to
WIRESHARK_CONF_ENV as a workaround to finish compiling. Ofcourse the prober fix for this would be a patch to configure.ac that would check if libdl exists and then add it to LIBS

Sorry, i meant configure.in *not* configure.ac

Stefan