LinuxForum.Fans
Тема

Установка NRPE 2.13 на Mac OS 10.6.8

Автор: InVariable 2 сообщений 3579 просмотров
#284528

Добрый день,

Устанавливаю nrpe, уже разобрался с gcc и libssl, но тут новая засада...

text

make all
cd ./src/; make ; cd ..
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c acl.c -L/usr/local/ssl/lib/  -lssl -lcrypto  -lwrap
nrpe.c: In function 'main':
nrpe.c:218: warning: assignment discards qualifiers from pointer target type
ld: warning: ignoring file /usr/local/ssl/lib//libssl.a, file was built for archive which is not the architecture being linked (x86_64)
ld: warning: ignoring file /usr/local/ssl/lib//libcrypto.a, file was built for archive which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
  "_DH_new", referenced from:
      _get_dh512 in cchlA7aP.o
  "_BN_bin2bn", referenced from:
      _get_dh512 in cchlA7aP.o
  "_DH_free", referenced from:
      _get_dh512 in cchlA7aP.o
      _main in cchlA7aP.o
  "_SSL_shutdown", referenced from:
      _handle_connection in cchlA7aP.o
  "_SSL_free", referenced from:
      _handle_connection in cchlA7aP.o
  "_SSL_read", referenced from:
      _handle_connection in cchlA7aP.o
  "_SSL_get_error", referenced from:
      _handle_connection in cchlA7aP.o
  "_SSL_new", referenced from:
      _handle_connection in cchlA7aP.o
  "_SSL_set_fd", referenced from:
      _handle_connection in cchlA7aP.o
  "_SSL_accept", referenced from:
      _handle_connection in cchlA7aP.o
  "_SSL_write", referenced from:
      _handle_connection in cchlA7aP.o
  "_SSL_CTX_free", referenced from:
      _main in cchlA7aP.o
  "_SSL_library_init", referenced from:
      _main in cchlA7aP.o
  "_SSLv23_server_method", referenced from:
      _main in cchlA7aP.o
  "_SSL_load_error_strings", referenced from:
      _main in cchlA7aP.o
  "_SSL_CTX_new", referenced from:
      _main in cchlA7aP.o
  "_SSL_CTX_ctrl", referenced from:
      _main in cchlA7aP.o
  "_SSL_CTX_set_cipher_list", referenced from:
      _main in cchlA7aP.o
  "_RAND_status", referenced from:
      _main in cchlA7aP.o
  "_RAND_file_name", referenced from:
      _main in cchlA7aP.o
  "_RAND_load_file", referenced from:
      _main in cchlA7aP.o
  "_RAND_write_file", referenced from:
      _main in cchlA7aP.o
  "_RAND_seed", referenced from:
      _main in cchlA7aP.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1

*** Compile finished ***

If the NRPE daemon and client compiled without any errors, you can continue with the installation or upgrade process.

Read the PDF documentation (NRPE.pdf) for information on the next steps you should take to complete the installation or upgrade.

Архитектура ОС i386... Что я не так делаю?

#284533
InVariable написал:
ld: warning: ignoring file /usr/local/ssl/lib//libssl.a, file was built for archive which is not the architecture being linked (x86_64)
ld: warning: ignoring file /usr/local/ssl/lib//libcrypto.a, file was built for archive which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64
Архитектура ОС i386... Что я не так делаю?

Вы зачем-то хотите собрать для 64-разрядной, при этом 64-разрядных библиотек у вас в системе, естественно, нет... если у вас i386.

Войдите или зарегистрируйтесь, чтобы ответить.