$ make
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk
/include -O2 -G0 -Wall -L. -L/usr/local/pspdev/psp/sdk/lib main.o -lpng -lz -
lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lpspnet -lpspne
t_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o sc
reenshot.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): In
function `png_warning':
pngerror.c:(.text+0x14c): undefined reference to `_impure_ptr'
pngerror.c:(.text+0x14c): relocation truncated to fit: R_MIPS_GPREL16 against `_
impure_ptr'
pngerror.c:(.text+0x1a8): undefined reference to `_impure_ptr'
pngerror.c:(.text+0x1a8): relocation truncated to fit: R_MIPS_GPREL16 against `_
impure_ptr'
pngerror.c:(.text+0x1ac): undefined reference to `_impure_ptr'
pngerror.c:(.text+0x1ac): relocation truncated to fit: R_MIPS_GPREL16 against `_
impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): In
function `png_error':
pngerror.c:(.text+0x2a8): undefined reference to `_impure_ptr'
pngerror.c:(.text+0x2a8): relocation truncated to fit: R_MIPS_GPREL16 against `_
impure_ptr'
pngerror.c:(.text+0x310): undefined reference to `_impure_ptr'
pngerror.c:(.text+0x310): relocation truncated to fit: R_MIPS_GPREL16 against `_
impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o):png
error.c:(.text+0x314): more undefined references to `_impure_ptr' follow
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): In
function `png_error':
pngerror.c:(.text+0x314): relocation truncated to fit: R_MIPS_GPREL16 against `_
impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): In
function `png_handle_gAMA':
pngrutil.c:(.text+0xd08): relocation truncated to fit: R_MIPS_GPREL16 against `_
impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): In
function `png_handle_cHRM':
pngrutil.c:(.text+0x1470): relocation truncated to fit: R_MIPS_GPREL16 against `
_impure_ptr'
pngrutil.c:(.text+0x14e0): relocation truncated to fit: R_MIPS_GPREL16 against `
_impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): In
function `png_handle_sRGB':
pngrutil.c:(.text+0x1790): relocation truncated to fit: R_MIPS_GPREL16 against `
_impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwrite.o): In
function `png_convert_from_time_t':
pngwrite.c:(.text+0xac4): undefined reference to `gmtime'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In
function `png_write_cHRM':
pngwutil.c:(.text+0x1120): undefined reference to `_impure_ptr'
pngwutil.c:(.text+0x1120): additional relocation overflows omitted from the outp
ut
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In
function `png_write_cHRM_fixed':
pngwutil.c:(.text+0x16dc): undefined reference to `_impure_ptr'
collect2: ld returned 1 exit status
make: *** [screenshot.elf] Error 1
$ make
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk
/include -O2 -G0 -Wall -fno-strict-aliasing -c -o main.o main.c
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk
/include -O2 -G0 -Wall -fno-strict-aliasing -c -o console.o console.c
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk
/include -O2 -G0 -Wall -fno-strict-aliasing -c -o common.o common.c
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk
/include -O2 -G0 -Wall -fno-strict-aliasing -c -o libs/framebuffer.o libs/fram
ebuffer.c
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk
/include -O2 -G0 -Wall -fno-strict-aliasing -c -o libs/graphics.o libs/graphic
s.c
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk
/include -O2 -G0 -Wall -fno-strict-aliasing -L. -L/usr/local/pspdev/psp/sdk/lib
main.o console.o common.o libs/framebuffer.o libs/graphics.o -lpspgu -lpng -l
z -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lpspnet -lps
pnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o
WArena+.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): En
la función `png_warning':
pngerror.c:(.text+0x14c): referencia a `_impure_ptr' sin definir
pngerror.c:(.text+0x14c): reubicación truncada para ajustar: R_MIPS_GPREL16 cont
ra `_impure_ptr'
pngerror.c:(.text+0x1a8): referencia a `_impure_ptr' sin definir
pngerror.c:(.text+0x1a8): reubicación truncada para ajustar: R_MIPS_GPREL16 cont
ra `_impure_ptr'
pngerror.c:(.text+0x1ac): referencia a `_impure_ptr' sin definir
pngerror.c:(.text+0x1ac): reubicación truncada para ajustar: R_MIPS_GPREL16 cont
ra `_impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): En
la función `png_error':
pngerror.c:(.text+0x2a8): referencia a `_impure_ptr' sin definir
pngerror.c:(.text+0x2a8): reubicación truncada para ajustar: R_MIPS_GPREL16 cont
ra `_impure_ptr'
pngerror.c:(.text+0x310): referencia a `_impure_ptr' sin definir
pngerror.c:(.text+0x310): reubicación truncada para ajustar: R_MIPS_GPREL16 cont
ra `_impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o):png
error.c:(.text+0x314): más referencias a `_impure_ptr' sin definir a continuació
n
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): En
la función `png_error':
pngerror.c:(.text+0x314): reubicación truncada para ajustar: R_MIPS_GPREL16 cont
ra `_impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): En
la función `png_handle_gAMA':
pngrutil.c:(.text+0xd08): reubicación truncada para ajustar: R_MIPS_GPREL16 cont
ra `_impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): En
la función `png_handle_cHRM':
pngrutil.c:(.text+0x1470): reubicación truncada para ajustar: R_MIPS_GPREL16 con
tra `_impure_ptr'
pngrutil.c:(.text+0x14e0): reubicación truncada para ajustar: R_MIPS_GPREL16 con
tra `_impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): En
la función `png_handle_sRGB':
pngrutil.c:(.text+0x1790): reubicación truncada para ajustar: R_MIPS_GPREL16 con
tra `_impure_ptr'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwrite.o): En
la función `png_convert_from_time_t':
pngwrite.c:(.text+0xac4): referencia a `gmtime' sin definir
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): En
la función `png_write_cHRM':
pngwutil.c:(.text+0x1120): referencia a `_impure_ptr' sin definir
pngwutil.c:(.text+0x1120): se omitieron desbordamientos de reubicación adicional
es de la salida
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): En
la función `png_write_cHRM_fixed':
pngwutil.c:(.text+0x16dc): referencia a `_impure_ptr' sin definir
collect2: ld devolvi'o el estado de salida 1
make: *** [WArena+.elf] Error 1
Anyone solved the problem?
I got this prob too...
the thing is: I got the Win32-Toolchain here, therefor: Has anyone a properly linked libpng for me :)
Thx in advance
Theory is, when nothing works and everybody knows that it should...
Pactic is, when everything works and nobody knows why...