安装服务器的make命令错误
root@Ferdinand:/home/source/httpd-2.0.35# make
Making all in srclib
make[1]: Entering directory `/home/source/httpd-2.0.35/srclib'
Making all in apr
make[2]: Entering directory `/home/source/httpd-2.0.35/srclib/apr'
Making all in strings
make[3]: Entering directory `/home/source/httpd-2.0.35/srclib/apr/strings'
make[4]: Entering directory `/home/source/httpd-2.0.35/srclib/apr/strings'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr/strings'
make[3]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr/strings'
Making all in passwd
make[3]: Entering directory `/home/source/httpd-2.0.35/srclib/apr/passwd'
make[4]: Entering directory `/home/source/httpd-2.0.35/srclib/apr/passwd'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr/passwd'
make[3]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr/passwd'
Making all in tables
make[3]: Entering directory `/home/source/httpd-2.0.35/srclib/apr/tables'
make[4]: Entering directory `/home/source/httpd-2.0.35/srclib/apr/tables'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr/tables'
make[3]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr/tables'
Making all in file_io/unix
make[3]: Entering directory `/home/source/httpd-2.0.35/srclib/apr/file_io/unix'
make[4]: Entering directory `/home/source/httpd-2.0.35/srclib/apr/file_io/unix'
/bin/sh /home/source/httpd-2.0.35/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -I../../include -I../../include/arch/unix -I../../include/arch/unix -c pipe.c && touch pipe.lo
pipe.c:79:17: error: operator "defined" requires an identifier
pipe.c:79:18: error: missing binary operator before token "04000"
make[4]: *** [pipe.lo] Error 1
make[4]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr/file_io/unix'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr/file_io/unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/source/httpd-2.0.35/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/source/httpd-2.0.35/srclib'
make: *** [all-recursive] Error 1
请问大家这个错误在什么地方啊?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
回复 1# wangnan1018
make clean 下呢?
刚下的安装包?
回复 2# taojie2000
恩 我执行过了 但是也还是没用啊
真是郁闷啊
回复 1# wangnan1018
换个版本试试
回复 4# taojie2000
换了版本还是这样的问题啊
回复 5# wangnan1018
那./configure 正常吗? 那信息列出来
回复 6# taojie2000
checking for mmap... (cached) yes
checking for hstrerror... (cached) yes
checking for memmove... (cached) yes
checking for mkstemp... (cached) yes
checking whether sigwait takes one argument... (cached) no
checking for ANSI C header files... (cached) yes
checking for ByteOrder.h... (cached) no
checking for conio.h... (cached) no
checking for crypt.h... (cached) yes
checking for ctype.h... (cached) yes
checking for dir.h... (cached) no
checking for dirent.h... (cached) yes
checking for dl.h... (cached) no
checking for dlfcn.h... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for grp.h... (cached) yes
checking for iconv.h... (cached) yes
checking for io.h... (cached) no
checking for langinfo.h... (cached) yes
checking for limits.h... (cached) yes
checking for mach-o/dyld.h... (cached) no
checking for malloc.h... (cached) yes
checking for memory.h... (cached) yes
checking for netdb.h... (cached) yes
checking for osreldate.h... (cached) no
checking for poll.h... (cached) yes
checking for process.h... (cached) no
checking for pwd.h... (cached) yes
checking for semaphore.h... (cached) yes
checking for signal.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sysapi.h... (cached) no
checking for sysgtime.h... (cached) no
checking for termios.h... (cached) yes
checking for time.h... (cached) yes
checking for tpfeq.h... (cached) no
checking for tpfio.h... (cached) no
checking for unistd.h... (cached) yes
checking for unix.h... (cached) no
checking for arpa/inet.h... (cached) yes
checking for kernel/OS.h... (cached) no
checking for net/errno.h... (cached) no
checking for netinet/in.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/sem.h... (cached) yes
checking for sys/sendfile.h... (cached) yes
checking for sys/signal.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/syslimits.h... (cached) no
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/uio.h... (cached) yes
checking for sys/un.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for netinet/tcp.h... yes
checking for h_errno in netdb.h... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for ssize_t... (cached) yes
checking for inline... (cached) inline
checking for working const... (cached) yes
checking for size_t... (cached) yes
checking whether setpgrp takes no argument... (cached) yes
checking for socklen_t... (cached) yes
checking whether system defines INADDR_NONE... (cached) yes
checking size of char... (cached) 1
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of short... (cached) 2
checking size of long double... (cached) 12
checking size of long long... (cached) 8
checking for INT64_C... no
checking for INT64_C in stdint.h... (cached) no
checking size of ssize_t... (cached) 4
checking size of size_t... (cached) 4
checking size of off_t... (cached) 4
checking size of pid_t... (cached) 4
checking for strnicmp... (cached) no
checking for strncasecmp... (cached) yes
checking for stricmp... (cached) no
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strstr... (cached) yes
checking for memchr... (cached) yes
Checking for DSO...
checking for NSLinkModule... (cached) no
checking for dlopen in -ldl... (cached) yes
adding "-ldl" to LIBS
Checking for Processes...
checking for waitpid... (cached) yes
checking struct rlimit... (cached) yes
Checking for Locking...
checking for semget... (cached) yes
checking for semctl... (cached) yes
checking for flock... (cached) yes
checking for /dev/zero... (cached) yes
checking for semaphore.h... (cached) yes
checking for sem_close... (cached) yes
checking for sem_unlink... (cached) yes
checking for sem_post... (cached) yes
checking for sem_wait... (cached) yes
checking for working sem_open... (cached) yes
checking for union semun in sys/sem.h... no
checking for LOCK_EX in sys/file.h... (cached) yes
checking for F_SETLK in fcntl.h... (cached) yes
checking for SEM_UNDO in sys/sem.h... (cached) yes
checking for CODESET in langinfo.h... (cached) yes
checking for POLLIN in poll.h sys/poll.h... (cached) yes
checking for PTHREAD_PROCESS_SHARED in pthread.h... (cached) yes
checking for pthread_mutexattr_setpshared... (cached) yes
checking for pthread_mutexattr_setrobust_np... (cached) yes
decision on apr_lock implementation method... pthread mutex
checking if interprocess lock affects threads... no
checking for /dev/random... /dev/random
Checking for Time Support...
checking for tm_gmtoff in struct tm... (cached) yes
Checking for Networking support...
checking for in_addr in netinet/in.h... yes
checking if fd == socket on this platform... yes
checking for sockaddr sa_len... (cached) no
checking for gethostbyname() which handles numeric address strings... (cached) yes
checking style of gethostbyname_r routine... (cached) glibc2
checking 3rd argument to the gethostbyname_r routines... (cached) char
checking if TCP_NODELAY setting is inherited from listening sockets... (cached) yes
checking for TCP_CORK in netinet/tcp.h... (cached) yes
checking for TCP_NOPUSH in netinet/tcp.h... (cached) no
checking for SO_ACCEPTFILTER in sys/socket.h... (cached) no
checking for set_h_errno... (cached) no
checking for presence of retrans/retry fields in res_state/resolv.h ... (cached) yes
Checking for IPv6 Networking support...
checking for library containing getaddrinfo... (cached) none required
checking for library containing gai_strerror... (cached) none required
checking for library containing getnameinfo... (cached) none required
checking for gai_strerror... (cached) yes
checking for working getaddrinfo... (cached) yes
checking for negative error codes for getaddrinfo... (cached) no
checking for working getnameinfo... (cached) yes
checking for sockaddr_in6... (cached) yes
checking if APR supports IPv6... yes
Restore user-defined environment settings...
restoring CPPFLAGS to ""
setting EXTRA_CPPFLAGS to "-DLINUX=2 -D_REENTRANT"
restoring CFLAGS to ""
setting EXTRA_CFLAGS to "-g -O2 -pthread"
restoring LDFLAGS to ""
setting EXTRA_LDFLAGS to ""
restoring LIBS to ""
setting EXTRA_LIBS to "-lm -lcrypt -lnsl -ldl"
restoring INCLUDES to ""
setting EXTRA_INCLUDES to ""
Construct Makefiles and header files.
creating ./config.status
creating Makefile
creating strings/Makefile
creating passwd/Makefile
creating tables/Makefile
creating build/Makefile
creating file_io/unix/Makefile
creating network_io/unix/Makefile
creating threadproc/unix/Makefile
creating misc/unix/Makefile
creating locks/unix/Makefile
creating time/unix/Makefile
creating mmap/unix/Makefile
creating shmem/unix/Makefile
creating i18n/unix/Makefile
creating user/unix/Makefile
creating memory/unix/Makefile
creating atomic/unix/Makefile
creating dso/unix/Makefile
creating test/Makefile
creating include/apr.h
creating APRVARS
creating build/rules.mk
creating apr-config
creating include/arch/unix/apr_private.h
srclib/apr configured properly
loading cache ./config.cache
Configuring Apache Portable Runtime Utility library...
configuring package in srclib/apr-util now
loading cache /home/source/httpd-2.0.35/./config.cache
checking for APR... yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ldap support...
checking for gdbm.h... (cached) no
checking for db4/db.h... (cached) no
checking for db.h... (cached) no
checking for db3/db.h... (cached) no
checking for db.h... (cached) no
checking for db2/db.h... (cached) no
checking for db.h... (cached) no
checking for db1/db.h... (cached) no
checking for db.h... (cached) no
checking for db_185.h... (cached) no
checking for Berkeley DB... not found
checking for default DBM... sdbm (default)
checking for Expat in /usr... yes
setting APRUTIL_EXPORT_LIBS to "/usr/lib/libexpat.la"
setting LIBS to " -L/home/source/httpd-2.0.35/srclib/apr -lapr -lm -lcrypt -lnsl -ldl"
adding "/usr/lib/libexpat.la" to LIBS
creating ./config.status
creating export_vars.sh
creating apu-config
creating include/private/apu_select_dbm.h
creating include/apr_ldap.h
creating include/apu.h
creating Makefile
creating buckets/Makefile
creating crypto/Makefile
creating dbm/Makefile
creating dbm/sdbm/Makefile
creating encoding/Makefile
creating hooks/Makefile
creating ldap/Makefile
creating uri/Makefile
creating xml/Makefile
creating misc/Makefile
creating test/Makefile
creating include/private/apu_config.h
include/private/apu_config.h is unchanged
srclib/apr-util configured properly
loading cache ./config.cache
Configuring PCRE regular expression library ...
configuring package in srclib/pcre now
loading cache /home/source/httpd-2.0.35/./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for limits.h... (cached) yes
checking for working const... (cached) yes
checking for size_t... (cached) yes
checking for bcopy... (cached) yes
checking for memmove... (cached) yes
checking for strerror... (cached) yes
creating ./config.status
creating Makefile
creating pcre.h
creating pcre-config
creating config.h
config.h is unchanged
srclib/pcre configured properly
loading cache ./config.cache
Configuring Apache httpd ...
obtaining flag settings from the sub-configures...
setting CFLAGS to "-g -O2 -pthread"
setting CPPFLAGS to "-DLINUX=2 -D_REENTRANT"
setting LDFLAGS to ""
setting LIBS to "-lm -lcrypt -lnsl -ldl"
setting INCLUDES to "-I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/server/mpm/$(MPM_NAME) -I$(top_srcdir)/modules/http -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/include -I$(top_srcdir)/srclib/apr/include -I$(top_srcdir)/srclib/apr-util/include"
Applying OS-specific hints for httpd ...
forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
checking for rm... (cached) /bin/rm
checking for mawk... (cached) mawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 -pthread ) works... yes
checking whether the C compiler (gcc -g -O2 -pthread ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for ranlib... (cached) ranlib
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... (cached) no
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for limits.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for pwd.h... (cached) yes
checking for grp.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/processor.h... (cached) no
checking for sys/sem.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for working const... (cached) yes
setting NOTEST_CPPFLAGS to "-DAP_HAVE_DESIGNATED_INITIALIZER"
checking for getpwnam... (cached) yes
checking for getgrnam... (cached) yes
checking for initgroups... (cached) yes
checking for bindprocessor... (cached) no
checking for timegm... (cached) yes
checking for tm_gmtoff in struct tm... (cached) yes
checking whether to enable mod_access... yes (default)
checking whether to enable mod_auth... yes (default)
checking whether to enable mod_auth_anon... no
checking whether to enable mod_auth_dbm... no
checking whether to enable mod_auth_digest... no
setting LT_LDFLAGS to "-export-dynamic"
checking whether to enable mod_file_cache... no
checking whether to enable mod_echo... no
checking whether to enable mod_charset_lite... no
checking whether to enable mod_cache... no
checking whether to enable mod_disk_cache... no
checking whether to enable mod_mem_cache... no
checking whether to enable mod_example... no
checking whether to enable mod_ext_filter... no
checking whether to enable mod_case_filter... no
checking whether to enable mod_case_filter_in... no
checking whether to enable mod_deflate... no
checking whether to enable mod_include... yes (default)
checking whether to enable mod_log_config... yes (default)
checking whether to enable mod_env... yes (default)
checking whether to enable mod_mime_magic... no
checking whether to enable mod_cern_meta... no
checking whether to enable mod_expires... no
checking whether to enable mod_headers... no
checking whether to enable mod_usertrack... no
checking whether to enable mod_unique_id... no
checking whether to enable mod_setenvif... yes (default)
checking whether to enable mod_proxy... no
checking whether to enable mod_proxy_connect... no
checking whether to enable mod_proxy_ftp... no
checking whether to enable mod_proxy_http... no
checking whether to enable mod_ssl... no
checking whether to enable mod_optional_hook_export... no
checking whether to enable mod_optional_hook_import... no
checking whether to enable mod_optional_fn_import... no
checking whether to enable mod_optional_fn_export... no
checking whether to enable mod_bucketeer... no
checking for target platform... unix
checking for rlim_t... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/sem.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking for setsid... (cached) yes
checking for killpg... (cached) yes
checking for bstring.h... (cached) no
checking for unistd.h... (cached) yes
checking for syslog... (cached) yes
checking for sys/times.h... (cached) yes
checking for times... (cached) yes
checking which MPM to use... prefork
checking whether to enable mod_http... yes
checking whether to enable mod_mime... yes (default)
checking for extra modules... no extra modules
checking whether to enable mod_dav... no
adding "-I$(top_srcdir)/modules/dav/main" to INCLUDES
checking whether to enable mod_status... yes (default)
checking whether to enable mod_autoindex... yes (default)
checking whether to enable mod_asis... yes (default)
checking whether to enable mod_info... no
checking whether to enable mod_suexec... no
checking whether to enable mod_cgi... yes (default)
checking whether to enable mod_cgid... no
checking whether to enable mod_dav_fs... no
checking whether to enable mod_vhost_alias... no
checking whether to enable mod_negotiation... yes (default)
checking whether to enable mod_dir... yes (default)
checking whether to enable mod_imap... yes (default)
checking whether to enable mod_actions... yes (default)
checking whether to enable mod_speling... no
checking whether to enable mod_userdir... yes (default)
checking whether to enable mod_alias... yes (default)
checking whether to enable mod_rewrite... no
checking whether to enable mod_so... yes
checking whether byte ordering is bigendian... (cached) no
adding "/usr/lib/libexpat.la" to LIBS
adding "-I/home/source/httpd-2.0.35/srclib/apr-util/include" to INCLUDES
setting LDFLAGS to ""
Restore user-defined environment settings...
restoring CPPFLAGS to ""
setting EXTRA_CPPFLAGS to "-DLINUX=2 -D_REENTRANT"
restoring CFLAGS to ""
setting EXTRA_CFLAGS to "-g -O2 -pthread"
restoring CXXFLAGS to ""
setting EXTRA_CXXFLAGS to ""
restoring LDFLAGS to ""
setting EXTRA_LDFLAGS to ""
restoring LIBS to ""
setting EXTRA_LIBS to "-lm -lcrypt -lnsl -ldl /usr/lib/libexpat.la"
restoring INCLUDES to ""
setting EXTRA_INCLUDES to "-I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/server/mpm/$(MPM_NAME) -I$(top_srcdir)/modules/http -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/include -I$(top_srcdir)/srclib/apr/include -I$(top_srcdir)/srclib/apr-util/include -I$(top_srcdir)/modules/dav/main -I/home/source/httpd-2.0.35/srclib/apr-util/include"
Construct makefiles and header files...
checking for working mkdir -p... (cached) yes
creating config_vars.mk
creating ./config.status
creating docs/conf/httpd-std.conf
creating include/ap_config_layout.h
creating support/apxs
creating support/apachectl
creating support/dbmmanage
creating support/envvars-std
creating support/log_server_status
creating support/logresolve.pl
creating support/phf_abuse_log.cgi
creating support/split-logfile
creating build/rules.mk
creating include/ap_config_auto.h
include/ap_config_auto.h is unchanged
creating modules/aaa/Makefile
creating modules/cache/Makefile
creating modules/echo/Makefile
creating modules/experimental/Makefile
creating modules/filters/Makefile
creating modules/loggers/Makefile
creating modules/metadata/Makefile
creating modules/proxy/Makefile
creating modules/ssl/Makefile
creating modules/test/Makefile
creating os/unix/Makefile
creating server/mpm/Makefile
creating server/mpm/prefork/Makefile
creating modules/http/Makefile
creating modules/dav/main/Makefile
creating modules/generators/Makefile
creating modules/dav/fs/Makefile
creating modules/mappers/Makefile
creating Makefile
creating modules/Makefile
creating srclib/Makefile
creating os/beos/Makefile
creating os/os2/Makefile
creating os/Makefile
creating os/unix/Makefile
creating server/Makefile
creating support/Makefile
creating srclib/pcre/Makefile
creating test/Makefile