error while configure SDL for psptoolchain

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
mene
Posts: 2
Joined: Wed Oct 14, 2009 2:18 am

error while configure SDL for psptoolchain

Post by mene »

Hey, I always get this error while configure the SDL for psptoolchain with cygwin under windows:

the error (part of config.log)

Code: Select all

configure:3916: psp-gcc   -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser conftest.c  >&5
/cygdrive/c/Users/Florian/AppData/Local/Temp/cc98EsgD.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:3920: $? = 1
configure:3957: result: 
configure: failed program was:
| /* confdefs.h */
the whole config.log

Code: Select all

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ ./configure --host psp --prefix=/usr/local/pspdev/psp

## --------- ##
## Platform. ##
## --------- ##

hostname = Florian-Laptop
uname -m = i686
uname -r = 1.5.25(0.156/4/2)
uname -s = CYGWIN_NT-6.1
uname -v = 2008-06-12 19:34

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/c/Windows/system32
PATH: /cygdrive/c/Windows
PATH: /cygdrive/c/Windows/System32/Wbem
PATH: /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0/
PATH: /cygdrive/c/Program Files/QuickTime/QTSystem/
PATH: /cygdrive/c/Program Files/Common Files/DivX Shared/
PATH: /cygdrive/c/Program Files/TortoiseHg
PATH: /usr/local/pspdev/bin
PATH: /usr/local/pspdev/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2896: checking build system type
configure:2910: result: i686-pc-cygwin
configure:2930: checking host system type
configure:2943: result: mipsallegrexel-psp-elf
configure:2963: checking target system type
configure:2976: result: mipsallegrexel-psp-elf
configure:3020: checking for a BSD-compatible install
configure:3088: result: /usr/bin/install -c
configure:3099: checking whether build environment is sane
configure:3149: result: yes
configure:3198: checking for psp-strip
configure:3214: found /usr/local/pspdev/bin/psp-strip
configure:3225: result: psp-strip
configure:3290: checking for a thread-safe mkdir -p
configure:3329: result: /usr/bin/mkdir -p
configure:3342: checking for gawk
configure:3358: found /usr/bin/gawk
configure:3369: result: gawk
configure:3380: checking whether make sets $(MAKE)
configure:3402: result: yes
configure:3498: checking for style of include used by make
configure:3526: result: GNU
configure:3556: checking for psp-gcc
configure:3572: found /usr/local/pspdev/bin/psp-gcc
configure:3583: result: psp-gcc
configure:3852: checking for C compiler version
configure:3861: psp-gcc --version >&5
psp-gcc (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3872: $? = 0
configure:3861: psp-gcc -v >&5
Using built-in specs.
Target: psp
Configured with: ../configure --prefix=/usr/local/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:3872: $? = 0
configure:3861: psp-gcc -V >&5
psp-gcc: '-V' option must have argument
configure:3872: $? = 1
configure:3861: psp-gcc -qversion >&5
psp-gcc: unrecognized option '-qversion'
psp-gcc: no input files
configure:3872: $? = 1
configure:3894: checking for C compiler default output file name
configure:3916: psp-gcc   -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser conftest.c  >&5
/cygdrive/c/Users/Florian/AppData/Local/Temp/cc98EsgD.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:3920: $? = 1
configure:3957: 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 "SDL"
| #define VERSION "1.2.9"
| /* end confdefs.h.  */
| #include <stdio.h>
| int
| main &#40;&#41;
| &#123;
| FILE *f = fopen &#40;"conftest.out", "w"&#41;;
|  return ferror &#40;f&#41; || fclose &#40;f&#41; != 0;
| 
|   ;
|   return 0;
| &#125;
configure&#58;3963&#58; error&#58; in `/home/Florian/SDL'&#58;
configure&#58;3967&#58; error&#58; C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-cygwin
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=psp
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=mipsallegrexel-psp-elf
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=psp-gcc
ac_cv_prog_STRIP=psp-strip
ac_cv_prog_make_make_set=yes
ac_cv_target=mipsallegrexel-psp-elf

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='$&#123;SHELL&#125; /home/Florian/SDL/missing --run aclocal-1.11'
ALLOCA=''
ALSA_CFLAGS=''
ALSA_LIBS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$&#123;SHELL&#125; /home/Florian/SDL/missing --run tar'
AR=''
ARCH=''
ARTSCCONFIG=''
AS=''
ASFLAGS=''
AUDIO_DRIVERS=''
AUDIO_SUBDIRS=''
AUTOCONF='$&#123;SHELL&#125; /home/Florian/SDL/missing --run autoconf'
AUTOHEADER='$&#123;SHELL&#125; /home/Florian/SDL/missing --run autoheader'
AUTOMAKE='$&#123;SHELL&#125; /home/Florian/SDL/missing --run automake-1.11'
AWK='gawk'
CC='psp-gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CDROM_DRIVERS=''
CDROM_SUBDIRS=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='cygpath -w'
DEFS=''
DEPDIR='.deps'
DIRECTFB_CFLAGS=''
DIRECTFB_LIBS=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_SHARED_FALSE=''
ENABLE_SHARED_TRUE=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
ESD_CFLAGS=''
ESD_CONFIG=''
ESD_LIBS=''
EXEEXT=''
F77=''
FFLAGS=''
GREP=''
HAVE_NASM_FALSE=''
HAVE_NASM_TRUE=''
INSTALL_DATA='$&#123;INSTALL&#125; -m 644'
INSTALL_PROGRAM='$&#123;INSTALL&#125;'
INSTALL_SCRIPT='$&#123;INSTALL&#125;'
INSTALL_STRIP_PROGRAM='$&#40;install_sh&#41; -c -s'
JOYSTICK_DRIVERS=''
JOYSTICK_SUBDIRS=''
LDFLAGS='-L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
LT_AGE='7'
LT_CURRENT='7'
LT_RELEASE='1.2'
LT_REVISION='2'
MAKEINFO='$&#123;SHELL&#125; /home/Florian/SDL/missing --run makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
NASM=''
NASMFLAGS=''
OBJC=''
OBJCDEPMODE=''
OBJCFLAGS=''
OBJDUMP=''
OBJEXT=''
OSMESA_CONFIG=''
PACKAGE='SDL'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR='&#58;'
PKG_CONFIG=''
PTH_CONFIG=''
RANLIB=''
SDL_BINARY_AGE='9'
SDL_CFLAGS=''
SDL_EXTRADIRS=''
SDL_EXTRALIBS=''
SDL_INTERFACE_AGE='2'
SDL_LIBS=''
SDL_MAJOR_VERSION='1'
SDL_MICRO_VERSION='9'
SDL_MINOR_VERSION='2'
SDL_RLD_FLAGS=''
SDL_STATIC_LIBS=''
SDL_VERSION='1.2.9'
SET_MAKE=''
SHARED_SYSTEM_LIBS=''
SHELL='/bin/sh'
STATIC_SYSTEM_LIBS=''
STRIP='psp-strip'
SYSTEM_LIBS=''
TARGET_AIX_FALSE=''
TARGET_AIX_TRUE=''
TARGET_BEOS_FALSE=''
TARGET_BEOS_TRUE=''
TARGET_BSDI_FALSE=''
TARGET_BSDI_TRUE=''
TARGET_FREEBSD_FALSE=''
TARGET_FREEBSD_TRUE=''
TARGET_IRIX_FALSE=''
TARGET_IRIX_TRUE=''
TARGET_LINUX_FALSE=''
TARGET_LINUX_TRUE=''
TARGET_MACOSX_FALSE=''
TARGET_MACOSX_TRUE=''
TARGET_MACOS_FALSE=''
TARGET_MACOS_TRUE=''
TARGET_MINT_FALSE=''
TARGET_MINT_TRUE=''
TARGET_NETBSD_FALSE=''
TARGET_NETBSD_TRUE=''
TARGET_OPENBSD_FALSE=''
TARGET_OPENBSD_TRUE=''
TARGET_PSP_FALSE=''
TARGET_PSP_TRUE=''
TARGET_QNX_FALSE=''
TARGET_QNX_TRUE=''
TARGET_QTOPIA_FALSE=''
TARGET_QTOPIA_TRUE=''
TARGET_SOLARIS_FALSE=''
TARGET_SOLARIS_TRUE=''
TARGET_WIN32_FALSE=''
TARGET_WIN32_TRUE=''
USE_CLONE_FALSE=''
USE_CLONE_TRUE=''
USE_DIRECTX_FALSE=''
USE_DIRECTX_TRUE=''
VERSION='1.2.9'
VIDEO_DRIVERS=''
VIDEO_SUBDIRS=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
alsa_lib=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__fastdepOBJC_FALSE=''
am__fastdepOBJC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='$&#123;AMTAR&#125; chof - "$$tardir"'
am__untar='$&#123;AMTAR&#125; xf -'
arts_lib=''
bindir='$&#123;exec_prefix&#125;/bin'
build='i686-pc-cygwin'
build_alias=''
build_cpu='i686'
build_os='cygwin'
build_vendor='pc'
datadir='$&#123;datarootdir&#125;'
datarootdir='$&#123;prefix&#125;/share'
docdir='$&#123;datarootdir&#125;/doc/$&#123;PACKAGE&#125;'
dvidir='$&#123;docdir&#125;'
esd_lib=''
exec_prefix='NONE'
host='mipsallegrexel-psp-elf'
host_alias='psp'
host_cpu='mipsallegrexel'
host_os='elf'
host_vendor='psp'
htmldir='$&#123;docdir&#125;'
includedir='$&#123;prefix&#125;/include'
infodir='$&#123;datarootdir&#125;/info'
install_sh='$&#123;SHELL&#125; /home/Florian/SDL/install-sh'
libdir='$&#123;exec_prefix&#125;/lib'
libexecdir='$&#123;exec_prefix&#125;/libexec'
localedir='$&#123;datarootdir&#125;/locale'
localstatedir='$&#123;prefix&#125;/var'
mandir='$&#123;datarootdir&#125;/man'
mkdir_p='/usr/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='$&#123;docdir&#125;'
prefix='/usr/local/pspdev/psp'
program_transform_name='s,x,x,'
psdir='$&#123;docdir&#125;'
psp_config=''
sbindir='$&#123;exec_prefix&#125;/sbin'
sharedstatedir='$&#123;prefix&#125;/com'
sysconfdir='$&#123;prefix&#125;/etc'
target='mipsallegrexel-psp-elf'
target_alias=''
target_cpu='mipsallegrexel'
target_os='elf'
target_vendor='psp'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "SDL"
#define VERSION "1.2.9"

configure&#58; exit 77
I searched for this error on google but often it wasn't the same and the solutions didn't work too. What is the problem and what can I do to resolve it. I think there's no problem with the cygwin1.dll or cygwin itselfs.

I configure the SDL with:

Code: Select all

LDFLAGS="-L$&#40;psp-config --pspsdk-path&#41;/lib -lc -lpspuser" \
     ./configure --host psp --prefix=$&#40;psp-config --psp-prefix&#41; 
I got this from the README.PSP in the SDL root. Hope you can help me.

mene
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

Don't use cygwin use minpspw

Code: Select all

int main&#40;&#41;&#123;
     SetupCallbacks&#40;&#41;;
     makeNiceGame&#40;&#41;;
     sceKernelExitGame&#40;&#41;;
&#125;
mene
Posts: 2
Joined: Wed Oct 14, 2009 2:18 am

Post by mene »

hey thanks for your advice :)
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Post Reply