[Slackbuilds-users] Updates - 20191221.1

Luiz Carlos Ramos lramos.prof at yahoo.com.br
Tue Dec 24 17:12:48 UTC 2019


Hello,

here the build of wireshark ran into problems. A specific source code
(sharkd_session.c) gave errors related to the (un-)definition of uint16_t and
uint32_t, like that:


[ 92%] Built target capinfos
[ 92%] Building C object CMakeFiles/sharkd.dir/sharkd_session.c.o
In file included from /usr/include/speex/speexdsp_types.h:122:0,
                 from /usr/include/speex/speex_resampler.h:87,
                 from /tmp/SBo/wireshark-3.2.0/sharkd_session.c:62:
/usr/include/speex/speexdsp_config_types.h:13:9: error: unknown type name ‘uint16_t’
 typedef uint16_t spx_uint16_t;
         ^
/usr/include/speex/speexdsp_config_types.h:15:9: error: unknown type name ‘uint32_t’
 typedef uint32_t spx_uint32_t;
         ^
/tmp/SBo/wireshark-3.2.0/sharkd_session.c: In function ‘sharkd_rtp_download_decode’:
/tmp/SBo/wireshark-3.2.0/sharkd_session.c:3958:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (sample_rate != cur_in_rate)
                     ^
/tmp/SBo/wireshark-3.2.0/sharkd_session.c:3966:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (out_len * sample_bytes_ > resample_buff_len)
                                ^
/tmp/SBo/wireshark-3.2.0/sharkd_session.c:3968:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while ((out_len * sample_bytes_ > resample_buff_len))
                                     ^
CMakeFiles/sharkd.dir/build.make:110: recipe for target 'CMakeFiles/sharkd.dir/sharkd_session.c.o' failed
make[2]: *** [CMakeFiles/sharkd.dir/sharkd_session.c.o] Error 1
CMakeFiles/Makefile2:869: recipe for target 'CMakeFiles/sharkd.dir/all' failed
make[1]: *** [CMakeFiles/sharkd.dir/all] Error 2
Makefile:138: recipe for target 'all' failed


I could work around it adding #include <stdint.h> in the beginning of that
file, using a patch. The patch below solved the problem here.

