[MacPorts] #27859: php5-imap Configure error - build failure
#27859: php5-imap Configure error - build failure --------------------------------+------------------------------------------- Reporter: tianseng@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: php5-imap --------------------------------+-------------------------------------------
sudo port install php5-imap ---> Computing dependencies for php5-imap ---> Configuring php5-imap Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details) Log for php5-imap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-imap/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
I'm attaching the log file -- Ticket URL: <https://trac.macports.org/ticket/27859> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27859: php5-imap Configure error - build failure --------------------------------+------------------------------------------- Reporter: tianseng@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: php5-imap --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => assigned * cc: tianseng@… (removed) * owner: macports-tickets@… => ryandesign@… Old description:
sudo port install php5-imap ---> Computing dependencies for php5-imap ---> Configuring php5-imap Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details) Log for php5-imap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-imap/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
I'm attaching the log file
New description: {{{
sudo port install php5-imap ---> Computing dependencies for php5-imap ---> Configuring php5-imap Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details) Log for php5-imap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-imap/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}}
I'm attaching the log file -- Comment: Please use WikiFormatting. You don't need to Cc yourself. Please do Cc the port's maintainer (that's me). The relevant lines in the log seem to be: {{{ :info:configure checking whether build with IMAP works... no :info:configure configure: error: build test failed. Please check the config.log for details. }}} Could you please attach the config.log? It should be somewhere inside the directory identified by the command `port work php5-imap` -- Ticket URL: <https://trac.macports.org/ticket/27859#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27859: php5-imap Configure error - build failure --------------------------------+------------------------------------------- Reporter: tianseng@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: php5-imap --------------------------------+------------------------------------------- Comment(by ryandesign@…): Ok, the interesting thing in the config.log is: {{{ ld: warning: in /opt/local/lib/libc-client4.a, file was built for unsupported file format which is not the architecture being linked (i386) }}} For what architecture was /opt/local/lib/libc-client4.a built, if not for i386? You can find out with: {{{ lipo -info /opt/local/lib/libc-client4.a }}} And why are you building php5-imap for i386? Does your computer only support i386 (i.e. has an Intel Core (and not Core 2) processor), or have you deliberately switched `build_arch` to `i386` in macports.conf? -- Ticket URL: <https://trac.macports.org/ticket/27859#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27859: php5-imap Configure error - build failure --------------------------------+------------------------------------------- Reporter: tianseng@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: php5-imap --------------------------------+------------------------------------------- Comment(by tianseng@…): I deliberately changed build_arch to i386 since i needed python27 & MySQL to be built for i386 due to compatibility issues with MySQLdb. {{{ $ lipo -info /opt/local/lib/libc-client4.a input file /opt/local/lib/libc-client4.a is not a fat file Non-fat file: /opt/local/lib/libc-client4.a is architecture: x86_64 }}} Is there a way for me to build php5 and its extensions for x64 ? Thanks for your help so far. -- Ticket URL: <https://trac.macports.org/ticket/27859#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27859: php5-imap build fails when build_arch is changed --------------------------------+------------------------------------------- Reporter: tianseng@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: php5-imap --------------------------------+------------------------------------------- Comment(by ryandesign@…): Replying to [comment:4 tianseng@…]:
I deliberately changed build_arch to i386 since i needed python27 & MySQL to be built for i386 due to compatibility issues with MySQLdb. {{{ $ lipo -info /opt/local/lib/libc-client4.a input file /opt/local/lib/libc-client4.a is not a fat file Non-fat file: /opt/local/lib/libc-client4.a is architecture: x86_64 }}}
Ok, that explains it. cclient was built for x86_64, so logically php5-imap cannot be built for i386 against that. Also, cclient does not currently support having its build_arch changed; I filed #27867 for that. You won't be able to rebuild cclient for i386 until that's fixed.
Is there a way for me to build php5 and its extensions for x64 ?
To do that, you would set build_arch back to x86_64 in macports.conf. Could you elaborate on why you wanted to change build_arch to i386? I'm not aware of any problems running MySQL on x86_64; it seems to work fine for me. -- Ticket URL: <https://trac.macports.org/ticket/27859#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27859: php5-imap build fails when build_arch is changed --------------------------------+------------------------------------------- Reporter: tianseng@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: php5-imap --------------------------------+------------------------------------------- Comment(by ryandesign@…): Replying to [comment:5 ryandesign@…]:
cclient does not currently support having its build_arch changed; I filed #27867 for that. You won't be able to rebuild cclient for i386 until that's fixed.
Fixed this, so you could now rebuild cclient for i386 and thus then build php5-imap for i386: {{{ sudo port clean cclient sudo port -n upgrade --force cclient }}} -- Ticket URL: <https://trac.macports.org/ticket/27859#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27859: php5-imap build fails when build_arch is changed --------------------------------+------------------------------------------- Reporter: tianseng@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: php5-imap --------------------------------+------------------------------------------- Comment(by tianseng@…): thank you! that worked -- Ticket URL: <https://trac.macports.org/ticket/27859#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27859: php5-imap build fails when build_arch is changed ---------------------------------+------------------------------------------ Reporter: tianseng@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: php5-imap | ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Then we shall call it fixed! :) -- Ticket URL: <https://trac.macports.org/ticket/27859#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts