免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 7965 | 回复: 34
打印 上一主题 下一主题

Gcc后续篇----make出问题了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-26 11:09 |只看该作者 |倒序浏览
........
config.status: creating support/apxs
config.status: creating support/apachectl
config.status: creating support/dbmmanage
config.status: creating support/envvars-std
config.status: creating support/log_server_status
config.status: creating support/logresolve.pl
config.status: creating support/phf_abuse_log.cgi
config.status: creating support/split-logfile
config.status: creating build/rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: include/ap_config_auto.h is unchanged
config.status: executing default commands
#

以上为./configure 生成最后几段话,  从最后一句话来看,应该是成功了。

论坛徽章:
0
2 [报告]
发表于 2006-06-26 11:13 |只看该作者
以下是Makefile里面文件内容

# vi Makefile
"Makefile" 234 lines, 8744 characters
top_srcdir   = /opt/down/httpd-2.2.2
top_builddir = /opt/down/httpd-2.2.2
srcdir       = /opt/down/httpd-2.2.2
builddir     = /opt/down/httpd-2.2.2
VPATH        = /opt/down/httpd-2.2.2

SUBDIRS = srclib os server modules support
CLEAN_SUBDIRS = test

PROGRAM_NAME         = $(progname)
PROGRAM_SOURCES      = modules.c
PROGRAM_LDADD        = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EX
TRA_LIBS) $(AP_LIBS) $(LIBS)
PROGRAM_PRELINK      = $(COMPILE) -c $(top_srcdir)/server/buildmark.c
PROGRAM_DEPENDENCIES = \
  server/libmain.la \
  $(BUILTIN_LIBS) \
  $(MPM_LIB) \
  os/$(OS_DIR)/libos.la

PROGRAMS        = $(PROGRAM_NAME)
TARGETS         = $(PROGRAMS) $(shared_build) $(other_targets)
INSTALL_TARGETS = install-conf install-htdocs install-error install-icons \
"Makefile" 234 lines, 8744 characters
top_srcdir   = /opt/down/httpd-2.2.2
top_builddir = /opt/down/httpd-2.2.2
srcdir       = /opt/down/httpd-2.2.2
builddir     = /opt/down/httpd-2.2.2
VPATH        = /opt/down/httpd-2.2.2

SUBDIRS = srclib os server modules support
CLEAN_SUBDIRS = test

PROGRAM_NAME         = $(progname)
PROGRAM_SOURCES      = modules.c
PROGRAM_LDADD        = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
PROGRAM_PRELINK      = $(COMPILE) -c $(top_srcdir)/server/buildmark.c
PROGRAM_DEPENDENCIES = \
  server/libmain.la \
  $(BUILTIN_LIBS) \
  $(MPM_LIB) \
  os/$(OS_DIR)/libos.la

PROGRAMS        = $(PROGRAM_NAME)
TARGETS         = $(PROGRAMS) $(shared_build) $(other_targets)
INSTALL_TARGETS = install-conf install-htdocs install-error install-icons \
        install-other install-cgi install-include install-suexec install-build \
        install-man

DISTCLEAN_TARGETS  = include/ap_config_auto.h include/ap_config_layout.h \
        modules.c config.cache config.log config.status build/config_vars.mk \
        build/rules.mk docs/conf/httpd.conf docs/conf/extra/*.conf shlibtool \
        build/pkg/pkginfo build/config_vars.sh
EXTRACLEAN_TARGETS = configure include/ap_config_auto.h.in generated_lists \
        httpd.spec

include $(top_builddir)/build/rules.mk
include $(top_srcdir)/build/program.mk

install-conf:
        @echo Installing configuration files
        @$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(sysconfdir)/extra
        @$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir)/original/extra
        @cd $(top_srcdir)/docs/conf; \
        for i in mime.types magic; do \
            if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
                $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
            fi; \

论坛徽章:
0
3 [报告]
发表于 2006-06-26 11:17 |只看该作者
现在是最重要部分:  make出错的地方


# make
Making all in srclib
Making all in apr
/bin/bash /opt/down/httpd-2.2.2/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE   -I./include -I/opt/down/httpd-2.2.2/srclib/apr/include/arch/unix -I./include/arch/unix -I/opt/down/httpd-2.2.2/srclib/apr/include  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
In file included from /usr/include/sys/wait.h:24,
                 from include/apr.h:131,
                 from include/apr_pools.h:37,
                 from /opt/down/httpd-2.2.2/srclib/apr/include/arch/apr_private_common.h:24,
                 from /opt/down/httpd-2.2.2/srclib/apr/include/arch/unix/apr_private.h:779,
                 from passwd/apr_getpass.c:22:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
                 from /usr/include/sys/wait.h:25,
                 from include/apr.h:131,
                 from include/apr_pools.h:37,
                 from /opt/down/httpd-2.2.2/srclib/apr/include/arch/apr_private_common.h:24,
                 from /opt/down/httpd-2.2.2/srclib/apr/include/arch/unix/apr_private.h:779,
                 from passwd/apr_getpass.c:22:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from include/apr.h:131,
                 from include/apr_pools.h:37,
                 from /opt/down/httpd-2.2.2/srclib/apr/include/arch/apr_private_common.h:24,
                 from /opt/down/httpd-2.2.2/srclib/apr/include/arch/unix/apr_private.h:779,
                 from passwd/apr_getpass.c:22:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from include/apr_general.h:33,
                 from include/apr_pools.h:39,
                 from /opt/down/httpd-2.2.2/srclib/apr/include/arch/apr_private_common.h:24,
                 from /opt/down/httpd-2.2.2/srclib/apr/include/arch/unix/apr_private.h:779,
                 from passwd/apr_getpass.c:22:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `passwd/apr_getpass.lo'
Current working directory /opt/down/httpd-2.2.2/srclib/apr
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive | sed s/-recursive//`; \
list='random/unix dso/os2 time/unix locks/unix user/unix locks/beos tables support/unix file_io/unix mmap/unix atomic/unix poll/os2 dso/os390 atomic/os390 dso/beos poll/unix passwd network_io/beos threadproc/os2 network_io/os2 threadproc/beos shmem/unix network_io/unix file_io/os2 dso/aix threadproc/unix misc/unix shmem/beos dso/unix locks/os2 shmem/os2 memory/unix strings '; \
for i in $list; do \
    if test -f "$i/Makefile"; then \
        target="$otarget"; \
        echo "Making $target in $i"; \
        if test "$i" = "."; then \
            made_local=yes; \
            target="local-$target"; \
        fi; \
        (cd $i && make $target) || exit 1; \
    fi; \
done; \
        if test "$otarget" = "all" && test -z "libapr-1.la export_vars.c apr.exp"; then \
    made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
    make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'
Current working directory /opt/down/httpd-2.2.2/srclib/apr
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive|sed s/-recursive//`; \
list=' apr apr-util pcre '; \
for i in $list; do \
    if test -d "$i"; then \
        target="$otarget"; \
        echo "Making $target in $i"; \
        if test "$i" = "."; then \
                made_local=yes; \
                target="local-$target"; \
        fi; \
        (cd $i && make $target) || exit 1; \
    fi; \
done; \
if test "$otarget" = "all" && test -z ''; then \
    made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
    make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'
Current working directory /opt/down/httpd-2.2.2/srclib
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive|sed s/-recursive//`; \
list='  srclib os server modules support'; \
for i in $list; do \
    if test -d "$i"; then \
        target="$otarget"; \
        echo "Making $target in $i"; \
        if test "$i" = "."; then \
                made_local=yes; \
                target="local-$target"; \
        fi; \
        (cd $i && make $target) || exit 1; \
    fi; \
done; \
if test "$otarget" = "all" && test -z 'httpd  '; then \
    made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
    make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'

完毕  
还望大家多给些点拨

论坛徽章:
0
4 [报告]
发表于 2006-06-26 13:49 |只看该作者
老师们 99

论坛徽章:
0
5 [报告]
发表于 2006-06-26 14:21 |只看该作者
是不是新装的gcc 3.4?在sun freeware上面看看安装说明

论坛徽章:
0
6 [报告]
发表于 2006-06-26 15:04 |只看该作者
我用的是   gcc-3.3.2

论坛徽章:
0
7 [报告]
发表于 2006-06-27 08:42 |只看该作者
不学会 誓不罢休!

论坛徽章:
0
8 [报告]
发表于 2006-06-27 11:22 |只看该作者
不学会 誓不罢休!

论坛徽章:
0
9 [报告]
发表于 2006-06-28 08:34 |只看该作者
不学会 誓不罢休!

版主,会不会请 留个言。

论坛徽章:
0
10 [报告]
发表于 2006-06-28 09:17 |只看该作者
试下这个
ln -s /usr/local/bin/gcc /usr/bin/cc
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP