Portál AbcLinuxu, 10. května 2025 11:06
set -e; for i in lib daemon modules man samples; do make -C $i all; done
make[1]: Entering directory `/sources/blfs/autofs-4.1.4/lib'
/usr/bin/rpcgen -h -o mount.h mount.x
cannot find any C preprocessor (cpp)
/usr/bin/rpcgen: C preprocessor failed with exit code 1
make[1]: *** [mount.h] Error 1
make[1]: Leaving directory `/sources/blfs/autofs-4.1.4/lib'
make: *** [daemon] Error 2
set -e; for i in lib daemon modules man samples; do make -C $i all; done make[1]: Entering directory `/sources/blfs/autofs-4.1.4/lib' /usr/bin/rpcgen -h -o mount.h mount.x cannot find any C preprocessor (cpp) /usr/bin/rpcgen: C preprocessor failed with exit code 1 make[1]: *** [mount.h] Error 1 make[1]: Leaving directory `/sources/blfs/autofs-4.1.4/lib' make: *** [daemon] Error 2
./configure
je něco takového, jako Checking gcc to compile c: gcc -e
. Tak teď nevím, jestli mi schází jenom symlink, nebo jak to vyřešit.
peter@LFS:/sources/blfs/autofs-4.1.4$ ./configure --prefix=/ --mandir=/usr/share/man checking for binaries in... /usr/bin:/bin:/usr/sbin:/sbin checking for mount... /bin/mount checking for umount... /bin/umount checking for fsck.ext2... /sbin/fsck.ext2 checking for fsck.ext3... /sbin/fsck.ext3 checking if mount accepts the -s option... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for yp_match in -lnsl... yes checking for res_query in -lresolv... yes checking for hes_resolve in -lhesiod... no checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking rpcsvc/nis.h usability... yes checking rpcsvc/nis.h presence... yes checking for rpcsvc/nis.h... yes checking for ldap_init in -lldap... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking whether gcc -fPIE works... yes checking location of the init.d directory... /etc/rc.d/init.d configure: creating ./config.status config.status: creating Makefile.conf config.status: creating include/config.h peter@LFS:/sources/blfs/autofs-4.1.4$ make set -e; for i in lib daemon modules man samples; do make -C $i all; done make[1]: Entering directory `/sources/blfs/autofs-4.1.4/lib' gcc -O3 -fomit-frame-pointer -Wall -I../include -fPIC -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -c cache.c /usr/bin/rpcgen -h -o mount.h mount.x cannot find any C preprocessor (cpp) /usr/bin/rpcgen: C preprocessor failed with exit code 1 make[1]: *** [mount.h] Error 1 make[1]: Leaving directory `/sources/blfs/autofs-4.1.4/lib' make: *** [daemon] Error 2
[petr@soban ~]$ rpm -qa | grep cpp cpp-4.1.1-30 [petr@soban ~]$Případně ho skus spustit pokud tam je co vypíše za chybu.
[petr@soban ~]$ cpp --help Usage: cpp [options] file... Options: -pass-exit-codes Exit with highest error code from a phase --help Display this information --target-help Display target specific command line options (Use '-v --help' to display command line options of sub-processes) -dumpspecs Display all of the built in spec strings ........
./configure
?
...
checking how to run the C preprocessor... gcc -E
...
neni to spusob, jak spustit ten preprocesor?
cpp --help
hodi tohle:Usage: cpp [options] file... Options: -pass-exit-codes Exit with highest error code from a phase --help Display this information --target-help Display target specific command line options (Use '-v --help' to display command line options of sub-processes) -dumpspecs Display all of the built in spec strings ...
make
předat lokaci cpp?
ln -s `which cpp` /lib/cpp
adding this step before running 'make' or './configure' tells rpc to look for cpp in '/usr/bin': sed -i 's:\(RPCGEN = .*\)$/\1 -Y /usr/bin:' lib/Makefile
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.