Compile problems on Solaris 2.6

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Oct 26 17:39:49 EDT 2006


On 26 Oct 2006 14:18:21 -0700, tomaddox at gmail.com wrote:
> 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')
[...]

Where does -pedantic and all those -Wfoo flags come from?

Do you have CFLAGS or CC set in your environment at all?




More information about the Kerberos mailing list