[distcc] FreeBSD Masquerade mode issues

Martin Pool mbp at sourcefrog.net
Wed Jun 1 07:32:00 GMT 2005


On Wed, 2005-06-01 at 16:27 +1000, Chris Martin wrote:

Please reply to the list, not to me.

> As a test I decided to compile and install an application to test to see if
> the code would work properly, however I got this error:
> 
> cc -c -I. -I. -O -pipe -D_PATH_SUDOERS=\"/usr/local/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/usr/local/etc/sudoers.tmp\" -DSUDOERS_UID=0
> -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  defaults.c
> cc -c -I. -I. -O -pipe -D_PATH_SUDOERS=\"/usr/local/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/usr/local/etc/sudoers.tmp\" -DSUDOERS_UID=0
> -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  closefrom.c
> cc -c -I. -I. -O -pipe -D_PATH_SUDOERS=\"/usr/local/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/usr/local/etc/sudoers.tmp\" -DSUDOERS_UID=0
> -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  visudo.c
> /bin/sh ./libtool --mode=compile cc -c -I. -I. -O -pipe
> -D_PATH_SUDOERS=\"/usr/local/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/usr/local/etc/sudoers.tmp\" -DSUDOERS_UID=0
> -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  sudo_noexec.c
> cc -o sudo check.o env.o getspwuid.o gettime.o goodpath.o fileops.o
> find_path.o  interfaces.o logging.o parse.o set_perms.o sudo.o sudo_edit.o
> tgetpass.o zero_bytes.o  sudo_auth.o pam.o sudo.tab.o lex.yy.o alloc.o
> defaults.o closefrom.o  -lutil -lpam -lopie
> check.o: file not recognized: File format not recognized
> distcc[99983] ERROR: compile (null) on localhost failed

You need a cross compiler.

> *** Error code 1
> mkdir .libs
>  cc -c -I. -I. -O -pipe -D_PATH_SUDOERS=\"/usr/local/etc/sudoers\"
> -D_PATH_SUDOERS_TMP=\"/usr/local/etc/sudoers.tmp\" -DSUDOERS_UID=0
> -DSUDOERS_GID=0 -DSUDOERS_MODE=0440 sudo_noexec.c  -fPIC -DPIC -o
> .libs/sudo_noexec.o
> cc1: warning: -fPIC ignored for target (all code is position independent)
> 1 error
> *** Error code 2
> 
> The distcc client is running FreeBSD, but the second machine in my list of
> distccd servers to use is a Windows machine running distccd under Cygwin. Do
> I need to load some sort of cross-compiler into Cygwin? I tried shutting
> down distccd on the Cygwin machine and then sudo compiled properly (but then
> again, when I watched the compile with distccmon it only used localhost).
> 
> Do I need a crosscompiler on Cygwin to compile for FreeBSD (which seems
> logical)?

Yes, of course.  Programs compiled for Windows don't work on FreeBSD.
See links on the web site or ask Google for instructions, or use the
kegel.com scripts.

-- 
Martin




More information about the distcc mailing list