Opened 13 years ago

Closed 13 years ago

#31750 closed defect (fixed)

apache2 +universal is not universal

Reported by: xavier.dagassan@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: apache2

Description

Hi,

I have a problem when i try to install the package for php 5.2 on my snow leopard with macport 2.0.3

When i try the command sudo port install php52 +apache2 +mysql5 +pear +universal or simply port install php52 i get an error (see the log attached to my ticket).

I don't know what to do, it's a clean new install of snow leopard. I've followed the guideline on http://www.jeffreyclarke.net/blog/2011/02/a-web-developmen-environment-on-snow-leopard/

But with no success... Thanks for any help or tricks to solve this problem!

Attachments (1)

main.log (2.2 MB) - added by xavier.dagassan@… 13 years ago.
main log

Change History (3)

Changed 13 years ago by xavier.dagassan@…

Attachment: main.log added

main log

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: php52 removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: apache2 added; php52 removed
Priority: HighNormal
Status: newassigned
Summary: php52 @5.2.17 unable to install php52 with macport on mac os x 10.6.8apache2 +universal is not universal

I see what the problem is:

:info:build /usr/bin/gcc-4.2 -pipe -O2 -arch x86_64 -arch i386 -fvisibility=hidden  -L/opt/local/lib  -Wl,-rpath,/opt/local/lib 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/ereg/ereg.o ext/ereg/regex/regcomp.o ext/ereg/regex/regexec.o ext/ereg/regex/regerror.o ext/ereg/regex/regfree.o ext/libxml/libxml.o ext/pcre/php_pcre.o ext/zlib/zlib.o ext/zlib/zlib_fopen_wrapper.o ext/zlib/zlib_filter.o ext/bcmath/bcmath.o ext/bcmath/libbcmath/src/add.o ext/bcmath/libbcmath/src/div.o ext/bcmath/libbcmath/src/init.o ext/bcmath/libbcmath/src/neg.o ext/bcmath/libbcmath/src/outofmem.o ext/bcmath/libbcmath/src/raisemod.o ext/bcmath/libbcmath/src/rt.o ext/bcmath/libbcmath/src/sub.o ext/bcmath/libbcmath/src/compare.o ext/bcmath/libbcmath/src/divmod.o ext/bcmath/libbcmath/src/int2num.o ext/bcmath/libbcmath/src/num2long.o ext/bcmath/libbcmath/src/output.o ext/bcmath/libbcmath/src/recmul.o ext/bcmath/libbcmath/src/sqrt.o ext/bcmath/libbcmath/src/zero.o ext/bcmath/libbcmath/src/debug.o ext/bcmath/libbcmath/src/doaddsub.o ext/bcmath/libbcmath/src/nearzero.o ext/bcmath/libbcmath/src/num2str.o ext/bcmath/libbcmath/src/raise.o ext/bcmath/libbcmath/src/rmzero.o ext/bcmath/libbcmath/src/str2num.o ext/bz2/bz2.o ext/bz2/bz2_filter.o ext/ctype/ctype.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_tar.o ext/fileinfo/libmagic/magic.o ext/fileinfo/libmagic/print.o ext/fileinfo/libmagic/readcdf.o ext/fileinfo/libmagic/readelf.o ext/fileinfo/libmagic/softmagic.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_salsa.o ext/json/json.o ext/json/utf8_to_utf16.o ext/json/utf8_decode.o ext/json/JSON_parser.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/phar/util.o ext/phar/tar.o ext/phar/zip.o ext/phar/stream.o ext/phar/func_interceptors.o ext/phar/dirstream.o ext/phar/phar.o ext/phar/phar_object.o ext/phar/phar_path_check.o ext/reflection/php_reflection.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/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/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/mysqlnd/mysqlnd.o ext/mysqlnd/mysqlnd_charset.o ext/mysqlnd/mysqlnd_wireprotocol.o ext/mysqlnd/mysqlnd_loaddata.o ext/mysqlnd/mysqlnd_net.o ext/mysqlnd/mysqlnd_statistics.o ext/mysqlnd/mysqlnd_result.o ext/mysqlnd/mysqlnd_result_meta.o ext/mysqlnd/mysqlnd_debug.o ext/mysqlnd/mysqlnd_block_alloc.o ext/mysqlnd/php_mysqlnd.o ext/mysqlnd/mysqlnd_ps.o ext/mysqlnd/mysqlnd_ps_codec.o TSRM/TSRM.o TSRM/tsrm_strtok_r.o TSRM/tsrm_virtual_cwd.o main/main.o main/snprintf.o main/spprintf.o main/php_sprintf.o main/safe_mode.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/mergesort.o main/reentrancy.o main/php_variables.o main/php_ticks.o main/network.o main/php_open_temporary_file.o main/php_logos.o main/output.o main/getopt.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_dynamic_array.o Zend/zend_execute_API.o Zend/zend_highlight.o Zend/zend_llist.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_indent.o Zend/zend_builtin_functions.o Zend/zend_sprintf.o Zend/zend_ini.o Zend/zend_qsort.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_float.o Zend/zend_objects.o Zend/zend_object_handlers.o Zend/zend_objects_API.o Zend/zend_default_classes.o Zend/zend_execute.o ext/readline/readline.o sapi/cli/php_cli.o sapi/cli/php_cli_readline.o main/internal_functions_cli.o  -lreadline -lncurses -lbz2 -lz -lpcre -lm -lresolv -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm  -o sapi/cli/php
:info:build Generating phar.php
:info:build ld: warning: in /opt/local/apache2/bin/httpd, file is not of required architecture

This shows you're trying to build php5 universal (for x86_64 and i386), but apache2 is not installed universal. Yet your output shows:

apache2 2.2.21_1 +preforkmpm+universal is active

And indeed on my system I can confirm:

$ port installed apache2
The following ports are currently installed:
  apache2 @2.2.21_1+preforkmpm+universal (active)
$ lipo -info /opt/local/apache2/bin/httpd
Non-fat file: /opt/local/apache2/bin/httpd is architecture: x86_64

I seem to have messed up apache2's universal build in r86196. I guess I have to not remove the -arch flags until post-build.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.