From:             dsysko at genscape dot com
Operating system: Linux
PHP version:      5.4.6
Package:          Compile Failure
Bug Type:         Bug
Bug description:xp_ssl.c undefined reference to `SSLv2_client_method' and 
openssl 1.0.1c

Description:
------------
This is similar to bug 62656, but affects a different version (5.4.6) of
PHP.
URL for open bug:
https://bugs.php.net/bug.php?id=62656

I'm submitting a new bug since this affects a new major release version.

openssl-1.0.1c configured/compiled with:
--prefix=/usr/local --openssldir=/usr/local/openssl shared no-threads
linux-x86_64

Last few lines of output from make for php 5.4.6:

ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/home/dsysko/Desktop/sw_source/php-5.4.6/ext/openssl/xp_ssl.c:363:
undefined reference to `SSLv2_server_method'
/home/dsysko/Desktop/sw_source/php-5.4.6/ext/openssl/xp_ssl.c:338:
undefined reference to `SSLv2_client_method'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


Test script:
---------------
#Install openssl with:
cd openssl-1.0.1c/
./config --prefix=/usr/local --openssldir=/usr/local/openssl shared
no-threads linux-x86_64
make
make test
make install

#Configure and make php with:
#configure and install php:
cd php-5.4.6/
make clean; ./configure  --with-openssl
make

Expected result:
----------------
Continued and successful compile

Actual result:
--------------
Last few lines of output from make for php 5.4.6:

/bin/bash /home/dsysko/Desktop/sw_source/php-5.4.6/libtool --silent
--preserve-dup-deps --mode=link
/home/dsysko/Desktop/sw_source/php-5.4.6/meta_ccld -export-dynamic
-I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS 
-L/usr/lib/x86_64-linux-gnu -L/usr/local/lib  -R /usr/lib/x86_64-linux-gnu
-R /usr/local/lib ext/date/php_date.lo ext/date/lib/astro.lo
ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo
ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo
ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo
ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo
ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo
ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/openssl/openssl.lo
ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo
ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo
ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo
ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo
ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_info.lo
ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo
ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo
ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo
ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_valid_utf8.lo
ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo
ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo
ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo
ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/ctype/ctype.lo
ext/curl/interface.lo ext/curl/multi.lo ext/curl/streams.lo
ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo
ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo
ext/dom/namelist.lo ext/dom/processinginstruction.lo
ext/dom/cdatasection.lo ext/dom/documentfragment.lo
ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo
ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo
ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo
ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo
ext/dom/domimplementationsource.lo ext/dom/entityreference.lo
ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo
ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo
ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/fileinfo/fileinfo.lo
ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo
ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo
ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo
ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo
ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo
ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo
ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo
ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo
ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo
ext/filter/callback_filter.lo ext/gd/gd.lo ext/gd/libgd/gd.lo
ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo ext/gd/libgd/gd_io.lo
ext/gd/libgd/gd_io_dp.lo ext/gd/libgd/gd_io_file.lo ext/gd/libgd/gd_ss.lo
ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/webpimg.lo ext/gd/libgd/gd_webp.lo
ext/gd/libgd/gd_png.lo ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo
ext/gd/libgd/gdfontt.lo ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo
ext/gd/libgd/gdfontl.lo ext/gd/libgd/gdfontg.lo ext/gd/libgd/gdtables.lo
ext/gd/libgd/gdft.lo ext/gd/libgd/gdcache.lo ext/gd/libgd/gdkanji.lo
ext/gd/libgd/wbmp.lo ext/gd/libgd/gd_wbmp.lo ext/gd/libgd/gdhelpers.lo
ext/gd/libgd/gd_topal.lo ext/gd/libgd/gd_gif_in.lo ext/gd/libgd/xbm.lo
ext/gd/libgd/gd_gif_out.lo ext/gd/libgd/gd_security.lo
ext/gd/libgd/gd_filter.lo ext/gd/libgd/gd_pixelate.lo
ext/gd/libgd/gd_arc.lo ext/gd/libgd/gd_rotate.lo ext/gd/libgd/gd_color.lo
ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo
ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo
ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo
ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_fnv.lo
ext/hash/hash_joaat.lo ext/iconv/iconv.lo ext/json/json.lo
ext/json/utf8_to_utf16.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo
ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/pdo/pdo.lo
ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo
ext/pdo/pdo_sqlstate.lo ext/pdo_pgsql/pdo_pgsql.lo
ext/pdo_pgsql/pgsql_driver.lo ext/pdo_pgsql/pgsql_statement.lo
ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo
ext/pdo_sqlite/sqlite_statement.lo ext/pgsql/pgsql.lo ext/phar/util.lo
ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo
ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo
ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo
ext/reflection/php_reflection.lo ext/session/mod_user_class.lo
ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo
ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo
ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo
ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo
ext/soap/php_xml.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo
ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo
ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo
ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo
ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo
ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo
ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo
ext/standard/basic_functions.lo ext/standard/browscap.lo
ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo
ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo
ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo
ext/standard/filestat.lo ext/standard/flock_compat.lo
ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo
ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo
ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo
ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo
ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo
ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo
ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo
ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo
ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo
ext/standard/assert.lo ext/standard/strnatcmp.lo
ext/standard/levenshtein.lo ext/standard/incomplete_class.lo
ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo
ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo
ext/standard/credits.lo ext/standard/css.lo
ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo
ext/standard/user_filters.lo ext/standard/uuencode.lo
ext/standard/filters.lo ext/standard/proc_open.lo
ext/standard/streamsfuncs.lo ext/standard/http.lo ext/tidy/tidy.lo
ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo
ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo
ext/xmlwriter/php_xmlwriter.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo
ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo
ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo
ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo
ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo
ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo
ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo
ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo
ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo
ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo
ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo
ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo
ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo
ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo
ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo
ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo
ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo
ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo
ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo
ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo
ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo
ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo
ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo
ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo
ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo
ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo
ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo
ext/zip/lib/zip_fdopen.lo ext/zip/lib/zip_fopen_encrypted.lo
ext/zip/lib/zip_fopen_index_encrypted.lo
ext/zip/lib/zip_get_compression_implementation.lo
ext/zip/lib/zip_get_encryption_implementation.lo
ext/zip/lib/zip_get_file_extra.lo ext/zip/lib/zip_get_num_entries.lo
ext/zip/lib/zip_set_default_password.lo ext/zip/lib/zip_set_file_extra.lo
ext/zip/lib/zip_source_close.lo ext/zip/lib/zip_source_crc.lo
ext/zip/lib/zip_source_deflate.lo ext/zip/lib/zip_source_error.lo
ext/zip/lib/zip_source_layered.lo ext/zip/lib/zip_source_open.lo
ext/zip/lib/zip_source_pkware.lo ext/zip/lib/zip_source_pop.lo
ext/zip/lib/zip_source_read.lo ext/zip/lib/zip_source_stat.lo TSRM/TSRM.lo
TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo
main/snprintf.lo main/spprintf.lo main/php_sprintf.lo
main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo
main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo
main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo
main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo
main/php_logos.lo main/output.lo main/getopt.lo main/streams/streams.lo
main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo
main/streams/plain_wrapper.lo main/streams/userspace.lo
main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo
main/streams/glob_wrapper.lo Zend/zend_language_parser.lo
Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo
Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo
Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_dtrace.lo
Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo
Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo
Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo
Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo
Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo
Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo
Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo
Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo
Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo
Zend/zend_string.lo Zend/zend_signal.lo Zend/zend_objects.lo
Zend/zend_object_handlers.lo Zend/zend_objects_API.lo
Zend/zend_default_classes.lo Zend/zend_execute.lo
main/internal_functions_cli.lo sapi/cli/php_cli.lo
sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo -lcrypt -lz -ltidy
-lresolv -lcrypt -lpq -lrt -lpq -lpng -lz -lcurl -lz -lrt -lm -ldl -lnsl
-lxml2 -lssl -lcrypto -lcurl -lxml2 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2
-lxml2 -lcrypt  -o sapi/cli/php
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/home/dsysko/Desktop/sw_source/php-5.4.6/ext/openssl/xp_ssl.c:363:
undefined reference to `SSLv2_server_method'
/home/dsysko/Desktop/sw_source/php-5.4.6/ext/openssl/xp_ssl.c:338:
undefined reference to `SSLv2_client_method'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62958&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62958&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62958&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62958&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62958&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62958&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62958&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62958&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62958&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62958&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62958&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62958&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62958&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62958&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62958&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62958&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62958&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62958&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62958&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62958&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62958&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62958&r=mysqlcfg

Reply via email to