| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| From: Laurenz Albe Subject: Re: building a .so (shared object) file Date: 05 Nov 2008 08:58:10 GMT Newsgroups: comp.unix.aix Message-ID: <1225875489.896410@proxy.dienste.wien.at> Mike Klein I am trying *to build php-5.2.6 on aix 6.1 using gcc 4.2.2 and cannot get it to generate libphp5.so. *Is there a way I can convert the .a and ..la files to a .so? Are you sure that you need that? On AIX, a *.a file may well be a shared library and can be used for dynamic linking. What is the result of "ar -t libphp5.a"? Yours, Laurenz Albe libxml.o pcre_chartables.o pcre_ucp_searchfuncs.o pcre_compile.o pcre_config.o pcre_exec.o pcre_fullinfo.o pcre_get.o pcre_globals.o pcre_info.o pcre_maketables.o pcre_newline.o pcre_ord2utf8.o pcre_refcount.o pcre_study.o pcre_tables.o pcre_try_flipped.o pcre_valid_utf8.o pcre_version.o pcre_xclass.o php_pcre.o calendar.o dow.o french.o gregor.o jewish.o julian.o easter.o cal_unix.o ctype.o php_date.o astro.o lt1-dow.o parse_date.o parse_tz.o timelib.o tm2unixtime.o unixtime2tm.o php_dom.o attr.o document.o domerrorhandler.o domstringlist.o domexception.o namelist.o processinginstruction.o cdatasection.o documentfragment.o domimplementation.o element.o node.o string_extend.o characterdata.o documenttype.o domimplementationlist.o entity.o nodelist.o text.o comment.o domconfiguration.o domimplementationsource.o entityreference.o notation.o xpath.o dom_iterators.o typeinfo.o domerror.o domlocator.o namednodemap.o userdatahandler.o filter.o sanitizing_filters.o logical_filters.o callback_filter.o gd.o gdttf.o gdcache.o hash.o hash_md.o hash_sha.o hash_ripemd.o hash_haval.o hash_tiger.o hash_gost.o hash_snefru.o hash_whirlpool.o hash_adler32.o hash_crc32.o iconv.o json.o utf8_to_utf16.o utf8_decode.o JSON_parser.o php_mysql.o posix.o php_reflection.o session.o mod_files.o mod_mm.o mod_user.o php_spl.o spl_functions.o spl_engine.o spl_iterators.o spl_array.o spl_directory.o spl_sxe.o spl_exceptions.o spl_observer.o sqlite.o sess_sqlite.o pdo_sqlite2.o opcodes.o parse.o parse.o encode.o auth.o btree.o build.o delete.o expr.o func.o lt2-hash.o insert.o main.o os.o pager.o printf.o random.o select.o table.o tokenize.o update.o util.o vdbe.o attach.o btree_rb.o pragma.o vacuum.o copy.o vdbeaux.o date.o where.o trigger.o regcomp.o regexec.o regerror.o regfree.o array.o base64.o basic_functions.o browscap.o crc32.o crypt.o cyr_convert.o datetime.o dir.o dl.o dns.o exec.o file.o filestat.o flock_compat.o formatted_print.o fsock.o head.o html.o image.o info.o iptc.o lcg.o link.o mail.o math.o md5.o metaphone.o microtime.o pack.o pageinfo.o quot_print.o rand.o reg.o soundex.o string.o scanf.o syslog.o type.o uniqid.o url.o url_scanner.o var.o versioning.o assert.o strnatcmp.o levenshtein.o incomplete_class.o url_scanner_ex.o ftp_fopen_wrapper.o http_fopen_wrapper.o php_fopen_wrapper.o credits.o css.o var_unserializer.o ftok.o sha1.o user_filters.o uuencode.o filters.o proc_open.o streamsfuncs.o http.o tokenizer.o tokenizer_data.o xml.o compat.o php_xmlreader.o php_xmlwriter.o TSRM.o tsrm_strtok_r.o tsrm_virtual_cwd.o lt3-main.o snprintf.o spprintf.o php_sprintf.o safe_mode.o fopen_wrappers.o alloca.o php_scandir.o php_ini.o SAPI.o rfc1867.o php_content_types.o strlcpy.o strlcat.o mergesort.o reentrancy.o php_variables.o php_ticks.o network.o php_open_temporary_file.o php_logos.o output.o streams.o cast.o memory.o lt4-filter.o plain_wrapper.o userspace.o transports.o xp_socket.o mmap.o zend_language_parser.o zend_language_scanner.o zend_ini_parser.o zend_ini_scanner.o zend_alloc.o zend_compile.o zend_constants.o zend_dynamic_array.o zend_execute_API.o zend_highlight.o zend_llist.o zend_opcode.o zend_operators.o zend_ptr_stack.o zend_stack.o zend_variables.o zend.o zend_API.o zend_extensions.o zend_hash.o zend_list.o zend_indent.o zend_builtin_functions.o zend_sprintf.o zend_ini.o zend_qsort.o zend_multibyte.o zend_ts_hash.o zend_stream.o zend_iterators.o zend_interfaces.o zend_exceptions.o zend_strtod.o zend_objects.o zend_object_handlers.o zend_objects_API.o zend_default_classes.o zend_execute.o mod_php5.o sapi_apache2.o apache_config.o php_functions.o internal_functions.o When I LoadModule and point to the .a, I get: root-at-backup:/usr/local/apache> bin/apachectl start httpd: Syntax error on line 67 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.a into server: \t0509-022 Cannot load module /usr/local/apache/modules/libphp5.a.\n\t0509-103 The module has an invalid magic number. root-at-backup:/usr/local/apache> |
|
#2
|
| Mike Klein > What is the result of "ar -t libphp5.a"? > > libxml.o > pcre_chartables.o > pcre_ucp_searchfuncs.o > pcre_compile.o [...] These don't look like shared objects, and it probably is really a static library. Gary explained it all elsewhere in this thread, and I can add nothing meaningful to that. Yours, Laurenz Albe |
![]() |
| Thread Tools | |
| Display Modes | |