I am experiencing another 1.2pre1 problem. When trying to create an rpm
installer on Linux 2.6.18-8.el5 (RHEL5) x86_64 platform, I get the
following fatal error while compiling the sources via "make rpm-package"
that I don't get if I simply run "make":
gcc -DINET6 -D_U_="__attribute__((unused))" -g -O2 -Wall -W
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -Wcast-align -Wformat-security -I/usr/local/include
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/local/include/pcap
-I/usr/local/include -I/usr/local/include/pcap
'-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.2.0pre1"'
-L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib
-L/usr/local/lib x86_64 ../tools/lemon/lemon.c -o ../tools/lemon/lemon
gcc: x86_64: No such file or directory
../tools/lemon/lemon.c: In function 'Action_sort':
../tools/lemon/lemon.c:420: warning: dereferencing type-punned pointer
will break strict-aliasing rules
../tools/lemon/lemon.c: In function 'Configlist_sort':
../tools/lemon/lemon.c:1254: warning: dereferencing type-punned pointer
will break strict-aliasing rules
../tools/lemon/lemon.c: In function 'Configlist_sortbasis':
../tools/lemon/lemon.c:1261: warning: dereferencing type-punned pointer
will break strict-aliasing rules
make[1]: *** [../tools/lemon/lemon] Error 1
It looks to me like "treat warnings as errors" are disabled by default
when compiling for Linux, is that right? But somehow not when compiling
the rpm package? If so, then does anyone know the easiest way to turn
that off for "make rpm-packaging"? Or is that not the best solution?
Thanks.
- Chris
[snip]
CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.