Compile problems on Solaris 2.6

tomaddox@gmail.com tomaddox at gmail.com
Thu Oct 26 17:18:21 EDT 2006


Hi, everyone,

I'm trying to compile MIT's Kerberos V (krb5-1.5.1) on SPARC Solaris
2.6, and it keeps blowing up.  At the moment, I'm using the GNU tools
to do the build, since Sun's compiler won't take the arguments that
configure wants to give it.

My configure command line is:
# configure --prefix=/zircon/opt --enable-dns-for-realm --without-krb4
--with-tcl=/zircon/opt/usr/local/lib

I'm using gcc version 3.4.6 (Sunfreeware package) and GNU ld 2.11.2.

If I run it with Sun's compiler, the configure fails with the following
errors in config.log:

ucbcc: Warning: Option
-YP,:/usr/ucblib:/zircon/opt/SUNWspro/WS6U2/bin/../lib:/z
ircon/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld
is invoke
d, ignored otherwise
ucbcc: Warning: Option --version passed to ld, if ld is invoked,
ignored otherwi
se
ld: warning: option -YP appears more than once, first setting taken
/usr/ccs/bin/ld: illegal option -- -
/usr/ccs/bin/ld: illegal option -- v
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
file(s)

Using gcc, the configure runs fine, but then make craps out like so:

make[2]: Entering directory `/zircon/opt/krb5-1.5.1/src/util/support'
/zircon/opt/usr/local/bin/gcc -fPIC -DSHARED   -I../../include
-I./../../include -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1  -g -O2
-Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion
-Wshadow -pedantic -D_REENTRANT -pthreads -c threads.c -o threads.so.o
&& mv -f threads.so.o threads.so
threads.c:36: warning: missing braces around initializer
threads.c:36: warning: (near initialization for
`krb5int_thread_support_init__once.once.o.__pthread_once_pad')
threads.c:130: warning: missing braces around initializer
threads.c:130: warning: (near initialization for
`loaded_test_once.__pthread_once_pad')
threads.c:403: warning: no previous prototype for
'krb5int_call_thread_support_init'
threads.c: In function `krb5int_thread_support_init':
threads.c:456: warning: implicit declaration of function
`krb5int_err_init'
threads.c: At top level:
threads.c:610: warning: no previous prototype for
'krb5int_mutex_report_stats'
/zircon/opt/usr/local/bin/gcc -fPIC -DSHARED   -I../../include
-I./../../include -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1  -g -O2
-Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion
-Wshadow -pedantic -D_REENTRANT -pthreads -c init-addrinfo.c -o
init-addrinfo.so.o && mv -f init-addrinfo.so.o init-addrinfo.so
/zircon/opt/usr/local/bin/gcc -fPIC -DSHARED   -I../../include
-I./../../include -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1  -g -O2
-Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion
-Wshadow -pedantic -D_REENTRANT -pthreads -c plugins.c -o plugins.so.o
&& mv -f plugins.so.o plugins.so
plugins.c: In function `krb5int_get_plugin_func':
plugins.c:251: warning: ISO C forbids conversion of object pointer to
function pointer type
/zircon/opt/usr/local/bin/gcc -fPIC -DSHARED   -I../../include
-I./../../include -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1  -g -O2
-Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion
-Wshadow -pedantic -D_REENTRANT -pthreads -c errors.c -o errors.so.o &&
mv -f errors.so.o errors.so
errors.c:31: warning: no previous prototype for 'krb5int_err_init'
errors.c: In function `krb5int_vset_error':
errors.c:52: warning: passing arg 1 of `free' discards qualifiers from
pointer target type
errors.c: In function `krb5int_get_error':
errors.c:76: warning: assignment discards qualifiers from pointer
target type
errors.c:80: warning: implicit declaration of function
`krb5int_call_thread_support_init'
errors.c:120: warning: assignment discards qualifiers from pointer
target type
errors.c: In function `krb5int_clear_error':
errors.c:146: warning: passing arg 2 of `krb5int_free_error' discards
qualifiers from pointer target type
/zircon/opt/usr/local/bin/gcc -fPIC -DSHARED   -I../../include
-I./../../include -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1  -g -O2
-Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion
-Wshadow -pedantic -D_REENTRANT -pthreads -c gmt_mktime.c -o
gmt_mktime.so.o && mv -f gmt_mktime.so.o gmt_mktime.so
gmt_mktime.c:40: warning: no previous prototype for
'krb5int_gmt_mktime'
/zircon/opt/usr/local/bin/gcc -fPIC -DSHARED   -I../../include
-I./../../include -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1  -g -O2
-Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion
-Wshadow -pedantic -D_REENTRANT -pthreads -c fake-addrinfo.c -o
fake-addrinfo.so.o && mv -f fake-addrinfo.so.o fake-addrinfo.so
fake-addrinfo.c: In function `fake_getnameinfo':
fake-addrinfo.c:934: warning: cast increases required alignment of
target type
fake-addrinfo.c: At top level:
fake-addrinfo.c:1331: error: variable `krb5int_in6addr_any' has
initializer but incomplete type
fake-addrinfo.c:1331: error: `IN6ADDR_ANY_INIT' undeclared here (not in
a function)
fake-addrinfo.c: In function `krb5int_getnameinfo':
fake-addrinfo.c:1355: warning: passing arg 4 of `my_fake_getnameinfo'
as signed due to prototype
fake-addrinfo.c:1355: warning: passing arg 6 of `my_fake_getnameinfo'
as signed due to prototype
fake-addrinfo.c: At top level:
fake-addrinfo.c:1331: error: storage size of `krb5int_in6addr_any'
isn't known
fake-addrinfo.c:1317: warning: 'krb5int_lock_fac' defined but not used
fake-addrinfo.c:1326: warning: 'krb5int_unlock_fac' defined but not
used
make[2]: *** [fake-addrinfo.so] Error 1
make[2]: Leaving directory `/zircon/opt/krb5-1.5.1/src/util/support'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory `/zircon/opt/krb5-1.5.1/src/util'
make: *** [all-recurse] Error 1

Has anyone seen problems like this, or does anyone know what might be
causing it?

TIA,

Tom




More information about the Kerberos mailing list