php didn't compile with the use flag 'ssl' :/ I've seen the bug #304281, but the patch does not remove my bug. How can I help you for resolve this bug ? Thx. Reproducible: Always Steps to Reproduce: 1. emerge -p php Actual Results: Here is the end of build.log : ext/openssl/openssl.o: In function `zm_startup_openssl': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:677: undefined reference to `SSL_library_init' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:688: undefined reference to `SSL_get_ex_new_index' ext/openssl/openssl.o: In function `verify_callback': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3787: undefined reference to `SSL_get_ex_data_X509_STORE_CTX_idx' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3788: undefined reference to `SSL_get_ex_data' ext/openssl/openssl.o: In function `php_openssl_apply_verification_policy': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3828: undefined reference to `SSL_get_verify_result' ext/openssl/openssl.o: In function `php_SSL_new_from_context': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3918: undefined reference to `SSL_CTX_set_verify' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3925: undefined reference to `SSL_CTX_load_verify_locations' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3933: undefined reference to `SSL_CTX_set_verify_depth' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3936: undefined reference to `SSL_CTX_set_verify' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3941: undefined reference to `SSL_CTX_set_default_passwd_cb_userdata' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3942: undefined reference to `SSL_CTX_set_default_passwd_cb' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3949: undefined reference to `SSL_CTX_set_cipher_list' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3960: undefined reference to `SSL_CTX_use_certificate_chain_file' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3965: undefined reference to `SSL_CTX_use_PrivateKey_file' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3970: undefined reference to `SSL_new' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3971: undefined reference to `SSL_get_certificate' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3975: undefined reference to `SSL_get_privatekey' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3978: undefined reference to `SSL_free' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3980: undefined reference to `SSL_CTX_check_private_key' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3986: undefined reference to `SSL_new' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/openssl.c:3990: undefined reference to `SSL_set_ex_data' ext/openssl/xp_ssl.o: In function `handle_ssl_error': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:91: undefined reference to `SSL_get_error' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:117: undefined reference to `SSL_set_shutdown' ext/openssl/xp_ssl.o: In function `php_openssl_sockop_write': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:195: undefined reference to `SSL_write' ext/openssl/xp_ssl.o: In function `php_openssl_sockop_read': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:227: undefined reference to `SSL_read' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:231: undefined reference to `SSL_pending' ext/openssl/xp_ssl.o: In function `php_openssl_sockop_close': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:264: undefined reference to `SSL_shutdown' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:268: undefined reference to `SSL_free' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:272: undefined reference to `SSL_CTX_free' ext/openssl/xp_ssl.o: In function `php_openssl_sockop_set_option': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:641: undefined reference to `SSL_peek' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:643: undefined reference to `SSL_get_error' ext/openssl/xp_ssl.o: In function `php_openssl_setup_crypto': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:333: undefined reference to `SSLv23_client_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:337: undefined reference to `SSLv2_client_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:341: undefined reference to `SSLv3_client_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:345: undefined reference to `TLSv1_client_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:349: undefined reference to `SSLv23_server_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:353: undefined reference to `SSLv3_server_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:357: undefined reference to `SSLv2_server_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:361: undefined reference to `TLSv1_server_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:368: undefined reference to `SSL_CTX_new' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:374: undefined reference to `SSL_CTX_ctrl' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:379: undefined reference to `SSL_CTX_free' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:384: undefined reference to `SSL_set_fd' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:392: undefined reference to `SSL_copy_session_id' ext/openssl/xp_ssl.o: In function `php_openssl_enable_crypto': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:411: undefined reference to `SSL_set_connect_state' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:413: undefined reference to `SSL_set_accept_state' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:427: undefined reference to `SSL_connect' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:436: undefined reference to `SSL_accept' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:453: undefined reference to `SSL_get_peer_certificate' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:456: undefined reference to `SSL_shutdown' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:487: undefined reference to `SSL_get_peer_cert_chain' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/openssl/xp_ssl.c:529: undefined reference to `SSL_shutdown' ext/ftp/ftp.o: In function `ftp_close': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:184: undefined reference to `SSL_shutdown' ext/ftp/ftp.o: In function `ftp_login': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:276: undefined reference to `SSLv23_client_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:276: undefined reference to `SSL_CTX_new' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:282: undefined reference to `SSL_CTX_ctrl' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:284: undefined reference to `SSL_new' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:287: undefined reference to `SSL_CTX_free' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:291: undefined reference to `SSL_set_fd' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:293: undefined reference to `SSL_connect' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:295: undefined reference to `SSL_shutdown' ext/ftp/ftp.o: In function `my_send': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1248: undefined reference to `SSL_write' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1250: undefined reference to `SSL_write' ext/ftp/ftp.o: In function `my_recv': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1288: undefined reference to `SSL_read' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1290: undefined reference to `SSL_read' ext/ftp/ftp.o: In function `data_accept': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1515: undefined reference to `SSLv23_client_method' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1515: undefined reference to `SSL_CTX_new' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1521: undefined reference to `SSL_CTX_ctrl' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1523: undefined reference to `SSL_new' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1526: undefined reference to `SSL_CTX_free' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1531: undefined reference to `SSL_set_fd' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1534: undefined reference to `SSL_copy_session_id' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1537: undefined reference to `SSL_connect' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1539: undefined reference to `SSL_shutdown' ext/ftp/ftp.o: In function `data_close': /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1563: undefined reference to `SSL_shutdown' /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/ext/ftp/ftp.c:1572: undefined reference to `SSL_shutdown' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 ^[[31;01m*^[[0m ERROR: dev-lang/php-5.2.12 failed: ^[[31;01m*^[[0m make failed ^[[31;01m*^[[0m ^[[31;01m*^[[0m Call stack: ^[[31;01m*^[[0m ebuild.sh, line 54: Called src_compile ^[[31;01m*^[[0m environment, line 4843: Called src_compile_normal ^[[31;01m*^[[0m environment, line 4962: Called php5_2-sapi_src_compile ^[[31;01m*^[[0m environment, line 3869: Called die ^[[31;01m*^[[0m The specific snippet of code: ^[[31;01m*^[[0m emake || die "make failed" ^[[31;01m*^[[0m ^[[31;01m*^[[0m If you need support, post the output of 'emerge --info =dev-lang/php-5.2.12', ^[[31;01m*^[[0m the complete build log and the output of 'emerge -pqv =dev-lang/php-5.2.12'. ^[[31;01m*^[[0m The complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.12/temp/build.log'. ^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.12/temp/environment'. ^[[31;01m*^[[0m S: '/var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12' Here's my emerge info : Portage 2.1.7.17 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31.6 i686) ================================================================= System uname: Linux-2.6.31.6-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-1.12.13 Timestamp of tree: Tue, 09 Mar 2010 09:00:01 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4-r1 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LC_ALL="en_US" LDFLAGS="-Wl,-O1" LINGUAS="fr" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi bash-completion bzip2 cli cracklib crypt cxx dri gdbm gpm hal iconv modules mudflap nls nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd userlocales x86 xinerama xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
emerge -pv openssl output?
These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-libs/openssl-0.9.8m USE="zlib -bindist -gmp -kerberos -sse2 -test" 3,680 kB Total: 1 package (1 reinstall), Size of downloads: 3,680 kB
With the openssl version, i just saw that the patch of the bug #304281 is not for me: ( But this doesn't solve my problem :/
The bug's fixed for me with the upgrade of openssl (0.9.8n)