Wireshark-bugs: [Wireshark-bugs] [Bug 1864] New: Fix errors that cause make rpm-package failure
Date: Tue, 25 Sep 2007 02:43:24 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1864

           Summary: Fix errors that cause make rpm-package failure
           Product: Wireshark
           Version: SVN
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: cwen01390@xxxxxxxxxxxxx


Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
When building rpm package, the make rpm-package procedure exits because some
errors. This patch fixs these errors.

The detailed error message:
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Werror
"-D_U_=__attribute__((unused))" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables -Wall -W
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Wstrict-prototypes
-Wmissing-declarations -Wno-pointer-sign -Wcast-align -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include -MT
libwiretap_la-catapult_dct2000.lo -MD -MP -MF
.deps/libwiretap_la-catapult_dct2000.Tpo -c catapult_dct2000.c  -fPIC -DPIC -o
.libs/libwiretap_la-catapult_dct2000.o
cc1: warnings being treated as errors
catapult_dct2000.c: In function 'catapult_dct2000_dump':
catapult_dct2000.c:594: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:595: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:600: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:601: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:625: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:642: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:647: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:651: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:687: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:697: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
catapult_dct2000.c:701: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
make[4]: *** [libwiretap_la-catapult_dct2000.lo] Error 1
make[4]: Leaving directory
`/root/dev/wireshark-svn/packaging/rpm/BUILD/wireshark-0.99.7/wiretap'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/root/dev/wireshark-svn/packaging/rpm/BUILD/wireshark-0.99.7/wiretap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/dev/wireshark-svn/packaging/rpm/BUILD/wireshark-0.99.7'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/root/dev/wireshark-svn/packaging/rpm/BUILD/wireshark-0.99.7'
error: Bad exit status from /var/tmp/rpm-tmp.28626 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.28626 (%prep)


gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -Werror
"-D_U_=__attribute__((unused))" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables -Wall -W
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Wstrict-prototypes
-Wmissing-declarations -Wno-pointer-sign -Wcast-align -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include -MT libwiretap_la-k12.lo -MD
-MP -MF .deps/libwiretap_la-k12.Tpo -c k12.c  -fPIC -DPIC -o
.libs/libwiretap_la-k12.o
cc1: warnings being treated as errors
k12.c: In function 'k12_dump_record':
k12.c:732: warning: ignoring return value of 'fwrite', declared with attribute
warn_unused_result
k12.c:734: warning: ignoring return value of 'fwrite', declared with attribute
warn_unused_result
k12.c:736: warning: ignoring return value of 'fwrite', declared with attribute
warn_unused_result
k12.c:740: warning: ignoring return value of 'fwrite', declared with attribute
warn_unused_result
k12.c: In function 'k12_dump_close':
k12.c:908: warning: ignoring return value of 'fwrite', declared with attribute
warn_unused_result
k12.c:917: warning: ignoring return value of 'fwrite', declared with attribute
warn_unused_result
k12.c:921: warning: ignoring return value of 'fwrite', declared with attribute
warn_unused_result
make[4]: *** [libwiretap_la-k12.lo] Error 1
make[4]: Leaving directory
`/root/dev/wireshark-svn/packaging/rpm/BUILD/wireshark-0.99.7/wiretap'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/root/dev/wireshark-svn/packaging/rpm/BUILD/wireshark-0.99.7/wiretap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/dev/wireshark-svn/packaging/rpm/BUILD/wireshark-0.99.7'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/root/dev/wireshark-svn/packaging/rpm/BUILD/wireshark-0.99.7'
error: Bad exit status from /var/tmp/rpm-tmp.49988 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.49988 (%prep)
make: *** [rpm-package] Error 1


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.