Hi,
I've just started digging into PS2 Homebrew and was playing around with some stuff.
Basically I wanted to build a custom / optimized software-stack for my next PS2 project.
I'm already able to compile OpenPS2Loader & now wanted to do the same with FMCB. But since there seem to be a few changes in the ps2sdk/toolchain, it's not that easy.
I could already fix some stuff, like for the newer libpng, but i can't figure out what's wrong with this:
This are the offending lines from https://github.com/Nold360/FreeMcBoot/blob/master/modules/mcsio2/mcsio2.c
Since I'm a noobish coder, I have no idea what they are good for... OpenPS2Loader had some similar code once, but it's been removed & is not included in the git history, sadly :/
Anyways, as the compiler told me it's a redeclaration, i commented out line 47 & 48. But than the linker complains about it...
I'm using an extended Version of the Docker ps2sdk: https://github.com/Nold360/ps2dev-docker
Which is based on this SDK: https://github.com/ps2dev/ps2sdk
And this is my FMCB-Fork (Not all changes pushed yet): https://github.com/Nold360/FreeMcBoot
I hope some of you guys might can help me out..
I've just started digging into PS2 Homebrew and was playing around with some stuff.
Basically I wanted to build a custom / optimized software-stack for my next PS2 project.
I'm already able to compile OpenPS2Loader & now wanted to do the same with FMCB. But since there seem to be a few changes in the ps2sdk/toolchain, it's not that easy.
I could already fix some stuff, like for the newer libpng, but i can't figure out what's wrong with this:
Code:
make[1]: Entering directory '/build/modules/mcsio2' iop-gcc -O2 -G0 -c -I/usr/local/ps2dev/ps2sdk/iop/include -I/usr/local/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/ps2sdk/iop/include -I/usr/local/ps2dev/ps2sdk/common/include -Wall -fno-builtin mcsio2.c -o mcsio2.o mcsio2.c:47: `sio2_mc_transfer_init' redeclared as different kind of symbol /usr/local/ps2dev/ps2sdk/iop/include/sio2man.h:69: previous declaration of `sio2_mc_transfer_init' mcsio2.c:48: `sio2_transfer' redeclared as different kind of symbol /usr/local/ps2dev/ps2sdk/iop/include/sio2man.h:70: previous declaration of `sio2_transfer' make[1]: *** [Rules.make:29: mcsio2.o] Error 1 make[1]: Leaving directory '/build/modules/mcsio2' make: *** [Makefile:129: mcsio2.s] Error 2
Code:
46 /* xsio2man exports */ 47 /* 24 */ void (*sio2_mc_transfer_init)(void); 48 /* 25 */ int (*sio2_transfer)(sio2_transfer_data_t *sio2data); 49 /* 26 */ void (*sio2_transfer_reset)(void); 50 /* 57 */ int (*sio2_func3)(void *arg);
Anyways, as the compiler told me it's a redeclaration, i commented out line 47 & 48. But than the linker complains about it...
Code:
make[1]: Entering directory '/build/modules/mcsio2' iop-gcc -O2 -G0 -c -I/usr/local/ps2dev/ps2sdk/iop/include -I/usr/local/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/ps2sdk/iop/include -I/usr/local/ps2dev/ps2sdk/common/include -Wall -fno-builtin mcsio2.c -o mcsio2.o echo "#include \"irx_imports.h\"" > build-imports.c cat imports.lst >> build-imports.c iop-gcc -O2 -G0 -c -I/usr/local/ps2dev/ps2sdk/iop/include -I/usr/local/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/ps2sdk/iop/include -I/usr/local/ps2dev/ps2sdk/common/include -Wall -fno-builtin build-imports.c -o imports.o rm -f build-imports.c iop-gcc -nostdlib -s -o mcsio2.irx main.o mcsio2.o imports.o mcsio2.o(.text+0x174): In function `exec_sio2_transfer_thread': mcsio2.c: undefined reference to `sio2_mc_transfer_init' mcsio2.o(.text+0x178):mcsio2.c: undefined reference to `sio2_mc_transfer_init' mcsio2.o(.text+0x18c):mcsio2.c: undefined reference to `sio2_transfer' mcsio2.o(.text+0x190):mcsio2.c: undefined reference to `sio2_transfer' mcsio2.o(.text+0x2ac):mcsio2.c: undefined reference to `sio2_mc_transfer_init' mcsio2.o(.text+0x2c8):mcsio2.c: undefined reference to `sio2_transfer' collect2: ld returned 1 exit status make[1]: *** [Rules.make:50: mcsio2.irx] Error 1 make[1]: Leaving directory '/build/modules/mcsio2' make: *** [Makefile:129: mcsio2.s] Error 2
Which is based on this SDK: https://github.com/ps2dev/ps2sdk
And this is my FMCB-Fork (Not all changes pushed yet): https://github.com/Nold360/FreeMcBoot
I hope some of you guys might can help me out..