Thank you so much. Now iam able to cross compile successfully with the below options and test it. ./configure CC=/opt/ELDK41/usr/bin/ppc_6xx-gcc --disable-selinux --host=ppc-linux-gnu -target=ppc-linux-gnu --build=i686-linux-gnu LD=/opt/ELDK41/usr/bin/ppc_6xx-ld CFLAGS="-I/opt/ELDK41/ppc_6xx/usr/include/security/" LDFLAGS="-I/opt/ELDK41/ppc_6xx/usr/include/security/ -L/opt/ELDK41/ppc_6xx/usr/lib/" I am resolving few other issues: -- libpath with -L doesnt go while compiling pam_crack.so which still takes /usr/lib/ for libcrack.so -- when i try to dynamic link libpam to applciation, it doesnt link properly and gives the error "opt/ELDK41/usr/bin/ppc_6xx-ld: warning: cannot find entry symbol _start; defaulting to 10000374" for /opt/ELDK41/usr/bin/ppc_6xx-ld pamappl.o -M -Map testmap.map --cref /opt/ELDK41/ppc_6xx/lib/libc.so /opt/ELDK41/ppc_6xx/lib/libdl.so /root/workdoc/security/origlinuxpam/Linux-PAM-1.0.3/libpam/.libs/libpam.so /root/workdoc/security/origlinuxpam/Linux-PAM-1.0.3/libpam_misc/.libs/libpam_misc.so Iam working on these, incase you have any comments/ suggestions, please let me know Thanks Pavan On Mon, Mar 2, 2009 at 8:39 PM, Thorsten Kukuk <kukuk@xxxxxxx> wrote: > On Mon, Mar 02, Sudarshan Soma wrote: > >> Thanks Thorsten. >> >> I was doing crosscompilation for ppc architecture. >> I use the following options for crosscompiling with configure, >> >> CC=/opt/ELDK41/usr/bin/ppc_6xx-gcc --disable-selinux >> --host=ppc-linux-gnu -target=ppc-linux-gnu --build=i686-linux-gnu >> --includedir=/opt/ELDK41/ppc_6xx/usr/include/security/ >> >> I find the following problems with this: >> >> -- It directly didnt build .so , > > Which means configure doesn't detect your crosscompiling right. > Please check the output of configure and try to find out what goes > wrong. > - Show quoted text - > Thorsten > -- > Thorsten Kukuk, Project Manager/Release Manager SLES > SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg > GF: Markus Rex, HRB 16746 (AG Nuernberg) > > _______________________________________________ > Pam-list mailing list > Pam-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/pam-list > _______________________________________________ Pam-list mailing list Pam-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/pam-list