#29757: mysql5 fails with Xcode 4.2 --------------------------------------+------------------------------------- Reporter: thomas.visser@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: Port: mysql5 | --------------------------------------+------------------------------------- Comment(by macports@…): {{{ sudo port -v selfupdate }}} Failed because it couldn't find gcc-4.2. If you have a fix that would allow me to run selfupdate on 10.6.8 and XCode 4.2 I'd love to hear it. Since /usr/bin/gcc is gcc 4.2, I thought I'd try the hack I posted and it worked. I was dead in the water. The only information I can find on here related to this issue is "it works for me - issue closed", or "no it still doesnt work" from 4 months ago. This fix worked for me. {{{ monster:~ jamie$ /usr/bin/gcc -v Using built-in specs. Target: i686-apple-darwin10 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/src/configure --disable- checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program- prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with- slibdir=/usr/lib --build=i686-apple-darwin10 --enable- llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/dst- llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx- include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) }}} -- Ticket URL: <https://trac.macports.org/ticket/29757#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS