Message ID | f41bbd107d237f76229f44b7d78fcec962c15309.1359870806.git.baruch@tkos.co.il |
---|---|
State | Superseded |
Headers | show |
Hi Baruch This looks very good. Im going to test this later this evening. Stefan 3.2.2013 8:04, Baruch Siach kirjoitti: > 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 <stefan.froberg@petroprogram.com> > Signed-off-by: Baruch Siach <baruch@tkos.co.il> > --- > > 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 > > diff --git a/package/Config.in b/package/Config.in > index ebd9817..63ab1f3 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -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" > diff --git a/package/wireshark/Config.in b/package/wireshark/Config.in > new file mode 100644 > index 0000000..e6d4e72 > --- /dev/null > +++ b/package/wireshark/Config.in > @@ -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 > diff --git a/package/wireshark/wireshark-dont-include-prefix.patch b/package/wireshark/wireshark-dont-include-prefix.patch > new file mode 100644 > index 0000000..567af9a > --- /dev/null > +++ b/package/wireshark/wireshark-dont-include-prefix.patch > @@ -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 <baruch@tkos.co.il> > +--- > +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 > diff --git a/package/wireshark/wireshark.mk b/package/wireshark/wireshark.mk > new file mode 100644 > index 0000000..32c943a > --- /dev/null > +++ b/package/wireshark/wireshark.mk > @@ -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))
Hi Stefan,
On Sun, Feb 03, 2013 at 02:11:23PM +0200, Stefan Fröberg wrote:
> This looks very good. Im going to test this later this evening.
Did you have a chance to test, then?
baruch
Hi Baruch 14.2.2013 6:56, Baruch Siach kirjoitti: > Hi Stefan, > > On Sun, Feb 03, 2013 at 02:11:23PM +0200, Stefan Fröberg wrote: >> 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
14.2.2013 17:05, Stefan Fröberg kirjoitti: > Hi Baruch > > 14.2.2013 6:56, Baruch Siach kirjoitti: >> Hi Stefan, >> >> On Sun, Feb 03, 2013 at 02:11:23PM +0200, Stefan Fröberg wrote: >>> 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 > > > _______________________________________________ > buildroot mailing list > buildroot@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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
14.2.2013 17:43, Stefan Fröberg kirjoitti: > 14.2.2013 17:05, Stefan Fröberg kirjoitti: >> Hi Baruch >> >> 14.2.2013 6:56, Baruch Siach kirjoitti: >>> Hi Stefan, >>> >>> On Sun, Feb 03, 2013 at 02:11:23PM +0200, Stefan Fröberg wrote: >>>> 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 >> >> >> _______________________________________________ >> buildroot mailing list >> buildroot@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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 > > 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
Hi Stefan, On Thu, Feb 14, 2013 at 05:52:52PM +0200, Stefan Fröberg wrote: [...] > 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. > 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. > 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
Hello Baruch 15.2.2013 13:51, Baruch Siach kirjoitti: > Hi Stefan, > > On Thu, Feb 14, 2013 at 05:52:52PM +0200, Stefan Fröberg wrote: > [...] >> 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. > >> 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 >> 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 >
Hi Stefan, On Fri, Feb 15, 2013 at 02:12:39PM +0200, Stefan Fröberg wrote: > 15.2.2013 13:51, Baruch Siach kirjoitti: > > On Thu, Feb 14, 2013 at 05:52:52PM +0200, Stefan Fröberg wrote: > > [...] > >> 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. > > > >> 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. > I will try later this evening how far I get this time with compiling it. Keep me posted. Thanks, baruch
[snip] >>>> 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. > >> 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
15.2.2013 22:34, Stefan Fröberg kirjoitti: > [snip] >>>>> 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. >> >>> 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 Sorry, i meant configure.in *not* configure.ac Stefan
diff --git a/package/Config.in b/package/Config.in index ebd9817..63ab1f3 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/wireshark/Config.in b/package/wireshark/Config.in new file mode 100644 index 0000000..e6d4e72 --- /dev/null +++ b/package/wireshark/Config.in @@ -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 diff --git a/package/wireshark/wireshark-dont-include-prefix.patch b/package/wireshark/wireshark-dont-include-prefix.patch new file mode 100644 index 0000000..567af9a --- /dev/null +++ b/package/wireshark/wireshark-dont-include-prefix.patch @@ -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 <baruch@tkos.co.il> +--- +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 diff --git a/package/wireshark/wireshark.mk b/package/wireshark/wireshark.mk new file mode 100644 index 0000000..32c943a --- /dev/null +++ b/package/wireshark/wireshark.mk @@ -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))
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 <stefan.froberg@petroprogram.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> --- 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