I am trying to build php-4.0.3pl1 on a Mac G4 running YellowDogLinux1.2. When I run the configure script "./configure --with-mysql --with-apxs" I see this error:
cpp: -lang-c: linker input file unused since linking not done
I also see this many times if I run make.
This is from config.log :
configure:1664: checking for gcc
configure:1777: checking whether the C compiler (gcc ) works
configure:1793: gcc -o conftest conftest.c 1>&5
cpp: -lang-c: linker input file unused since linking not done
configure:1819: checking whether the C compiler (gcc ) is a cross-compiler
configure:1824: checking whether we are using GNU C
configure:1833: gcc -E conftest.c
cpp: -lang-c: linker input file unused since linking not done
configure:1852: checking whether gcc accepts -g
configure:1884: checking how to run the C preprocessor
configure:1905: gcc -E conftest.c >/dev/null 2>conftest.out
cpp: -lang-c: linker input file unused since linking not done
configure: failed program was:
#line 1899 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1922: gcc -E -traditional-cpp conftest.c >/dev/null 2>conftest.out
cpp: -lang-c: linker input file unused since linking not done
configure: failed program was:
#line 1916 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
configure:1939: gcc -nologo -E conftest.c >/dev/null 2>conftest.out
gcc: unrecognized option `-nologo'
cpp: -lang-c: linker input file unused since linking not done
What makes this really wierd is that I am able to compile php easily on a PowerMac7500 running YellowDog1.2 with the same configure options.
Can anyone help?