Description of Problem: Hello there, I just tried to compile package x3270-3.2.19-1 from Redhat 8.0. Here are some of the compiler messages. ft_dft.c:422: warning: operation on `obptr' may be undefined qcpp.c:43: warning: `f' might be used uninitialized in this function ft_dft.c:422: warning: operation on `obptr' may be undefined ft_dft.c:422: warning: operation on `obptr' may be undefined Here is a patch which fixes the messages. *** ./3270ds.h.old 2002-11-06 12:36:44.000000000 +0000 --- ./3270ds.h 2002-11-06 12:41:05.000000000 +0000 *************** *** 281,288 **** #define MINUS1 0xffffffffU #define SET16(ptr, val) { \ ! *((ptr)++) = ((val) & MASK16) >> 8; \ ! *((ptr)++) = ((val) & MASK08); \ } #define GET16(val, ptr) { \ (val) = *((ptr)+1); \ --- 281,290 ---- #define MINUS1 0xffffffffU #define SET16(ptr, val) { \ ! *(ptr) = ((val) & MASK16) >> 8; \ ! (ptr)++; \ ! *(ptr) = ((val) & MASK08); \ ! (ptr)++; \ } #define GET16(val, ptr) { \ (val) = *((ptr)+1); \ *** ./qcpp.c.old 2002-11-06 12:32:48.000000000 +0000 --- ./qcpp.c 2002-11-06 12:33:03.000000000 +0000 *************** *** 40,46 **** { int c; char buf[1024]; ! FILE *f, *t, *o; int nest = 0; int ln = 0; int pass[MAX_NEST]; --- 40,46 ---- { int c; char buf[1024]; ! FILE *f = 0, *t, *o; int nest = 0; int ln = 0; int pass[MAX_NEST]; Version-Release number of selected component (if applicable): How Reproducible: Steps to Reproduce: 1. 2. 3. Actual Results: Expected Results: Additional Information:
I just recompiled x3270-3.2.19-1 with gcc-3.2-7 ithout any problems. Are you using a fresh install of Red Hat Linux 8.0 or one of the betas ? Please attach the output of rpm -qa | grep -e "gcc\|glibc" and gcc -v
Almost a year without an answer. Closing...
>Almost a year without an answer. Closing... Dear me. I used compiler flag "-Wall" to get the compiler messages.
*** Bug 106312 has been marked as a duplicate of this bug. ***
Just a note: this is still a bug, even if it recompiles. You never know what it compiles to.
part of it has been fixed upstream, rest is fixed in x3270-3.3.2.p1-5