2014-06-11 7 views
0

여기에서 플러그인 컴파일의 두 가지 버전을 시도했습니다. 1.4.3 및 1.4.9 make와 관련된 새 문제는 다음과 같습니다.SunOS 9에서 nagios-plugins-1.4.3 및 1.4.9를 만들지 못했습니다.

사용의 Nagios - 플러그인 - 1.4.3

source='check_ldap.c' object='check_ldap.o' libtool=no \ 
DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \ 
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -I/usr/local/ssl/include -I/usr/local/ssl/include -Wall -g -O2 -c check_ldap.c 
check_ldap.c: In function `main': 
check_ldap.c:105: warning: implicit declaration of function `ldap_init' 
check_ldap.c:105: warning: assignment makes pointer from integer without a cast 
check_ldap.c:171: warning: implicit declaration of function `ldap_bind_s' 
check_ldap.c:179: warning: implicit declaration of function `ldap_search_s' 
check_ldap.c:187: warning: implicit declaration of function `ldap_unbind' 
/bin/bash ../libtool --mode=link --tag=CC gcc -Wall -g -O2 -L/usr/local/ssl/lib -L. -R/usr/local/ssl/lib -o check_ldap check_ldap.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -lnsl -lsocket -lresolv -lldap -llber ../intl/libintl.a -liconv -lgen -lsocket -lssl -lcrypto 
gcc -Wall -g -O2 -o check_ldap check_ldap.o netutils.o utils.o -L/usr/local/ssl/lib -L/tmp/nagios-plugins-1.4.3/plugins ../lib/libnagiosplug.a ../lib/libcoreutils.a /usr/local/lib/libldap.so -L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/BerkeleyDB.4.2/lib -lnet /usr/local/lib/libsasl2.so -ldl -lnsl -lresolv /usr/local/lib/liblber.so ../intl/libintl.a /usr/local/lib/libiconv.so -lgen -lsocket -lssl -lcrypto -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/ssl/lib 
/usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -lnet 
collect2: ld returned 1 exit status 
*** Error code 1 
make: Fatal error: Command failed for target `check_ldap' 
Current working directory /tmp/nagios-plugins-1.4.3/plugins 
*** Error code 1 
make: Fatal error: Command failed for target `all-recursive' 
Current working directory /tmp/nagios-plugins-1.4.3/plugins 
*** Error code 1 
make: Fatal error: Command failed for target `all-recursive' 
Current working directory /tmp/nagios-plugins-1.4.3 
*** Error code 1 
make: Fatal error: Command failed for target `all' 

것은 사용의 Nagios - 플러그인 - 1.4.9

source='check_ldap.c' object='check_ldap.o' libtool=no \ 
DEPDIR=.deps depmode=gcc /bin/bash ../build-aux/depcomp \ 
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/local/ssl/include -D_REENTRANT -I/usr/local/ssl/include -g -O2 -c check_ldap.c 
check_ldap.c: In function `main': 
check_ldap.c:118: warning: assignment makes pointer from integer without a cast 
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -L/usr/local/ssl/lib -L. -L/usr/local/ssl/lib -o check_ldap check_ldap.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -lresolv -lldap -llber -lsocket 
gcc -g -O2 -o check_ldap check_ldap.o netutils.o utils.o -L/usr/local/ssl/lib -L/tmp/nagios-plugins-1.4.9/plugins ../lib/libnagiosplug.a ../gl/libgnu.a /usr/local/lib/libldap.so -L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/BerkeleyDB.4.2/lib -lgen -lnet /usr/local/lib/libsasl2.so -ldl -lnsl -lresolv -lssl -lcrypto /usr/local/lib/liblber.so -lsocket -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib 
/usr/local/sparc-sun-solaris2.6/bin/ld: cannot find -lnet 
collect2: ld returned 1 exit status 
*** Error code 1 
make: Fatal error: Command failed for target `check_ldap' 
Current working directory /tmp/nagios-plugins-1.4.9/plugins 
*** Error code 1 
make: Fatal error: Command failed for target `all-recursive' 
Current working directory /tmp/nagios-plugins-1.4.9 
*** Error code 1 
make: Fatal error: Command failed for target `all' 

은 확실 일부 라이브러리는이 SunOS의 누락. 그게 뭔지 잘 모르시겠습니까?

+1

오류는'/usr/local/sparc-sun-solaris2.6/bin/ld이다 : 그것은'libnet' 라이브러리를 찾을 수 있다는 뜻 -lnet' 찾을 수 없습니다. 정확히 어떤 라이브러리인지 찾아서 설치해야합니다. –

+0

가능한 [Nagios 플러그인 1.4.3 컴파일이 Solaris 9에서 실패했습니다] (http://stackoverflow.com/questions/24083285/nagios-plugin-1-4-3-compilation-failed-on-solaris-9) – Bruno9779

답변

0

의견을 많이 보내 주셔서 감사합니다. Etan, 여기 Etan 코멘트를 따라 왔습니다. google에서 libnet 패키지를 검색했습니다. 다음 링크에서 발견

libnet download link

패키지 충격을 가하는 솔라리스 9 상자에 복사 된 파일 다음 gunzip을 추출은, 이제 다음 명령

pckadd -d libnet-1.1.1-sol9-sparc-local 

사라 LNET의 문제를 실행 ! 희망이 이런 종류의 문제가 발생하는 다른 사용자를 도울 것입니다.

건배