https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15064
Bug ID: 15064
Summary: wireshark build failed on centOS
Product: Wireshark
Version: unspecified
Hardware: x86
OS: Red Hat
Status: UNCONFIRMED
Severity: Major
Priority: Low
Component: Build process
Assignee: bugzilla-ad...@wireshark.org
Reporter: xiaoc...@foxmail.com
Target Milestone: ---
Build Information:
Version 2.9.0 (Git Rev Unknown from unknown)
Copyright 1998-2018 Gerald Combs <ger...@wireshark.org> and contributors.
License GPLv2+: GNU GPL version 2 or later
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software;
see the source for copying conditions. There is NO warranty; not even for
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled (64-bit) with Qt 5.9.1, with libpcap, without POSIX capabilities,
without libnl, with GLib 2.50.3, with zlib 1.2.7, without SMI, without c-ares,
without Lua, without GnuTLS, with Gcrypt 1.5.3, with MIT Kerberos, without
MaxMind DB resolver, without nghttp2, without LZ4, without Snappy, without
libxml2, with QtMultimedia, without SBC, without SpanDSP, without bcg729.
Running on Linux 3.10.0-693.2.2.el7.x86_64, with Intel(R) Core(TM) i5-7200U CPU
@ 2.50GHz (with SSE4.2), with 1839 MB of physical memory, with locale
en_US.UTF-8, with libpcap version 1.5.3, with Gcrypt 1.5.3, with zlib 1.2.7,
binary plugins supported (14 loaded). Built using gcc 4.8.5 20150623 (Red Hat
4.8.5-16).
Wireshark is Open Source Software released under the GNU General Public
License.
Check the man page and http://www.wireshark.org for more information.
--
The build failure is as below. The reason is the auto generated ps.c file
has one more new line. When I substitute the ps.c file with normal version, the
build succeeds.
/home/xiaochsu/Software/debug2/epan/ps.c:356:2: error: missing terminating "
character
/home/xiaochsu/Software/debug2/epan/ps.c:357:1: error: stray ‘\’ in program
/home/xiaochsu/Software/debug2/epan/ps.c:357:3: error: missing terminating "
character [-Werror]
/home/xiaochsu/Software/debug2/epan/ps.c:357:1: error: missing terminating "
character
/home/xiaochsu/Software/debug2/epan/ps.c:358:1: error: expected declaration or
statement at end of input
cc1: all warnings being treated as errors
make[2]: *** [epan/CMakeFiles/epan.dir/ps.c.o] Error 1
make[1]: *** [epan/CMakeFiles/epan.dir/all] Error 2
make: *** [all] Error 2
###### abnormal ps.c file ########
void print_ps_preamble(FILE *fd) {
fprintf(fd, "%%!
\n");
fprintf(fd, "%%!PS-Adobe-2.0
\n");
fprintf(fd, "%%
\n");
fprintf(fd, "%% Wireshark - Network traffic analyzer
\n");
fprintf(fd, "%% By Gerald Combs <ger...@wireshark.org>
\n");
fprintf(fd, "%% Copyright 1998 Gerald Combs
\n");
********** normal ps.c file ***************
void print_ps_preamble(FILE *fd) {
fprintf(fd, "%%!\n");
fprintf(fd, "%%!PS-Adobe-2.0\n");
fprintf(fd, "%%\n");
fprintf(fd, "%% Wireshark - Network traffic analyzer\n");
fprintf(fd, "%% By Gerald Combs <ger...@wireshark.org>\n");
fprintf(fd, "%% Copyright 1998 Gerald Combs\n");
fprintf(fd, "%%\n");
--
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via: Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives: https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe