again build problems

Tom Yu tlyu at MIT.EDU
Tue Sep 18 14:04:21 EDT 2012


Nitin Thakur <nitinthakur at hotmail.com> writes:

> Hi All
>
> i managed to build kerberos few weeks back and had to do it again. One the same server, I keep getting this error message while make: -
>
> pkinit_crypto_openssl.c:3637: warning: ISO C forbids conversion of object pointer to function pointer type
> : updated OBJS.SH
> rm -f pkinit.so
> building dynamic pkinit object
> set -x; objlist=`set -x && perl -p -e 'BEGIN { $SIG{__WARN__} = sub {die @_} }; $e=$ARGV; $e =~ s/OBJS\...$//; s/^/ /; s/ $//; s/ / $e/g;' OBJS.SH` && gcc -g -O2 -shared -h pkinit.so.0 -o pkinit.so $objlist -R/opt/local/samba/lib -L../../../lib -lkrb5 -lcom_err -lk5crypto -lcrypto  -lkrb5support -lresolv -lsocket -lnsl -lintl -lrt  
> + set -x 
> + perl -p -e BEGIN { $SIG{__WARN__} = sub {die @_} }; $e=$ARGV; $e =~ s/OBJS\...$//; s/^/ /; s/ $//; s/ / $e/g; OBJS.SH 
> objlist= pkinit_accessor.so pkinit_srv.so pkinit_lib.so pkinit_clnt.so pkinit_kdf_constants.so pkinit_profile.so pkinit_identity.so pkinit_matching.so pkinit_crypto_openssl.so
> + gcc -g -O2 -shared -h pkinit.so.0 -o pkinit.so pkinit_accessor.so pkinit_srv.so pkinit_lib.so pkinit_clnt.so pkinit_kdf_constants.so pkinit_profile.so pkinit_identity.so pkinit_matching.so pkinit_crypto_openssl.so -R/opt/local/samba/lib -L../../../lib -lkrb5 -lcom_err -lk5crypto -lcrypto -lkrb5support -lresolv -lsocket -lnsl -lintl -lrt 
> /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/../../../../sparc-sun-solaris2.10/bin/ld: read-only segment has dynamic relocations.
> collect2: ld returned 1 exit status

Could you try building with LDFLAGS=-Wl,-ztext in your environment
to see if it produces additional debugging output about which symbols
are responsible?


More information about the krbdev mailing list