Hello, I ran into a problem building fileutils on an AIX 5.1 system using the C for AIX compiler version 5.1. The configuration and first make would run correctly, but make install would fail with the following error:
Making install in lib make[1]: Entering directory `/a/is/build/src/gnu/fileutils/fileutils-4.1/lib' .deps/__fpending.Po:1: *** multiple target patterns. Stop. make[1]: Leaving directory `/a/is/build/src/gnu/fileutils/fileutils-4.1/lib' make: *** [install-recursive] Error 1 The __fpending.Po file looks like this: __fpending.o : \ __fpending.c ../config.h __fpending.h /usr/include/stdio.h /usr/include/standards.h /usr/include/va_list.h /usr/include/sys/types.h /usr/include/sys/inttypes.h /usr/include/sys/m_types.h /usr/include/sys/vm_types.h /usr/include/sys/limits.h /usr/include/float.h __fpending.c : ../config.h : __fpending.h : /usr/include/stdio.h : /usr/include/standards.h : /usr/include/va_list.h : /usr/include/sys/types.h : /usr/include/sys/inttypes.h : /usr/include/sys/m_types.h : /usr/include/sys/vm_types.h : /usr/include/sys/limits.h : /usr/include/float.h : The problem seems to be that the object dependecy line seems to have the first source code dependency tacked onto the end. After looking at the dependency file created by the C compiler and looking at the depcomp utility I saw that depcomp was taking the dependency file, translating all spaces to carriage returns, removing the object file reference, then translating all carriage returns back to spaces. This had the affect of creating a line without a carriage return on the end. The depcomp script then took the same dependency file and created the empty source code dependencies, taking that information onto the end of the object dependency line. Since the object dependency line didn't have a carriage return, the result was as you see in the __fpending.Po file. I found the spot where the dependence reformating was being done and the patch included simply adds an echo line to create a carriage return after the object dependency line. Sincerely, Dano Carroll -- Dano Carroll | VM +1(512)494-7233 | I love penguins, 'cause HP DAZEL Division | FAX +1(512)494-7394 | penguins are sensitive System Administrator | Telnet 494-7233 | to my needs -- Lyle Lovett
diff -ur fileutils-4.1/depcomp fileutils-4.1-mod/depcomp --- fileutils-4.1/depcomp Sat Apr 21 13:26:56 2001 +++ fileutils-4.1-mod/depcomp Tue Nov 5 13:13:15 2002 @@ -177,7 +177,7 @@ tr ' ' ' ' < "$tmpdepfile" | sed 's/^[^\.]*\.o://' | tr ' ' ' ' >> $depfile - + echo "" >> $depfile tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation