When i do an upgrade using emerge on snort version 2.3.0 RC2, and it failed. Previously installed version was 2.2.0. Reproducible: Always Steps to Reproduce: 1.Just emerge snort 2. 3. checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets ${MAKE}... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking for style of include used by make... GNU checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking dependency style of gcc... gcc3 checking for gcc option to accept ANSI C... none needed checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for i686-pc-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking dependency style of gcc... (cached) gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether byte ordering is bigendian... no checking for sparc alignment... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for strings.h... (cached) yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking for inet_ntoa in -lnsl... yes checking for socket in -lsocket... no checking whether printf must be declared... no checking whether fprintf must be declared... no checking whether syslog must be declared... no checking whether puts must be declared... no checking whether fputs must be declared... no checking whether fputc must be declared... no checking whether fopen must be declared... no checking whether fclose must be declared... no checking whether fwrite must be declared... no checking whether fflush must be declared... no checking whether getopt must be declared... no checking whether bzero must be declared... no checking whether bcopy must be declared... no checking whether memset must be declared... no checking whether strtol must be declared... no checking whether strcasecmp must be declared... no checking whether strncasecmp must be declared... no checking whether strerror must be declared... no checking whether perror must be declared... no checking whether socket must be declared... no checking whether sendto must be declared... no checking whether vsnprintf must be declared... no checking whether snprintf must be declared... no checking whether strtoul must be declared... no checking for snprintf... yes checking for strlcpy... no checking for strlcat... no checking for strerror... yes checking for __FUNCTION__... yes checking for floor in -lm... yes checking for pcap_datalink in -lpcap... yes checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking for pcre_compile in -lpcre... yes checking for mysql... yes checking for compress in -lz... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for a BSD-compatible install... /bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/sfutil/Makefile config.status: creating src/detection-plugins/Makefile config.status: creating src/output-plugins/Makefile config.status: creating src/preprocessors/Makefile config.status: creating src/preprocessors/HttpInspect/Makefile config.status: creating src/preprocessors/HttpInspect/include/Makefile config.status: creating src/preprocessors/HttpInspect/utils/Makefile config.status: creating src/preprocessors/HttpInspect/anomaly_detection/Makefile config.status: creating src/preprocessors/HttpInspect/client/Makefile config.status: creating src/preprocessors/HttpInspect/event_output/Makefile config.status: creating src/preprocessors/HttpInspect/mode_inspection/Makefile config.status: creating src/preprocessors/HttpInspect/normalization/Makefile config.status: creating src/preprocessors/HttpInspect/server/Makefile config.status: creating src/preprocessors/HttpInspect/session_inspection/Makefile config.status: creating src/preprocessors/HttpInspect/user_interface/Makefile config.status: creating src/preprocessors/flow/Makefile config.status: creating src/preprocessors/flow/int-snort/Makefile config.status: creating src/preprocessors/flow/portscan/Makefile config.status: creating src/parser/Makefile config.status: creating doc/Makefile config.status: creating contrib/Makefile config.status: creating schemas/Makefile config.status: creating rpm/Makefile config.status: creating etc/Makefile config.status: creating rules/Makefile config.status: creating templates/Makefile config.status: creating src/win32/Makefile config.status: creating config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2' Making all in src make[2]: Entering directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2/src' Making all in sfutil make[3]: Entering directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2/src/sfutil' gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil -I/usr/include/pcap -I../../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -I../../src/preprocessors/flow -I../../src/preprocessors/portscan -I../../src/preprocessors/flow/int-snort -I../../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'sfghash.c' || echo './'`sfghash.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil -I/usr/include/pcap -I../../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -I../../src/preprocessors/flow -I../../src/preprocessors/portscan -I../../src/preprocessors/flow/int-snort -I../../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'sfhashfcn.c' || echo './'`sfhashfcn.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil -I/usr/include/pcap -I../../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -I../../src/preprocessors/flow -I../../src/preprocessors/portscan -I../../src/preprocessors/flow/int-snort -I../../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'sflsq.c' || echo './'`sflsq.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil -I/usr/include/pcap -I../../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -I../../src/preprocessors/flow -I../../src/preprocessors/portscan -I../../src/preprocessors/flow/int-snort -I../../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'sfmemcap.c' || echo './'`sfmemcap.c ... gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors -I../src/preprocessors/flow -I../src/preprocessors/portscan -I../src/preprocessors/flow/int-snort -I../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'sfthreshold.c' || echo './'`sfthreshold.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors -I../src/preprocessors/flow -I../src/preprocessors/portscan -I../src/preprocessors/flow/int-snort -I../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'packet_time.c' || echo './'`packet_time.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors -I../src/preprocessors/flow -I../src/preprocessors/portscan -I../src/preprocessors/flow/int-snort -I../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'event_wrapper.c' || echo './'`event_wrapper.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors -I../src/preprocessors/flow -I../src/preprocessors/portscan -I../src/preprocessors/flow/int-snort -I../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'event_queue.c' || echo './'`event_queue.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../src/sfutil -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors -I../src/preprocessors/flow -I../src/preprocessors/portscan -I../src/preprocessors/flow/int-snort -I../src/preprocessors/HttpInspect/include -I/usr/include/mysql -DENABLE_MYSQL -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -c `test -f 'inline.c' || echo './'`inline.c gcc -O3 -march=pentium4 -pipe -fomit-frame-pointer -Wall -L/usr/lib -lpcre -L/usr/lib/mysql -o snort codes.o debug.o decode.o log.o mstring.o parser.o plugbase.o snort.o snprintf.o strlcatu.o strlcpyu.o tag.o ubi_BinTree.o ubi_SplayTree.o util.o detect.o signature.o mempool.o sf_sdlist.o fpcreate.o fpdetect.o pcrm.o byte_extract.o sfthreshold.o packet_time.o event_wrapper.o event_queue.o inline.o output-plugins/libspo.a detection-plugins/libspd.a preprocessors/libspp.a preprocessors/flow/portscan/libportscan.a preprocessors/flow/libflow.a parser/libparser.a preprocessors/HttpInspect/libhttp_inspect.a sfutil/libsfutil.a -lmysqlclient -lz -lpcre -lpcap -lm -lnsl /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x95): In function `sslaccept': : undefined reference to `SSL_new' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0xce): In function `sslaccept': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x137): In function `sslaccept': : undefined reference to `SSL_clear' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x14c): In function `sslaccept': : undefined reference to `SSL_get_session' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x15f): In function `sslaccept': : undefined reference to `SSL_SESSION_set_timeout' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x17a): In function `sslaccept': : undefined reference to `SSL_set_fd' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x18f): In function `sslaccept': : undefined reference to `SSL_set_accept_state' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x1a4): In function `sslaccept': : undefined reference to `SSL_do_handshake' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x1c1): In function `sslaccept': : undefined reference to `SSL_get_peer_certificate' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x1cf): In function `sslaccept': : undefined reference to `X509_get_subject_name' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x1e7): In function `sslaccept': : undefined reference to `X509_NAME_oneline' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x1f7): In function `sslaccept': : undefined reference to `X509_get_issuer_name' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x20f): In function `sslaccept': : undefined reference to `X509_NAME_oneline' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x21f): In function `sslaccept': : undefined reference to `X509_free' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x247): In function `sslaccept': : undefined reference to `SSL_get_shared_ciphers' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x272): In function `sslaccept': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x28b): In function `sslaccept': : undefined reference to `SSL_free' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x34c): In function `sslconnect': : undefined reference to `SSL_new' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x385): In function `sslconnect': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x3f0): In function `sslconnect': : undefined reference to `SSL_clear' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x405): In function `sslconnect': : undefined reference to `SSL_get_session' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x418): In function `sslconnect': : undefined reference to `SSL_SESSION_set_timeout' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x433): In function `sslconnect': : undefined reference to `SSL_set_fd' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x448): In function `sslconnect': : undefined reference to `SSL_set_connect_state' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x45d): In function `sslconnect': : undefined reference to `SSL_do_handshake' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x48b): In function `sslconnect': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x4a4): In function `sslconnect': : undefined reference to `SSL_free' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x55f): In function `vio_ssl_read': : undefined reference to `SSL_read' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5a8): In function `vio_ssl_read': : undefined reference to `SSL_get_error' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5c0): In function `vio_ssl_read': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x613): In function `vio_ssl_write': : undefined reference to `SSL_write' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x662): In function `vio_ssl_write': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x802): In function `vio_ssl_close': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x82b): In function `vio_ssl_close': : undefined reference to `SSL_shutdown' /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x83d): In function `vio_ssl_close': : undefined reference to `SSL_free' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x53): In function `new_VioSSLConnectorFd': : undefined reference to `TLSv1_client_method' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x5e): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_new' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x7a): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_set_cipher_list' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x94): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_set_verify' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xd1): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_load_verify_locations' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xdf): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_set_default_verify_paths' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xec): In function `new_VioSSLConnectorFd': : undefined reference to `DH_new' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x10e): In function `new_VioSSLConnectorFd': : undefined reference to `BN_bin2bn' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x12d): In function `new_VioSSLConnectorFd': : undefined reference to `BN_bin2bn' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x145): In function `new_VioSSLConnectorFd': : undefined reference to `DH_free' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x163): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_ctrl' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x16b): In function `new_VioSSLConnectorFd': : undefined reference to `DH_free' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x199): In function `new_VioSSLConnectorFd': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x1cd): In function `new_VioSSLConnectorFd': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x1f7): In function `new_VioSSLConnectorFd': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x209): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_load_error_strings' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x21a): In function `new_VioSSLConnectorFd': : undefined reference to `OPENSSL_add_all_algorithms_noconf' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x26f): In function `new_VioSSLAcceptorFd': : undefined reference to `TLSv1_server_method' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x27a): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_new' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x296): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_set_cipher_list' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x2b8): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_ctrl' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x2d2): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_set_verify' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x2eb): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_set_session_id_context' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x328): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_load_verify_locations' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x336): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_set_default_verify_paths' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x343): In function `new_VioSSLAcceptorFd': : undefined reference to `DH_new' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x365): In function `new_VioSSLAcceptorFd': : undefined reference to `BN_bin2bn' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x384): In function `new_VioSSLAcceptorFd': : undefined reference to `BN_bin2bn' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x39c): In function `new_VioSSLAcceptorFd': : undefined reference to `DH_free' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x3ba): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_ctrl' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x3c2): In function `new_VioSSLAcceptorFd': : undefined reference to `DH_free' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x3f0): In function `new_VioSSLAcceptorFd': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x424): In function `new_VioSSLAcceptorFd': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x44e): In function `new_VioSSLAcceptorFd': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x460): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_load_error_strings' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x471): In function `new_VioSSLAcceptorFd': : undefined reference to `OPENSSL_add_all_algorithms_noconf' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x4a9): In function `vio_set_cert_stuff': : undefined reference to `SSL_CTX_use_certificate_file' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x4ca): In function `vio_set_cert_stuff': : undefined reference to `SSL_CTX_use_PrivateKey_file' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x4d6): In function `vio_set_cert_stuff': : undefined reference to `SSL_CTX_check_private_key' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x527): In function `vio_set_cert_stuff': : undefined reference to `ERR_print_errors_fp' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x587): In function `vio_set_cert_stuff': : undefined reference to `ERR_print_errors_fp' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x5c9): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_current_cert' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x5d3): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_error' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x5db): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_error_depth' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x5e9): In function `vio_verify_callback': : undefined reference to `X509_get_subject_name' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x5fd): In function `vio_verify_callback': : undefined reference to `X509_NAME_oneline' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x632): In function `vio_verify_callback': : undefined reference to `X509_get_issuer_name' /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x646): In function `vio_verify_callback': : undefined reference to `X509_NAME_oneline' collect2: ld returned 1 exit status make[3]: *** [snort] Error 1 make[3]: Leaving directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2' make: *** [all] Error 2
Created attachment 48329 [details] The entire log file and compiling process.
looks like you don't have dev-libs/openssl emerged. Try emergeing that. If that fails reemerge mysql (with ssl USE flag) If that fails please tell me your mysql and openssl versions and I'll see if I can replicate you problem.
I had another thought - did you emerge mysql with a static USE flag?
Previously i already have the ssl flag in /etc/make.conf, but just now i just statis flag thinkpad root # USE="ssl" emerge -av mysql These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-db/mysql-4.0.23 +berkdb -debug -innodb +perl +readline (-selinux) +ssl -static +tcpd 0 kB [ebuild N ] dev-perl/Net-Daemon-0.38 0 kB [ebuild N ] dev-perl/Storable-2.13 0 kB [ebuild N ] dev-perl/PlRPC-0.2016-r1 0 kB [ebuild N ] dev-perl/DBI-1.45 0 kB [ebuild N ] dev-perl/DBD-mysql-2.9003 0 kB after emerged the mysql and i reemerge the snort i still got the same problem. dev-db/mysql Latest version available: 4.0.23 Latest version installed: 4.0.23 dev-libs/openssl Latest version available: 0.9.7e Latest version installed: 0.9.7d-r1 Currently i am reemerge latest openssl and snort and i will let you know the result just awhile. Joweelee
The same error still occur after using the latest mysql and openssl.
please emerge app-portage/gentoolkit and attach the following output. equery u mysql equery u snort equery u openssl emerge info You seem to have a static version of mysql with ssl included (somehow). My info for reference: dan@frog snort $ equery u mysql [ Found these USE variables for dev-db/mysql-4.0.22-r2 ] U I - - static : !!do not set this during bootstrap!! Causes things to be statically linked instead of dynamically + + readline : enables support for libreadline, a GNU line-editing library that most everyone wants. - - innodb : Adds innodb support for mySQL (transaction support) + + berkdb : Adds support for sys-libs/db (Berkeley DB for MySQL) - - tcpd : Adds support for TCP wrappers + + ssl : Adds support for Secure Socket Layer connections + + perl : Adds support/bindings for the Perl language. - - debug : Tells configure and the makefiles to build for debugging. dan@frog snort $ equery u snort [ Found these USE variables for net-analyzer/snort-2.3.0_rc2 ] U I + + ssl : Adds support for Secure Socket Layer connections + + postgres : Adds support for the postgresql database + + mysql : Adds mySQL support - - flexresp : Enable connection tearing (not recommended) - - selinux : !!internal use only!! Security Enhanced Linux support, this - - snortsam : patches snort for use with snortsam + + odbc : Adds ODBC Support (Open DataBase Connectivity) - - prelude : Adds support/bindings for the Prelude Intrusion Detection System dan@frog snort $ equery u openssl [ Found these USE variables for dev-libs/openssl-0.9.7d-r2 ] U I - - emacs : Adds support for GNU Emacs - - uclibc : Enable uclibc specific patches and build or link uclibc - - debug : Tells configure and the makefiles to build for debugging. dan@frog snort $ emerge info Portage 2.0.51-r14 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.7-hardened-r18 i686) ================================================================= System uname: 2.6.7-hardened-r18 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 24 2004, 08:06:09)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r7 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache cvs distlocks sandbox sfperms sign userpriv usersandbox" Bit where compile failed on yours: i686-pc-linux-gnu-gcc -g -Wall -o snort codes.o debug.o decode.o log.o mstring.o parser.o plugbase.o twofish.o snort.o snprintf.o strlcatu.o strlcpyu.o tag.o ubi_BinTree.o ubi_SplayTree.o util.o detect.o signature.o mempool.o sf_sdlist.o fpcreate.o fpdetect.o pcrm.o byte_extract.o sfthreshold.o packet_time.o event_wrapper.o event_queue.o inline.o -L/usr/lib -lcrypt -lssl -lcrypto /usr/lib/libprelude.so output-plugins/libspo.a output-plugins/spo_alert_prelude/libspo_alert_prelude.a detection-plugins/libspd.a preprocessors/libspp.a preprocessors/flow/portscan/libportscan.a preprocessors/flow/libflow.a parser/libparser.a preprocessors/HttpInspect/libhttp_inspect.a sfutil/libsfutil.a -lnet-1.0 -lmysqlclient -lz /usr/lib/libpcre.so /usr/lib/libpcap.a -lm -lnsl /usr/lib/libodbc.so -ldl -lpthread -lpq make[3]: Leaving directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2/src' make[2]: Leaving directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2/src' Making all in doc make[2]: Entering directory `/var/tmp/portage/snort-2.3.0_rc2/work/snort-2.3.0RC2/doc' Which of the following files do you have /usr/lib/mysql/libmysqlclient.so -> ../libmysqlclient.so /usr/lib/mysql/libmysqlclient_r.so -> ../libmysqlclient_r.so /usr/lib/mysql/libmysqlclient_r.la /usr/lib/mysql/libmysqlclient_r.a /usr/lib/mysql/libmysqlclient.la /usr/lib/mysql/libmysqlclient.a what is the contents of /usr/lib/mysql/libmysqlclient.la?
Here's the information requested, [01;31mthinkpad [01;34mroot # [00mequery -C u mysql [ Searching for packages matching mysql... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for dev-db/mysql-4.0.23-r2 ] U I - - static : !!do not set this during bootstrap!! Causes things to be statically linked instead of dynamically + + readline : enables support for libreadline, a GNU line-editing library that most everyone wants. - - innodb : Adds innodb support for mySQL (transaction support) + + berkdb : Adds support for sys-libs/db (Berkeley DB for MySQL) + + tcpd : Adds support for TCP wrappers + + ssl : Adds support for Secure Socket Layer connections + + perl : Adds support/bindings for the Perl language. - - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too - - selinux : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur [01;31mthinkpad [01;34mroot # [00mequery -C u mysql[K[K[K[K[Ksnort [ Searching for packages matching snort... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for net-analyzer/snort-2.2.0 ] U I + + ssl : Adds support for Secure Socket Layer connections - - postgres : Adds support for the postgresql database + - mysql : Adds mySQL support - - flexresp : Enable connection tearing (not recommended) - - selinux : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur - - snortsam : patches snort for use with snortsam [01;31mthinkpad [01;34mroot # [00mequery -C u snort[K[K[K[K[Kopenssl [ Searching for packages matching openssl... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for dev-libs/openssl-0.9.7e ] U I - - emacs : Adds support for GNU Emacs - - uclibc : Enable uclibc specific patches and build or link uclibc - - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too [01;31mthinkpad [01;34mroot # [00memerge info ]2;Started emerge on: Jan 26, 2005 18:46:09]2; *** emerge infoPortage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r2 i686) ================================================================= System uname: 2.6.10-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1400MHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 24 2004, 04:58:11)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.14.90.0.8-r1 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups dba dvd encode esd f77 fam font-server foomaticdb fortran gd gd-external gdbm gif gnome gpg gpm gps gstreamer gtk gtk2 imlib ipv6 java jpeg jpg libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl openssl oss pam pcmcia pdflib perl php png python qt quicktime readline samba sdl spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY ================================================================================ thinkpad root # ls -l /usr/lib/mysql/libmysqlclient* lrwxrwxrwx 1 root root 21 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient -> libmysqlclient.12.0.0 lrwxrwxrwx 1 root root 21 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient.12 -> libmysqlclient.12.0.0 -rwxr-xr-x 1 root root 255716 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient.12.0.0 -rw-r--r-- 1 root root 353898 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient.a -rwxr-xr-x 1 root root 879 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient.la lrwxrwxrwx 1 root root 23 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient_r -> libmysqlclient_r.12.0.0 lrwxrwxrwx 1 root root 23 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient_r.12 -> libmysqlclient_r.12.0.0 -rwxr-xr-x 1 root root 264004 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient_r.12.0.0 -rw-r--r-- 1 root root 362888 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient_r.a -rwxr-xr-x 1 root root 893 1\uffff\uffff 20 17:04 /usr/lib/mysql/libmysqlclient_r.la ================================================================================ # libmysqlclient.la - a libtool library file # Generated by ltmain.sh - GNU libtool 1.5.2 (1.1220.2.60 2004/01/25 12:25:08) # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libmysqlclient.12' # Names of this library. library_names='libmysqlclient.12.0.0 libmysqlclient.12 libmysqlclient' # The name of the static archive. old_library='libmysqlclient.a' # Libraries that this one depends upon. dependency_libs=' -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto' # Version information for libmysqlclient. current=12 age=0 revision=0 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/lib/mysql'
any problems with snort-2.3.0-r1?
if 2.3 is still a problem reopen.