[krbdev.mit.edu #7651] [PATCH] krb5 fix make check dbtest linking error

Gilles Espinasse via RT rt-comment at krbdev.mit.edu
Sun Jun 2 09:52:40 EDT 2013



----- Mail original -----
> De: "Greg Hudson via RT" <rt-comment at krbdev.mit.edu>
> Envoyé: Vendredi 31 Mai 2013 17:46:26
> Objet: [krbdev.mit.edu #7651] [PATCH] krb5 fix make check dbtest linking	error
> 
> Just to confirm: this is a build with static libraries?
>
I used for testing
./configure CPPFLAGS="-I/usr/include/et -I/usr/include/ss" --prefix=/usr --localstatedir=/var/lib --with-system-et --with-system-ss 

and a second try adding --with-crypto-impl=openssl

The key point to have the linking issue with dbtest is that krb5 should not be already installed.
In case krb5 is not installed, the error happen even with a simple ./configure && make && make check
If krb5 is already installed, no error happen.

While testing, I find that 'make clean' job may be incomplete if first build use built-in {et,ss} and second use system {et,ss}.
To reproduce what I made
./configure && make
./configure CPPFLAGS="-I/usr/include/et -I/usr/include/ss" --with-system-et --with-system-ss && make clean && make

The error is
+ objlist=' prof_tree.so prof_file.so prof_parse.so prof_get.so prof_set.so prof_err.so prof_init.so'
+ gcc -shared -fPIC -Wl,-h,libprofile.so.1,--no-undefined -o libprofile.so.1.1 prof_tree.so prof_file.so prof_parse.so prof_get.so prof_set.so prof_err.so prof_init.so -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/local/lib -L../../lib -lcom_err -lkrb5support -lresolv -Wl,--hash-style=gnu -Wl,--version-script binutils.versions
prof_err.so: In function `initialize_prof_error_table':
prof_err.c:(.text+0xa1): undefined reference to `_et_list'
collect2: ld returned 1 exit status
make[2]: *** [libprofile.so.1.1] Error 1

I needed that to workaround the issue:
find . \( -name '*.o' -o -name '*.so' \) -delete && make

I didn't feel the need to play with --disable-shared --enable-static.

Gilles




More information about the krb5-bugs mailing list