Opened 14 years ago
Closed 14 years ago
#27859 closed defect (fixed)
php5-imap build fails when build_arch is changed
Reported by: | tianseng@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ||
Port: | php5-imap |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
>>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
Attachments (2)
Change History (10)
Changed 14 years ago by tianseng@…
comment:1 Changed 14 years ago by tianseng@…
Cc: | tianseng@… added |
---|
comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | tianseng@… removed |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to ryandesign@… |
Status: | new → assigned |
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
Changed 14 years ago by tianseng@…
Attachment: | config.log added |
---|
comment:3 follow-up: 4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
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?
comment:4 follow-up: 5 Changed 14 years ago 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.
comment:5 follow-up: 6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | php5-imap Configure error - build failure → php5-imap build fails when build_arch is changed |
---|
Replying to 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.
comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to 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
comment:8 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Then we shall call it fixed! :)
Cc Me!