[16030] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

[krbdev.mit.edu #8689] krb5 1.16.1 Build Failures

daemon@ATHENA.MIT.EDU (Nehal J Wani via RT)
Wed Jun 6 10:50:03 2018

Mail-followup-to: rt@krbdev.mit.edu
mail-copies-to: never
From: "Nehal J Wani via RT" <rt-comment@KRBDEV-PROD-APP-1.mit.edu>
In-Reply-To: <rt-8689@krbdev.mit.edu>
Message-ID: <rt-8689-48584.16.1343124095763@krbdev.mit.edu>
To: "'AdminCc of krbdev.mit.edu Ticket #8689'":;
Date: Wed,  6 Jun 2018 10:49:56 -0400 (EDT)
Reply-To: rt-comment@KRBDEV-PROD-APP-1.mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu

Hi,

I was trying to build krb5 1.16.1 with gcc 7.2.0 on different
platforms (linux-32bit, linux-64bit and linux-ppc64le)

I came across the following build failure on linux-ppc64le and
linux-32 bit. When I removed -DNDEBUG from the CPPFLAGS, the build
passed. I am a bit surprised that I didn't see the same failure on
linux-64.

/tmp/build/80754af9/krb5_1528223574121/_build_env/bin/i686-conda_cos6-linux-gnu-cc
-DHAVE_CONFIG_H  -I../../include -I../../include  -DKRB5_DEPRECATED=1
-DKRB5_PRIVATE -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -[22/1907]
ld/80754af9/krb5_1528223574121/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla
cehold_placehold_placehold_placehold/include -march=prescott
-mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong
-fno-plt -O2 -pipe
-I/tmp/build/80754af9/krb5_1528223574121/_h_env_placehold_placehold_
placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include
-fdebug-prefi
x-map=/tmp/build/80754af9/krb5_1528223574121/work=/usr/local/src/conda/krb5-1.16.1
-fdebug-prefix-map=/tmp/build/80754af9/krb5_1528223574121/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_pla
cehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold=/usr/local/src/conda-prefix
-Wall -Wcast-align -Wshadow -Wmissin
g-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow
-Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type
-Wmissing-braces -Wparentheses -Wswitch -Wunused-function
-Wunused-label -Wunused-v
ariable -Wunused-value -Wunknown-pragmas -Wsign-compare
-Werror=uninitialized -Wno-maybe-uninitialized -Werror=pointer-arith
-Werror=int-conversion -Werror=incompatible-pointer-types
-Werror=discarded-qualifiers
 -Werror=implicit-int -Werror=declaration-after-statement
-Werror-implicit-function-declaration -pthread  -c t_path.c
In file included from ../../include/k5-platform.h:233:0,
                 from t_path.c:27:
../../include/k5-thread.h: In function 'k5_mutex_lock':
../../include/k5-thread.h:369:9: warning: unused variable 'r'
[-Wunused-variable]
     int r = k5_os_mutex_lock(m);
         ^
../../include/k5-thread.h: In function 'k5_mutex_unlock':
../../include/k5-thread.h:381:9: warning: unused variable 'r'
[-Wunused-variable]
     int r = k5_os_mutex_unlock(m);
         ^
t_path.c: In function 'main':
t_path.c:126:66: warning: variable 'path2' set but not used
[-Wunused-but-set-variable]
     const char *edirname, *ebasename, *ejoined, *ipath, *path1, *path2;
                                                                  ^~~~~
t_path.c:126:58: warning: variable 'path1' set but not used
[-Wunused-but-set-variable]
     const char *edirname, *ebasename, *ejoined, *ipath, *path1, *path2;
                                                          ^~~~~
t_path.c:126:50: warning: variable 'ipath' set but not used
[-Wunused-but-set-variable]
     const char *edirname, *ebasename, *ejoined, *ipath, *path1, *path2;
                                                  ^~~~~
t_path.c:141:9: error: 'dirname' is used uninitialized in this
function [-Werror=uninitialized]
         free(dirname);
         ^~~~~~~~~~~~~
t_path.c:143:9: error: 'basename' is used uninitialized in this
function [-Werror=uninitialized]
         free(basename);
         ^~~~~~~~~~~~~~
t_path.c:173:9: error: 'joined' is used uninitialized in this function
[-Werror=uninitialized]
         free(joined);
         ^~~~~~~~~~~~
cc1: some warnings being treated as errors


Another failure which I saw was:
make[2]: Entering directory
'/root/worker/containers/00003vfm02t/tmp/build/80754af9/krb5_1528258840433/work/src/appl/user_user'
PYTHONPATH=../../util VALGRIND="" python ./t_user2user.py
*** Failure: ./uuserver failed to start with code 3.
*** Last command (#8): ./uuserver 9999
*** Output of last command:
uu-server: Address already in use binding socket
*** Failed in test pass: default

I got around it by stopping my service listening on port 9999. But why
hard code the port? Why not just find out the port which is unused and
then use it?


Cheers!

Nehal J Wani

_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs

home help back first fref pref prev next nref lref last post