Bug 2880 - ftkeventviewer doesn't compile (because of warnings)
Summary: ftkeventviewer doesn't compile (because of warnings)
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Chris Moller
URL:
Keywords:
Depends on:
Blocks: 2235
  Show dependency treegraph
 
Reported: 2006-07-05 09:31 UTC by Mark Wielaard
Modified: 2006-08-29 01:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Workaround (362 bytes, patch)
2006-07-05 13:14 UTC, Mark Wielaard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2006-07-05 09:31:15 UTC
make[3]: Entering directory `/home/mark/src/build/frysk-gtk/tlwidgets'
source='../../../frysk/frysk-gtk/tlwidgets/src/widgets/ftkeventviewer.c'
object='src/widgets/ftkeventviewer.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../../frysk/frysk-gtk/../depcomp \
gcc -DPACKAGE_NAME=\"frysk\" -DPACKAGE_TARNAME=\"frysk\"
-DPACKAGE_VERSION=\"0.0.1.2006.07.05\" -DPACKAGE_STRING=\"frysk\
0.0.1.2006.07.05\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"frysk\"
-DVERSION=\"0.0.1.2006.07.05\"  -I. -I../../../frysk/frysk-gtk/tlwidgets   
-fPIC -DPIC -std=gnu99 -Wall -Werror
-I../../../frysk/frysk-gtk/tlwidgets/src/widgets -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libgtk-java -I/usr/include/glib-java   -g -O -c -o
src/widgets/ftkeventviewer.o
../../../frysk/frysk-gtk/tlwidgets/src/widgets/ftkeventviewer.c
cc1: warnings being treated as errors
../../../frysk/frysk-gtk/tlwidgets/src/widgets/ftkeventviewer.c: In function
‘draw_dlink’:
../../../frysk/frysk-gtk/tlwidgets/src/widgets/ftkeventviewer.c:579: warning:
unused variable ‘loc’
../../../frysk/frysk-gtk/tlwidgets/src/widgets/ftkeventviewer.c:577: warning:
unused variable ‘trace_idx’
make[3]: *** [src/widgets/ftkeventviewer.o] Error 1
make[3]: Leaving directory `/home/mark/src/build/frysk-gtk/tlwidgets'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mark/src/build/frysk-gtk'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mark/src/build/frysk-gtk'
make: *** [all-recursive] Error 1
Comment 1 Mark Wielaard 2006-07-05 13:14:47 UTC
Created attachment 1141 [details]
Workaround
Comment 2 Chris Moller 2006-07-05 14:14:02 UTC
Fixed.
Comment 3 Yao Qi 2006-08-25 05:14:34 UTC
Fail to build on PPC64, and reopen it!

make[3]: Entering directory `/home/qiyao/build-frysk-5-23/frysk-gtk/tlwidgets'
source='../../../frysk/frysk-gtk/tlwidgets/src/jni/com_redhat_ftk_EventViewer.c'
object='src/jni/com_redhat_ftk_EventViewer.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../../frysk/frysk-gtk/depcomp \
gcc -m64 -DPACKAGE_NAME=\"frysk\" -DPACKAGE_TARNAME=\"frysk\"
-DPACKAGE_VERSION=\"0.0.1.2006.08.25\" -DPACKAGE_STRING=\"frysk\
0.0.1.2006.08.25\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"frysk\"
-DVERSION=\"0.0.1.2006.08.25\"  -I. -I../../../frysk/frysk-gtk/tlwidgets   
-fPIC -DPIC -std=gnu99 -Wall -Werror
-I../../../frysk/frysk-gtk/tlwidgets/src/widgets -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libgtk-java -I/usr/include/glib-java   -g3 -c -o
src/jni/com_redhat_ftk_EventViewer.o
../../../frysk/frysk-gtk/tlwidgets/src/jni/com_redhat_ftk_EventViewer.c
cc1: warnings being treated as errors
../../../frysk/frysk-gtk/tlwidgets/src/jni/com_redhat_ftk_EventViewer.c: In
function ¡®Java_com_redhat_ftk_EventViewer_ftk_1eventviewer_1get_1selected_1traces¡¯:
../../../frysk/frysk-gtk/tlwidgets/src/jni/com_redhat_ftk_EventViewer.c:268:
warning: cast from pointer to integer of different size
make[3]: *** [src/jni/com_redhat_ftk_EventViewer.o] Error 1
Comment 4 Yao Qi 2006-08-29 01:26:56 UTC
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
and rebuild frysk.
No such error, and close this bug.