Everything works well in my previous projects, I successfully recompiled them.
But when I try to recompile some libraries using autogen.sh, such as libTremor, SDL, libogg etc, the autogen.sh evil produced all the same error:
Code: Select all
configure: error: in `/opt/SVN/libTremor':
configure: error: C compiler cannot create executables
Code: Select all
configure:3115: $? = 0
configure:3104: psp-gcc -v >&5
Using built-in specs.
Target: psp
Configured with: ../configure --prefix=/opt/PSPDEV --target=psp --enable-languages=c,c++ --with-newlib --with-gmp --with-mpfr --enable-cxx-flags=-G0
Thread model: single
gcc version 4.3.2 (GCC)
configure:3115: $? = 0
configure:3104: psp-gcc -V >&5
psp-gcc: '-V' option must have argument
configure:3115: $? = 1
configure:3104: psp-gcc -qversion >&5
psp-gcc: unrecognized option '-qversion'
psp-gcc: no input files
configure:3115: $? = 1
configure:3137: checking for C compiler default output file name
configure:3159: psp-gcc -L/opt/PSPDEV/psp/sdk/lib -lc -lpspuser conftest.c >&5
/cygdrive/c/DOCUME~1/SPACEF~1/LOCALS~1/Temp/ccydd8Da.o: In function `main':
conftest.c:(.text+0x20): undefined reference to `fopen'
conftest.c:(.text+0x48): undefined reference to `fclose'
collect2: ld returned 1 exit status
configure:3163: $? = 1
configure:3200: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h. */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:3206: error: in `/opt/SVN/libTremor':
configure:3210: error: C compiler cannot create executables
See `config.log' for more details.
Foucus on this
Code: Select all
configure:3159: psp-gcc -L/opt/PSPDEV/psp/sdk/lib -lc -lpspuser conftest.c >&5
/cygdrive/c/DOCUME~1/SPACEF~1/LOCALS~1/Temp/ccydd8Da.o: In function `main':
conftest.c:(.text+0x20): undefined reference to `fopen'
conftest.c:(.text+0x48): undefined reference to `fclose'
I have seen similar problems on forums, but no one fits mine, can anyone help me? thx