[krbdev.mit.edu #7572] krb5 1.11 doesn't build on Solaris w/ Sun Studio, the first time. A re-make works
Mark Ashley via RT
rt-comment at krbdev.mit.edu
Wed Feb 20 01:01:45 EST 2013
Hi folks,
There's a weird (i.e. I didn't spend any time tracking it down)
problem with libdb2 in krb5 1.11.
The compile fails with:
making all in plugins/kdb/db2...
gmake[1]: Entering directory `/var/tmp/krb5-1.11/src/plugins/kdb/db2'
cc -KPIC -DSHARED -DPLUGIN -I../../../include -I../../../include
-I../../../lib/kdb -I./../../../lib/kdb -DKRB5_DEPRECATED=1
-DKRB5_PRIVATE -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -L/usr/local/lib -errtags=yes
-errwarn=E_BAD_PTR_INT_COMBINATION,E_BAD_PTR_INT_COMB_ARG,E_PTR_TO_VOID_IN_ARITHMETIC,E_NO_IMPLICIT_DECL_ALLOWED,E_ATTRIBUTE_PARAM_UNDEFINED
-D_REENTRANT -c kdb_xdr.c -o kdb_xdr.so.o && mv -f kdb_xdr.so.o
kdb_xdr.so
cc -KPIC -DSHARED -DPLUGIN -I../../../include -I../../../include
-I../../../lib/kdb -I./../../../lib/kdb -DKRB5_DEPRECATED=1
-DKRB5_PRIVATE -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -L/usr/local/lib -errtags=yes
-errwarn=E_BAD_PTR_INT_COMBINATION,E_BAD_PTR_INT_COMB_ARG,E_PTR_TO_VOID_IN_ARITHMETIC,E_NO_IMPLICIT_DECL_ALLOWED,E_ATTRIBUTE_PARAM_UNDEFINED
-D_REENTRANT -c adb_openclose.c -o adb_openclose.so.o && mv -f
adb_openclose.so.o adb_openclose.so
"policy_db.h", line 58: syntax error before or at: HASHINFO
"adb_openclose.c", line 26: undefined symbol: BTREEINFO
"adb_openclose.c", line 26: syntax error before or at: btinfo
"adb_openclose.c", line 28: undefined symbol: btinfo
Possibly the db.hin file didn't get modded into db.h?
If I then run a make in the plugins/kdb/db2/libdb2 dir and then re-run
the make from the top src directory then things keep on flowing and
the compile completes.
Here's the full recipe:
cd /var/tmp
rm -rf /krb5 krb5-1.11
untgz /usr/local/src/crypto/krb5-1.11.tar.gz
cd krb5-1.11/src
./configure --prefix=/usr/local \
--with-ldap \
--with-system-db \
--with-tcl=/usr/local \
--with-pkinit-crypto-impl=openssl \
--with-readline
gmake
cd plugins/kdb/db2/libdb2; gmake
cd /var/tmp/krb5-1.11/src
gmake
gmake install
This gets it to compile which is good enough for me for now, sorry but
I'm time poor today. Hopefully you have a box to test this on.
ta,
Mark.
Happens on:
# uname -a
SunOS host1 5.10 Generic_142901-13 i86pc i386 i86pc
# cc -V
cc: Sun C 5.11 SunOS_i386 145355-01 2010/10/11
# gmake --version
GNU Make 3.82
# uname -a
SunOS host2 5.10 Generic_147440-15 sun4v sparc SUNW,T5240
# cc -V
cc: Sun C 5.11 SunOS_sparc 145354-01 2010/10/11
# gmake --version
GNU Make 3.82
# uname -a
SunOS host3 5.11 oi_151a5 i86pc i386 i86pc
# cc -V
cc: Sun C 5.11 SunOS_i386 2010/08/13
# gmake --version
GNU Make 3.82
More information about the krb5-bugs
mailing list