Anyway, even it's likely that this is not happening in other environments
(given one didn't heard any complains so far), this patch much probably won't
harm anything at all.

Please take a look and apply if you'd find it convenient.


Thanks,

Luiz Carlos Ramos
Sao Paulo - Brazil
lramos dot prof at yahoo dot com dot br


=== patch =====================================================================
From: Luiz Ramos <lramos.prof at yahoo.com.br>
Date: Tue, 24 Dec 2019 13:40:12 -0300
Subject: [PATCH] network/wireshark: fix compilation

A single C source code was not compiling successfully in one specific
machine, giving errors related to the definitions of uint16_t and
uint32_t.

This error possibly doesn't happen in other environments.

Anyway, adding #include <stdint.h> in that file by a patch fixed the
problem in that machine and much likely won't harm anybody else.
---
 .../0002-avoid-uint16-uint32-compilation-error.patch          | 11 +++++++++++
 network/wireshark/wireshark.SlackBuild                        |  2 ++
 2 files changed, 13 insertions(+)
 create mode 100644 network/wireshark/0002-avoid-uint16-uint32-compilation-error.patch

diff --git a/network/wireshark/0002-avoid-uint16-uint32-compilation-error.patch b/network/wireshark/0002-avoid-uint16-uint32-compilation-error.patch
new file mode 100644
index 0000000000..553ff5fd76
--- /dev/null
+++ b/network/wireshark/0002-avoid-uint16-uint32-compilation-error.patch
@@ -0,0 +1,11 @@
+diff -urpN a/sharkd_session.c b/sharkd_session.c
+--- a/sharkd_session.c	2019-12-18 15:27:56.000000000 -0300
++++ b/sharkd_session.c	2019-12-22 07:34:27.712074918 -0300
+@@ -11,6 +11,7 @@
+ 
+ #include <config.h>
+ 
++#include <stdint.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
diff --git a/network/wireshark/wireshark.SlackBuild b/network/wireshark/wireshark.SlackBuild
index efe1f95895..6462ec9472 100644
--- a/network/wireshark/wireshark.SlackBuild
+++ b/network/wireshark/wireshark.SlackBuild
@@ -73,6 +73,8 @@ find -L . \
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+patch -p1 -i ${CWD}/0002-avoid-uint16-uint32-compilation-error.patch
+
 # We have 3 lua versions on SBo: lua is v5.1, lua52 is 5.2, lua53 is 5.3.
 # Wireshark only supports 5.1 and 5.2, not 5.3. The lua version doesn't
 # affect core wireshark, only 3rd-party plugins written in lua. Most
-- 
2.14.5
=== patch =====================================================================



On Sat, Dec 21, 2019 at 11:19:32AM +0700, Willy Sudiarto Raharjo wrote:
> Hi
> 
> i made a mistake when pushing this public update, which was forgetting
> to put the date and the separator in the ChangeLog which is already
> fixed in the latest commit in master and 14.2 branch, but the RSS feed
> will not be updated until the next public update.
> 
> 
> Sat Dec 21 04:03:34 UTC 2019
> academic/ITK: Add support for GCC 9.
> academic/scidavis: Updated for version 1.26.
> accessibility/espeak: Add pulseaudio, make portaudio optional.
> accessibility/pastebinit: Change default config.
> accessibility/xdotool: Install API docs.
> audio/setBfree: Updated for version 0.8.11.
> development/Fennel: Updated for version 0.3.1.
> development/Sphinx: Updated for version 2.3.0.
> development/eovim: Updated for version 0.1.3.
> development/frobtads: Added (Interactive compiler and interpreter).
> development/inform: Updated for version 6.34_6.12.2.
> development/jdk11: Updated for version 11.0.5.
> development/kicad-library: Removed.
> development/squirrel-sql: Fix MD5SUM.
> development/uncrustify fix a regression in 0.70.1
> games/qtads: Added (a multimedia interpreter for TADS games).
> games/supertux: Updated for version 0.6.1 + new maintainer.
> gis/rasterio: Updated for version 1.1.2.
> gnu-unifont: Updated for version 12.1.04.
> graphics/dblatex: Updated for version 0.3.10.
> graphics/feh: Updated for version 3.3.
> graphics/png2ico: Added (PNG to icon converter).
> graphics/vuescan: Update MD5SUMs.
> graphics/vulkan-sdk: Updated for version 1.1.126.0.
> ham/wsjtx: Updated for version 2.1.2
> libraries/PyQt5-legacy: Fix typo in README
> libraries/libdockapp: Add missing doinst.sh.
> libraries/librhtv: Added (Turbo Vision TUI Library).
> libraries/libsixel: Updated for version 1.8.4.
> libraries/libtorrent-rasterbar: Updated for version 1.1.13.
> libraries/libxlsxwriter: Updated for version 0.8.9.
> libraries/qt5: Updated for version 5.9.9.
> multimedia/youtube-viewer: Updated for version 3.6.0.
> network/bluejeans: Updated for version 2.0.0.
> network/insync: Updated for version 3.0.25.40643.
> network/kubectl: Added (Kubectl command line interface).
> network/plexmediaserver: Updated for version 1.18.3.2156_349e9837e.
> network/qbittorrent-qt5: Updated for version 4.2.0.
> network/r8168: Updated for version 8.047.05.
> network/sfeed: Updated for version 0.9.15.
> network/signal-desktop: Updated for version 1.29.3.
> network/teamviewer: Updated for version 15.1.3937.
> network/waterfox: Updated for version 2019.12.
> network/wireshark: Updated for version 3.2.0.
> office/rednotebook: Updated for version 2.15.
> office/texmacs Updated to 1.99.12
> perl/perl-Cpanel-JSON-XS: Updated for version 4.18.
> perl/perl-Data-Dumper-Concise: Added (Beter Data::Dumper).
> python/parso: Updated for version 0.5.2.
> python/python-importlib_metadata: Updated for 1.3.0.
> python/python-zipp: Add missing dependency.
> python/python3-aiorpcX: Updated for version 0.18.4.
> python/python3-multidict: Updated for version 4.7.1.
> python/pyudev: Updated for version 0.21.0.
> system/Solaar: Added (Linux device manager for Logitech).
> system/ansible: Updated for version 2.9.2.
> system/archivemount: Added (mounts an archive as a file system).
> system/firetools: Updated for version 0.9.62.
> system/phoronix-test-suite: Updated for version 9.2.1.
> system/slpkg: Updated for version 3.7.4.
> +--------------------------+
> -- 
> Willy Sudiarto Raharjo
> 




> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
> 



More information about the SlackBuilds-users mailing list