Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can' build the server with latest ps2sdk (from git) #2

Closed
sl1pkn07 opened this issue Jul 5, 2017 · 3 comments
Closed

can' build the server with latest ps2sdk (from git) #2

sl1pkn07 opened this issue Jul 5, 2017 · 3 comments
Labels

Comments

@sl1pkn07
Copy link

sl1pkn07 commented Jul 5, 2017

└───╼  LANG=C make
make -C ./pktdrv
make[1]: Entering directory '/home/sl1pkn07/aplicaciones/hdl-dump-git/svr/pktdrv'
iop-gcc  -O2 -G0 -c -I/usr/ps2/sdk/iop/include -I/usr/ps2/sdk/iop/include -I/usr/ps2/sdk/common/include -Iinclude -Wall -fno-builtin -D_IOP main.c -o main.o
main.c: In function `AllocRxPacket':
main.c:37: dereferencing pointer to incomplete type
main.c:38: dereferencing pointer to incomplete type
main.c: In function `FlushInputQueue':
main.c:55: invalid use of undefined type `struct NetManPacketBuffer'
main.c:56: invalid use of undefined type `struct NetManPacketBuffer'
main.c:56: invalid use of undefined type `struct NetManPacketBuffer'
main.c:57: invalid use of undefined type `struct NetManPacketBuffer'
main.c:57: invalid use of undefined type `struct NetManPacketBuffer'
main.c:58: invalid use of undefined type `struct NetManPacketBuffer'
main.c:58: invalid use of undefined type `struct NetManPacketBuffer'
main.c:60: invalid use of undefined type `struct NetManPacketBuffer'
main.c: In function `_start':
main.c:76: warning: initialization from incompatible pointer type
main.c:77: warning: initialization from incompatible pointer type
main.c:78: warning: initialization from incompatible pointer type
main.c:80: warning: excess elements in struct initializer
main.c:80: warning: (near initialization for `stack')
/usr/ps2/sdk/common/include/tamtypes.h: At top level:
main.c:21: storage size of `RxPbuf' isn't known
make[1]: *** [Rules.make:29: main.o] Error 1
make[1]: Leaving directory '/home/sl1pkn07/aplicaciones/hdl-dump-git/svr/pktdrv'
make: *** [Makefile:15: all] Error 2

also, in the makefile:

https://github.com/AKuHAK/hdl-dump/blob/master/svr/Makefile#L9-L10

this is this? https://github.com/ps2dev/ps2sdk/tree/master/ee/sbv

need compile and put the compiled library and a copy of headers to $PS2SDK/sbv folder?

greetings

@sl1pkn07
Copy link
Author

sl1pkn07 commented Jul 5, 2017

mmm depth into compiled ps2sdk, the includes and compiled sbv library is found into $PS2SDK/ee/lib and $PS2SDK/ee/includes

then, need change the Makefile lines from:

EE_INCS := -I$(PS2SDK)/sbv/include
EE_LDFLAGS := -L$(PS2SDK)/sbv/lib -s

to

EE_INCS := -I$(PS2SDK)/ee/include
EE_LDFLAGS := -L$(PS2SDK)/ee/lib -s

?

greetings

@sl1pkn07
Copy link
Author

also. diskload.sh can`t build

└───╼  LC_ALL=C ./diskload.sh 
destination directory: open-ps2-loader
requesting all changes
adding changesets
adding manifests
adding file changes
added 941 changesets with 6338 changes to 1875 files (+1 heads)
updating to branch default
537 files updated, 0 files merged, 0 files removed, 0 files unresolved
Cleaning...
    * Interface
    * EE core
    * udnl.irx
    * imgdrv.irx
    * eesync.irx
    * cdvdman.irx
    * cdvdfsv.irx
    * ps2dev9.irx
    * ps2hdd.irx
    * ps2atad.irx
Building Open PS2 Loader...
    * Interface
    * EE core
In file included from src/syshook.c:12:
include/iopmgr.h:15: redefinition of `struct _iop_reset_pkt'
src/syshook.c: In function `Install_Kernel_Hooks':
src/syshook.c:160: `__NR_LoadExecPS2' undeclared (first use in this function)
src/syshook.c:160: (Each undeclared identifier is reported only once
src/syshook.c:160: for each function it appears in.)
src/syshook.c:169: `__NR_ExecPS2' undeclared (first use in this function)
src/syshook.c: In function `Remove_Kernel_Hooks':
src/syshook.c:182: `__NR_LoadExecPS2' undeclared (first use in this function)
src/syshook.c:188: `__NR_ExecPS2' undeclared (first use in this function)
make[2]: *** [Makefile:79: obj/syshook.o] Error 1
make[1]: *** [Makefile:64: ee_core.s] Error 2
make: *** [Makefile:28: all] Error 2

seems diskload.sh use bitbuket repo (outdated, fail build with latest PS2SDK). change to github repo have similar problem:

└───╼  LC_ALL=C ./diskload.sh 
Cloning into 'open-ps2-loader'...
warning: redirecting to https://github.com/ifcaro/open-ps2-loader/
remote: Counting objects: 11385, done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 11385 (delta 8), reused 25 (delta 5), pack-reused 11345
Receiving objects: 100% (11385/11385), 6.09 MiB | 4.18 MiB/s, done.
Resolving deltas: 100% (8402/8402), done.
mv: cannot stat 'README': No such file or directory
Cleaning...
    * Interface
    * EE core
    * udnl.irx
    * imgdrv.irx
    * eesync.irx
    * cdvdman.irx
make[1]: Makefile.hdd: No such file or directory
make[1]: *** No rule to make target 'Makefile.hdd'.  Stop.
make: *** [Makefile:49: sclean] Error 2
Building Open PS2 Loader...
    * Interface
src/bootgame.c: In function `ConfigureOPL':
src/bootgame.c:80: `IOPCORE_COMPAT_0_PSS' undeclared (first use in this function)
src/bootgame.c:80: (Each undeclared identifier is reported only once
src/bootgame.c:80: for each function it appears in.)
make[1]: *** [Makefile:120: obj/bootgame.o] Error 1
make: *** [Makefile:28: all] Error 2

greetings

@bignaux
Copy link
Member

bignaux commented May 15, 2021

Since NBD server is merged in OPL, i invite you to setup a nbd client and use that instead of unmaintained hdl_svr_093.elf .

@bignaux bignaux closed this as completed Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants