免费注册 查看新帖 |

Chinaunix

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

solaris9 sparc下安装snmp错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-26 09:22 |只看该作者 |倒序浏览
我在./configuer后make,可是刚make开始就报如下错误,请大家帮我看看问题出在哪,谢谢!!
making all in /export/home/shilei/net-snmp-5.4.1/snmplib
mksh: Fatal error: Error reading `Makefile': 错的文件号
Current working directory /export/home/shilei/net-snmp-5.4.1/snmplib
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
以下是我MakeFile的部分内容
#
# Minimum environment and virtual path setup
#
SHELL = /bin/sh
srcdir = .
top_srcdir = .

VERSION = 5.1.4


#
# Paths
#
prefix = /usr/local
exec_prefix = /usr/local
bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libdir = ${exec_prefix}/lib
datadir = ${prefix}/share
includedir = ${prefix}/include/net-snmp
ucdincludedir = ${prefix}/include/ucd-snmp
mandir = ${prefix}/man
man1dir = $(mandir)/man1
man3dir = $(mandir)/man3
man5dir = $(mandir)/man5
man8dir = $(mandir)/man8
snmplibdir = $(datadir)/snmp
mibdir = $(snmplibdir)/mibs
persistentdir = /var/net-snmp
INSTALL_PREFIX =

#
# Programs
#
INSTALL = $(LIBTOOL) --mode=install ./install-sh -c
UNINSTALL = $(LIBTOOL) --mode=uninstall rm -f
INSTALL_DATA = ${INSTALL} -m 644
SED = /usr/xpg4/bin/sed
LN_S = ln -s
AUTOCONF = :
AUTOHEADER = :

#
# Compiler arguments
#
CFLAGS = -g -O2 -Dsolaris2
EXTRACPPFLAGS = -x c
LDFLAGS = -L/usr/local/ssl/lib
LIBTOOL = $(SHELL) $(top_builddir)/libtool
EXEEXT =

# Misc Compiling Stuff
CC = gcc

# use libtool versioning the way they recommend.
# The (slightly clarified) rules:
#
# - If any interfaces/structures have been removed or changed since the
# last update, increment current, and set age and revision to 0. Stop.
#
# - If any interfaces have been added since the last public release, then
# increment current and age, and set revision to 0. Stop.
#
# - If the source code has changed at all since the last update,
# then increment revision (c:r:a becomes c:r+1:a).
#
# Note: maintenance releases (eg 5.2.x) should never have changes
# that would require a current to be incremented.
#
LIBCURRENT = 8
LIBAGE = 0
LIBREVISION = 0

LIB_LD_CMD = $(LIBTOOL) --mode=link $(gcc) $(CFLAGS) -rpath $(libdir) -version-info $(LIBCURRENT)(LIBREVISION)(LIBAGE) -o
LIB_EXTENSION = la
LIB_VERSION =
LIB_LDCONFIG_CMD = $(LIBTOOL) --mode=finish $(libdir)
LINK = $(LIBTOOL) --mode=link $(gcc)
# RANLIB = ranlib
RANLIB = :

# libtool definitions
.SUFFIXES: .c .o .lo .rc
.c.lo:
$(LIBTOOL) --mode=compile $(gcc) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
.rc.lo:
$(LIBTOOL) --mode=compile windres -o $@ $<

#
# Makefile.in (at the root of net-snmp)
#

top_builddir = .


SUBDIRS = snmplib agent apps man local mibs
TESTDIRS = testing
CPP = gcc -E \
-Iinclude -I$(srcdir)/include -I$(srcdir)/agent/mibgroup -I. -I$(srcdir) \
-DDONT_INC_STRUCTS -DBINDIR=$(bindir) \
$(EXTRACPPFLAGS)

INSTALLHEADERS=version.h
INCLUDESUBDIR=system
INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
darwin.h darwin7.h freebsd5.h freebsd6.h \
dynix.h freebsd2.h freebsd3.h freebsd4.h freebsd.h generic.h hpux.h \
irix.h linux.h mingw32.h mips.h netbsd.h openbsd.h osf5.h \
solaris2.6.h solaris2.7.h solaris2.8.h solaris2.9.h solaris.h \
sunos.h svr5.h sysv.h ultrix4.h
INCLUDESUBDIR2=machine
INCLUDESUBDIRHEADERS2=generic.h
INSTALLBUILTHEADERS=include/net-snmp/net-snmp-config.h
INSTALLBINSCRIPTS=net-snmp-config
INSTALLUCDHEADERS=ucd-snmp-config.h version.h mib_module_config.h

#
# other install rules.
#
OTHERINSTALL=copypersistentfiles
OTHERUNINSTALL=
COPY_PERSISTENT_FILES=no
PERSISTENT_DIRECTORY=/var/net-snmp
UCDPERSISTENT_DIRECTORY=/var/ucd-snmp

#
# perl specific
#
# yes, order matters here. default_store must occur before anything else
PERLMODULES=default_store SNMP ASN OID agent
PERLARGS=

#
# libtool
#
LIBTOOL_DEPS = ./ltmain.sh

#
# targets
#
all: sedscript EXAMPLE.conf standardall net-snmp-config-x

start-flag:
@touch build-in-progress-flag
end-flag:
        @rm -f build-in-progress-flag > /dev/null 2>&1

libtool:        $(LIBTOOL_DEPS)
        $(SHELL) ./config.status --recheck


snmplib:
        @(cd snmplib; $(MAKE) )

agent:
        @(cd snmplib; $(MAKE) )
        @(cd agent; $(MAKE) )

apps:
        @(cd snmplib; $(MAKE) )
        @(cd apps; $(MAKE) )

snmpget snmpbulkget snmpwalk snmpbulkwalk snmptranslate snmpstatus snmpdelta snmptable snmptest snmpset snmpusm snmpvacm snmpgetnext
encode_keychange snmpdf snmptrap:
        @(cd snmplib; $(MAKE) )
        @(cd apps; $(MAKE) $@ )

snmptrapd:
        @(cd snmplib; $(MAKE) )
        @(cd agent; $(MAKE) libs)
        @(cd apps; $(MAKE) $@ )

#
# local build rules
#
sedscript: sedscript.in include/net-snmp/net-snmp-config.h $(srcdir)/agent/mibgroup/mibdefs.h
        $(CPP) $(srcdir)/sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
        echo 's#DATADIR#$(datadir)#g' >> sedscript
        echo 's#LIBDIR#$(libdir)#g' >> sedscript
        echo 's#BINDIR#$(bindir)#g' >> sedscript
        echo 's#PERSISTENT_DIRECTORY#$(PERSISTENT_DIRECTORY)#g' >> sedscript
        echo 's#SYSCONFDIR#${prefix}/etc#g' >> sedscript

EXAMPLE.conf: sedscript EXAMPLE.conf.def
        $(SED) -f sedscript $(srcdir)/EXAMPLE.conf.def > EXAMPLE.conf

docs: docsdir mancp

docsdir: docsdox

docsdox: doxygen.conf
        srcdir=$(srcdir) doxygen $(srcdir)/doxygen.conf
-rm docs/man/man3/todo.3
        -rm docs/man/man3/deprecated.3

mancp:
        @for i in docs/man/man3/* ; do \
             cp $$i man/netsnmp_`basename $$i` ; \
        done

net-snmp-config-x: net-snmp-config
        chmod a+x net-snmp-config
        touch net-snmp-config-x

#
# extra install rules
#

copypersistentfiles:
        @if test "$(COPY_PERSISTENT_FILES)" = "yes" -a -d $(UCDPERSISTENT_DIRECTORY) -a ! -d $(PERSISTENT_DIRECTORY) ; then \
                cp -pr $(UCDPERSISTENT_DIRECTORY) $(PERSISTENT_DIRECTORY) ; \
                echo "copying $(UCDPERSISTENT_DIRECTORY) to $(PERSISTENT_DIRECTORY)" ; \
        fi
#
# test targets
#
test: all testdirs
        ( cd testing; $(MAKE) test )

test-mibs: all testdirs
        ( cd testing; $(MAKE) test-mibs )

testdirs:
        for i in $(TESTDIRS) ; do       \
           ( cd $$i ; $(MAKE) ) ;               \
           if test $$? != 0 ; then \
              exit 1 ; \
           fi  \
        done

distall: ${srcdir}/configure ${srcdir}/include/net-snmp/net-snmp-config.h

OTHERCLEANTARGETS=EXAMPLE.conf sedscript
OTHERCLEANTODOS=perlclean

#
# perl specific build rules
#
# override LD_RUN_PATH to avoid dependencies on the build directory
perlmodules: perlmakefiles subdirs
        @(cd perl ; $(MAKE) LD_RUN_PATH="$(libdir):`$(PERL) -e 'use Config; print qq($$Config{archlibexp}/CORE);'`" ; \
if test $$? != 0 ; then \
           exit 1 ; \
        fi

perlmakefiles: net-snmp-config-x
        @if test ! -f perl/Makefile; then \
          (dir=`pwd`; \
           cd perl ; \
           $(PERL) Makefile.PL -NET-SNMP-IN-SOURCE=true -NET-SNMP-CONFIG="sh $$dir/net-snmp-config" $(PERLARGS) ) ; \
        fi

perlinstall:
        @(cd perl ; $(MAKE) install) ; \
        if test $$? != 0 ; then \
           exit 1 ; \
        fi

perluninstall:
        @(cd perl ; $(MAKE) uninstall) ; \
        if test $$? != 0 ; then \
           exit 1 ; \
        fi

perltest:
        @(cd perl ; $(MAKE) test) ; \
        if test $$? != 0 ; then \
           exit 1 ; \
        fi

perlclean:
        @if test -f perl/Makefile; then \
           ( cd perl ; $(MAKE) clean ) ; \
        fi
perlrealclean:
        @if test -f perl/Makefile; then \
           ( cd perl ; $(MAKE) realclean ) ; \
        fi


#
# python specific build rules
#
PYMAKE=$(PYTHON) setup.py $(PYTHONARGS)
pythonmodules:
        @(dir=`pwd`; cd python; $(PYMAKE) build --basedir=$$dir) ; \
        if test $$? != 0 ; then \
           exit 1 ; \
        fi
pythoninstall:
        @(dir=`pwd`; cd python; $(PYMAKE) install --basedir=$$dir) ; \
        if test $$? != 0 ; then \
           exit 1 ; \
        fi

pythonuninstall:
        echo "WARNING: python doesn't support uninstall"

pythontest:
        @(dir=`pwd`; cd python; $(PYMAKE) test --basedir=$$dir) ; \
        if test $$? != 0 ; then \
           exit 1 ; \
        fi

pythonclean:
        @(dir=`pwd`; cd python; $(PYMAKE) clean --basedir=$$dir)


#
# make distclean completely removes all traces of building including
# any files generated by configure itself.
#
distclean: perlrealclean clean configclean tarclean

makefileclean:
        rm -f Makefile snmplib/Makefile                         \
                agent/Makefile agent/mibgroup/Makefile          \
                agent/helpers/Makefile                          \
                apps/Makefile  apps/snmpnetstat/Makefile        \
                man/Makefile mibs/Makefile ov/Makefile          \
                local/Makefile testing/Makefile

configclean: makefileclean
        rm -f config.cache config.status config.log \
                libtool include/net-snmp/net-snmp-config.h \
                net-snmp-config net-snmp-config-x configure-summary
        rm -f mibs/.index
        rm -f include/net-snmp/agent/mib_module_config.h                \
                include/net-snmp/agent/agent_module_config.h            \
                include/net-snmp/library/snmpv3-security-includes.h \
                snmplib/snmpsm_init.h                   \
                agent/mibgroup/agent_module_includes.h  \
                agent/mibgroup/agent_module_inits.h     \
                agent/mibgroup/agent_module_shutdown.h  \
                agent/mibgroup/agent_module_dot_conf.h  \
                agent/mibgroup/mib_module_includes.h    \
                agent/mibgroup/mib_module_inits.h       \
agent/mibgroup/mib_module_shutdown.h    \
                agent/mibgroup/mib_module_dot_conf.h
        rm -rf mk
        rm -f *.core

论坛徽章:
0
2 [报告]
发表于 2008-03-26 13:25 |只看该作者
就没人知道吗?谢谢各位兄弟了

论坛徽章:
0
3 [报告]
发表于 2008-03-27 17:00 |只看该作者
没人知道吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP