Re: Compiling PHP 7.4.27 on macOS 10.13
Sorry about the autocorrected subject of the mail !
Le jeu. 10 févr. 2022 à 22:07, arnaud <mpepito13@yahoo.fr> a écrit :
> Hello,
>
> I try to compile PHP 7.4.27 on MacOS 10.13.6 but I'm stuck with the kind
> of following error :
>
> Undefined symbols for architecture x86_64:
> "_ASN1_INTEGER_set_int64", referenced from:
> _zif_openssl_csr_sign in openssl.o
> [...lots and lots of errors...]
>
> and ultimately :
>
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make: *** [libs/libphp7.bundle] Error 1
>
> I've already read a lots of posts and tried various solutions (such as
> define CFLAGS, CPPFLAGS, LDFLAGS…) but I'm stuck and don't know where to
> look for.
>
> Some help would be really appreciated !
>
> The last command line executed is the following :
>
> cc
> -I/usr/include
> -I/Applications/Webserver/packages/zlib-1.2.11/include
> -I/Applications/Webserver/packages/jpeg-9d/include
> -I/Applications/Webserver/packages/libpng-1.6.37/include
> -I/Applications/Webserver/packages/libxml2-2.9.12/include/libxml2
> -I/Applications/Webserver/packages/libzip-1.8.0/include
> -I/Applications/Webserver/packages/openssl-1.1.1h/include
> -I/Applications/Webserver/packages/curl-7.81.0/include
> -fvisibility=hidden
> -pthread
> -Wall
> -Wno-strict-aliasing
> -DZTS
> -DZEND_SIGNALS
> -L/Applications/Webserver/libs
> -Wl,-rpath,/Applications/Webserver/libs
> ext/date/php_date.o
> ext/date/lib/astro.o
> ext/date/lib/dow.o
> ext/date/lib/parse_date.o
> ext/date/lib/parse_tz.o
> ext/date/lib/timelib.o
> ext/date/lib/tm2unixtime.o
> ext/date/lib/unixtime2tm.o
> ext/date/lib/parse_iso_intervals.o
> ext/date/lib/interval.o
> ext/libxml/libxml.o
> ext/openssl/openssl.o
> ext/openssl/xp_ssl.o
> ext/pcre/pcre2lib/pcre2_auto_possess.o
> ext/pcre/pcre2lib/pcre2_chartables.o
> ext/pcre/pcre2lib/pcre2_compile.o
> ext/pcre/pcre2lib/pcre2_config.o
> ext/pcre/pcre2lib/pcre2_context.o
> ext/pcre/pcre2lib/pcre2_dfa_match.o
> ext/pcre/pcre2lib/pcre2_error.o
> ext/pcre/pcre2lib/pcre2_jit_compile.o
> ext/pcre/pcre2lib/pcre2_maketables.o
> ext/pcre/pcre2lib/pcre2_match.o
> ext/pcre/pcre2lib/pcre2_match_data.o
> ext/pcre/pcre2lib/pcre2_newline.o
> ext/pcre/pcre2lib/pcre2_ord2utf.o
> ext/pcre/pcre2lib/pcre2_pattern_info.o
> ext/pcre/pcre2lib/pcre2_serialize.o
> ext/pcre/pcre2lib/pcre2_string_utils.o
> ext/pcre/pcre2lib/pcre2_study.o
> ext/pcre/pcre2lib/pcre2_substitute.o
> ext/pcre/pcre2lib/pcre2_substring.o
> ext/pcre/pcre2lib/pcre2_tables.o
> ext/pcre/pcre2lib/pcre2_ucd.o
> ext/pcre/pcre2lib/pcre2_valid_utf.o
> ext/pcre/pcre2lib/pcre2_xclass.o
> ext/pcre/pcre2lib/pcre2_find_bracket.o
> ext/pcre/pcre2lib/pcre2_convert.o
> ext/pcre/pcre2lib/pcre2_extuni.o
> ext/pcre/pcre2lib/pcre2_script_run.o
> ext/pcre/php_pcre.o
> ext/sqlite3/sqlite3.o
> ext/ctype/ctype.o
> ext/curl/interface.o
> ext/curl/multi.o
> ext/curl/share.o
> ext/curl/curl_file.o
> ext/dom/php_dom.o
> ext/dom/attr.o
> ext/dom/document.o
> ext/dom/domerrorhandler.o
> ext/dom/domstringlist.o
> ext/dom/domexception.o
> ext/dom/namelist.o
> ext/dom/processinginstruction.o
> ext/dom/cdatasection.o
> ext/dom/documentfragment.o
> ext/dom/domimplementation.o
> ext/dom/element.o
> ext/dom/node.o
> ext/dom/string_extend.o
> ext/dom/characterdata.o
> ext/dom/documenttype.o
> ext/dom/domimplementationlist.o
> ext/dom/entity.o
> ext/dom/nodelist.o
> ext/dom/text.o
> ext/dom/comment.o
> ext/dom/domconfiguration.o
> ext/dom/domimplementationsource.o
> ext/dom/entityreference.o
> ext/dom/notation.o
> ext/dom/xpath.o
> ext/dom/dom_iterators.o
> ext/dom/typeinfo.o
> ext/dom/domerror.o
> ext/dom/domlocator.o
> ext/dom/namednodemap.o
> ext/dom/userdatahandler.o
> ext/fileinfo/fileinfo.o
> ext/fileinfo/libmagic/apprentice.o
> ext/fileinfo/libmagic/apptype.o
> ext/fileinfo/libmagic/ascmagic.o
> ext/fileinfo/libmagic/cdf.o
> ext/fileinfo/libmagic/cdf_time.o
> ext/fileinfo/libmagic/compress.o
> ext/fileinfo/libmagic/encoding.o
> ext/fileinfo/libmagic/fsmagic.o
> ext/fileinfo/libmagic/funcs.o
> ext/fileinfo/libmagic/is_json.o
> ext/fileinfo/libmagic/is_tar.o
> ext/fileinfo/libmagic/magic.o
> ext/fileinfo/libmagic/print.o
> ext/fileinfo/libmagic/readcdf.o
> ext/fileinfo/libmagic/softmagic.o
> ext/fileinfo/libmagic/der.o
> ext/fileinfo/libmagic/buffer.o
> ext/filter/filter.o
> ext/filter/sanitizing_filters.o
> ext/filter/logical_filters.o
> ext/filter/callback_filter.o
> ext/hash/hash.o
> ext/hash/hash_md.o
> ext/hash/hash_sha.o
> ext/hash/hash_ripemd.o
> ext/hash/hash_haval.o
> ext/hash/hash_tiger.o
> ext/hash/hash_gost.o
> ext/hash/hash_snefru.o
> ext/hash/hash_whirlpool.o
> ext/hash/hash_adler32.o
> ext/hash/hash_crc32.o
> ext/hash/hash_fnv.o
> ext/hash/hash_joaat.o
> ext/hash/sha3/generic64lc/KeccakP-1600-opt64.o
> ext/hash/sha3/generic64lc/KeccakHash.o
> ext/hash/sha3/generic64lc/KeccakSponge.o
> ext/hash/hash_sha3.o
> ext/iconv/iconv.o
> ext/json/json.o
> ext/json/json_encoder.o
> ext/json/json_parser.o
> ext/json/json_scanner.o
> ext/pdo/pdo.o
> ext/pdo/pdo_dbh.o
> ext/pdo/pdo_stmt.o
> ext/pdo/pdo_sql_parser.o
> ext/pdo/pdo_sqlstate.o
> ext/pdo_sqlite/pdo_sqlite.o
> ext/pdo_sqlite/sqlite_driver.o
> ext/pdo_sqlite/sqlite_statement.o
> ext/posix/posix.o
> ext/reflection/php_reflection.o
> ext/session/mod_user_class.o
> ext/session/session.o
> ext/session/mod_files.o
> ext/session/mod_mm.o
> ext/session/mod_user.o
> ext/simplexml/simplexml.o
> ext/simplexml/sxe.o
> ext/spl/php_spl.o
> ext/spl/spl_functions.o
> ext/spl/spl_engine.o
> ext/spl/spl_iterators.o
> ext/spl/spl_array.o
> ext/spl/spl_directory.o
> ext/spl/spl_exceptions.o
> ext/spl/spl_observer.o
> ext/spl/spl_dllist.o
> ext/spl/spl_heap.o
> ext/spl/spl_fixedarray.o
> ext/standard/crypt_freesec.o
> ext/standard/crypt_blowfish.o
> ext/standard/crypt_sha512.o
> ext/standard/crypt_sha256.o
> ext/standard/php_crypt_r.o
> ext/standard/array.o
> ext/standard/base64.o
> ext/standard/basic_functions.o
> ext/standard/browscap.o
> ext/standard/crc32.o
> ext/standard/crypt.o
> ext/standard/cyr_convert.o
> ext/standard/datetime.o
> ext/standard/dir.o
> ext/standard/dl.o
> ext/standard/dns.o
> ext/standard/exec.o
> ext/standard/file.o
> ext/standard/filestat.o
> ext/standard/flock_compat.o
> ext/standard/formatted_print.o
> ext/standard/fsock.o
> ext/standard/head.o
> ext/standard/html.o
> ext/standard/image.o
> ext/standard/info.o
> ext/standard/iptc.o
> ext/standard/lcg.o
> ext/standard/link.o
> ext/standard/mail.o
> ext/standard/math.o
> ext/standard/md5.o
> ext/standard/metaphone.o
> ext/standard/microtime.o
> ext/standard/pack.o
> ext/standard/pageinfo.o
> ext/standard/quot_print.o
> ext/standard/rand.o
> ext/standard/mt_rand.o
> ext/standard/soundex.o
> ext/standard/string.o
> ext/standard/scanf.o
> ext/standard/syslog.o
> ext/standard/type.o
> ext/standard/uniqid.o
> ext/standard/url.o
> ext/standard/var.o
> ext/standard/versioning.o
> ext/standard/assert.o
> ext/standard/strnatcmp.o
> ext/standard/levenshtein.o
> ext/standard/incomplete_class.o
> ext/standard/url_scanner_ex.o
> ext/standard/ftp_fopen_wrapper.o
> ext/standard/http_fopen_wrapper.o
> ext/standard/php_fopen_wrapper.o
> ext/standard/credits.o
> ext/standard/css.o
> ext/standard/var_unserializer.o
> ext/standard/ftok.o
> ext/standard/sha1.o
> ext/standard/user_filters.o
> ext/standard/uuencode.o
> ext/standard/filters.o
> ext/standard/proc_open.o
> ext/standard/streamsfuncs.o
> ext/standard/http.o
> ext/standard/password.o
> ext/standard/random.o
> ext/standard/net.o
> ext/standard/hrtime.o
> ext/tokenizer/tokenizer.o
> ext/tokenizer/tokenizer_data.o
> ext/xml/xml.o
> ext/xml/compat.o
> ext/xmlreader/php_xmlreader.o
> ext/xmlwriter/php_xmlwriter.o
> ext/zip/php_zip.o
> ext/zip/zip_stream.o
> TSRM/TSRM.o
> main/main.o
> main/snprintf.o
> main/spprintf.o
> main/fopen_wrappers.o
> main/alloca.o
> main/php_scandir.o
> main/php_ini.o
> main/SAPI.o
> main/rfc1867.o
> main/php_content_types.o
> main/strlcpy.o
> main/strlcat.o
> main/explicit_bzero.o
> main/mergesort.o
> main/reentrancy.o
> main/php_variables.o
> main/php_ticks.o
> main/network.o
> main/php_open_temporary_file.o
> main/output.o
> main/getopt.o
> main/php_syslog.o
> main/streams/streams.o
> main/streams/cast.o
> main/streams/memory.o
> main/streams/filter.o
> main/streams/plain_wrapper.o
> main/streams/userspace.o
> main/streams/transports.o
> main/streams/xp_socket.o
> main/streams/mmap.o
> main/streams/glob_wrapper.o
> Zend/zend_language_parser.o
> Zend/zend_language_scanner.o
> Zend/zend_ini_parser.o
> Zend/zend_ini_scanner.o
> Zend/zend_alloc.o
> Zend/zend_compile.o
> Zend/zend_constants.o
> Zend/zend_dtrace.o
> Zend/zend_execute_API.o
> Zend/zend_highlight.o
> Zend/zend_llist.o
> Zend/zend_vm_opcodes.o
> Zend/zend_opcode.o
> Zend/zend_operators.o
> Zend/zend_ptr_stack.o
> Zend/zend_stack.o
> Zend/zend_variables.o
> Zend/zend.o
> Zend/zend_API.o
> Zend/zend_extensions.o
> Zend/zend_hash.o
> Zend/zend_list.o
> Zend/zend_builtin_functions.o
> Zend/zend_ini.o
> Zend/zend_sort.o
> Zend/zend_multibyte.o
> Zend/zend_ts_hash.o
> Zend/zend_stream.o
> Zend/zend_iterators.o
> Zend/zend_interfaces.o
> Zend/zend_exceptions.o
> Zend/zend_strtod.o
> Zend/zend_gc.o
> Zend/zend_closures.o
> Zend/zend_weakrefs.o
> Zend/zend_float.o
> Zend/zend_string.o
> Zend/zend_signal.o
> Zend/zend_generators.o
> Zend/zend_virtual_cwd.o
> Zend/zend_ast.o
> Zend/zend_objects.o
> Zend/zend_object_handlers.o
> Zend/zend_objects_API.o
> Zend/zend_default_classes.o
> Zend/zend_inheritance.o
> Zend/zend_smart_str.o
> Zend/zend_cpuinfo.o
> Zend/zend_execute.o
> main/internal_functions_cli.o
> main/fastcgi.o
> sapi/cgi/cgi_main.o
> -lresolv
> -liconv
> -liconv
> -lm
> -lpthread -o sapi/cgi/php-cgi
>
>
Thread (2 messages)