Ken Moffat wrote: > Well, that is the output from my build scripts.
gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /mnt/lfs/building/glibc-build/config.h rpc_main.c -o /mnt/lfs/building/glibc-build/sunrpc/cross-rpc_main.o -MMD -MP -MF /mnt/lfs/building/glibc-build/sunrpc/cross-rpc_main.o.dt -MT /mnt/lfs/building/glibc-build/sunrpc/cross-rpc_main.o -c I have this too. I modified it slightly for readability. There are 9 other similar compiles and one link for cross-rpcgen (with no explicit libs evidently needed). > So, yes, as you have pointed out, it is using the host's compiler > here. > > Looking at my previous builds, in 2.14.1 and 2.15 cross-rpc did not > get built, so something based on the initial patch I pointed to in > my last mail has been included upstream. > > I'll give it a try with --enable-obsolete-rpc It would now appear there is an error in the sunrpc portion of the Makefile that is calling the wrong gcc. I guess it didn't fail for me because I did install libtirpc for testing samba. I don't know if changing the gcc to x86_64-lfs-linux-gnu-gcc would be sufficient or not, but I think we need to do that as a minimum. -- Bruce Note: `-MF FILE' When used with the driver options `-MD' or `-MMD', `-MF' overrides the default dependency output file. `-MP' This option instructs CPP to add a phony target for each dependency other than the main file, causing each to depend on nothing. These dummy rules work around errors `make' gives if you remove header files without updating the `Makefile' to match. `-MMD' Like `-MD' except mention only user header files, not system header files. `-MT TARGET' An `-MT' option will set the target to be exactly the string you specify. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page