php5 upgrade today

Mark Hattam mark at dxradio.demon.co.uk
Sat May 24 14:48:07 PDT 2008


At 16:07 -0500 24/5/08, Ryan Schmidt wrote:
>On May 24, 2008, at 15:29, Mark Hattam wrote:
>
>>At 15:17 -0500 24/5/08, Ryan Schmidt wrote:
>>
>>>On May 24, 2008, at 07:24, Mark Hattam wrote:
>>>
>>>>configure: error: C compiler cannot create executables
>>>>See `config.log' for more details.
>>>>
>>>>Error: The following dependencies failed to build: gd2 fontconfig
>>>>Error: Status 1 encountered during processing.
>>>
>>>hmmm. Well what does the config.log say? It'll be in `port dir 
>>>fontconfig`/work/fontconfig-2.5.0/config.log
>>
>>After a fair bit of searching ... the log is in
>>
>>/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.5.0/
>
>Like I said, it's in `port dir fontconfig`/work/fontconfig-2.5.0/config.log :)
>
>In other words, you can type this in the Terminal to change to that directory:
>
>cd `port dir fontconfig`/work/fontconfig-2.5.0
>
>Or you can type this to open the directory in the Finder:
>
>open `port dir fontconfig`/work/fontconfig-2.5.0


Hmm ... doesn't work ...

Powerbook:~ $ cd `port dir fontconfig`/work/fontconfig-2.5.0
-bash: cd: 
/opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/fontconfig/work/fontconfig-2.5.0: 
No such file or directory

That has a /sources/ in it, whereas the actual log is in /build/


>
>
>>Here it is ...
>
>[snip]
>
>>configure:2545: checking for gcc
>>configure:2572: result: /usr/bin/gcc-4.0
>>configure:2810: checking for C compiler version
>>configure:2817: /usr/bin/gcc-4.0 --version >&5
>>./configure: line 1: /usr/bin/gcc-4.0: No such file or directory
>>configure:2820: $? = 127
>>configure:2827: /usr/bin/gcc-4.0 -v >&5
>>./configure: line 1: /usr/bin/gcc-4.0: No such file or directory
>>configure:2830: $? = 127
>>configure:2837: /usr/bin/gcc-4.0 -V >&5
>>./configure: line 1: /usr/bin/gcc-4.0: No such file or directory
>>configure:2840: $? = 127
>>configure:2863: checking for C compiler default output file name
>>configure:2890: /usr/bin/gcc-4.0 -O2 -I/opt/local/include 
>>-L/opt/local/lib conftest.c
>>>&5
>>./configure: line 1: /usr/bin/gcc-4.0: No such file or directory
>
>Do you have /usr/bin/gcc-4.0? fontconfig seems to be unable to find 
>it. If you don't have it, did you install Xcode? If not, you need 
>it. If you did install Xcode, I can't explain the absence of 
>/usr/bin/gcc-4.0; try installing Xcode again. For Mac OS X 10.4, 
>make sure you use either Xcode 2.5 or 2.4.1 (nothing older).


I don't see a usr/bin/gcc-4.0 ...

Yes, I have installed XCode ...
/Library/Receipts has

X11Documentation.pkg    6 November 2007 02:40
X11SDK.pkg    6 November 2007 02:40
X11Update2006.pkg    Today 13:29
X11User.pkg    Today 11:33

Remember earlier you said for me to install the X11User as I had 
X11SDK already, but that was insufficient.

I've had MacPorts installed for ages ... MacPorts-1.4.0.pkg has a 
receipt 5 April 2007 22:32 ... and it's self-updated since then.

It was only a couple of weeks ago that I rebuilt php5 5.2.6 to 
additionally include the +sqlite variant and that worked. (Well it 
built and worked as php fine, just that I really wanted sqlite 3 
rather than sqlite 2) ... I still have Apache2 and MySQL5 and nano 
and subversion and ... other packages installed and working built by 
MacPorts.

So I really don't don't know what's happened. The only thing I've 
tried in MacPorts and that has failed anytime recently is this latest 
php5 port ... though I don't know why this has hosed my XCode.

However, I can try reinstalling XCode again and see if that makes it work ...



Mark


More information about the macports-users mailing list