Page 1 of 1

HBL compiling errors

Posted: Sun Apr 28, 2013 9:06 am
by qwikrazor87
Hi, I'm following wololo's tutorial and I tried compiling the HBL sources.
On first attempt at compiling I get this error,

Code: Select all

In file included from memory.c:5:
hook.h:5:21: error: pspmath.h: No such file or directory
cc1: warnings being treated as errors
memory.c: In function ‘UnloadModules’:
memory.c:212: error: implicit declaration of function ‘getFirmwareVersion’
make: *** [memory.s] Error 1
Then I manually placed pspmath.h in the include folder (/usr/local/pspdev/psp/include/), I installed the toolchain and sdk from ps2dev.org, I don't know if pspmath.h is included with it or not.

Here's the error with pspmath.h included when just typing make,

Code: Select all

cc1: warnings being treated as errors
memory.c: In function ‘UnloadModules’:
memory.c:212: error: implicit declaration of function ‘getFirmwareVersion’
make: *** [memory.s] Error 1
I see that getFirmwareVersion is defined in utils.c so I don't know why it's still throwing that error.
When I try compiling when defining a certain folder, like make FOLDER=everybody I get this error,

Code: Select all

eloader.o: In function `callback_thread':
eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
hook.o: In function `setup_hook':
hook.c:(.text+0x1fb8): undefined reference to `sceKernelLoadModule'
hook.c:(.text+0x1fc0): undefined reference to `sceKernelLoadModule'
make: *** [hbl] Error 1
Only certain folders like mhp3 successfully compile.
I would appreciate if someone could point out what I'm missing, if I have to install anything else. Thanks.

Re: HBL compiling errors

Posted: Sun Apr 28, 2013 9:43 am
by tomtomdu80
qwikrazor87 wrote: hook.h:5:21: error: pspmath.h: No such file or directory
cc1: warnings being treated as errors
memory.c: In function ‘UnloadModules’:
memory.c:212: error: implicit declaration of function ‘getFirmwareVersion’
make: *** [memory.s] Error 1[/code]Then I manually placed pspmath.h in the include folder (/usr/local/pspdev/psp/include/), I installed the toolchain and sdk from ps2dev.org, I don't know if pspmath.h is included with it or not.

Here's the error with pspmath.h included when just typing make,

Code: Select all

cc1: warnings being treated as errors
memory.c: In function ‘UnloadModules’:
memory.c:212: error: implicit declaration of function ‘getFirmwareVersion’
make: *** [memory.s] Error 1
I see that getFirmwareVersion is defined in utils.c so I don't know why it's still throwing that error.
this happens when you forget to do "make FOLDER=yourfolder"
qwikrazor87 wrote: When I try compiling when defining a certain folder, like make FOLDER=everybody I get this error,

Code: Select all

eloader.o: In function `callback_thread':
eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
hook.o: In function `setup_hook':
hook.c:(.text+0x1fb8): undefined reference to `sceKernelLoadModule'
hook.c:(.text+0x1fc0): undefined reference to `sceKernelLoadModule'
make: *** [hbl] Error 1
Only certain folders like mhp3 successfully compile.
I would appreciate if someone could point out what I'm missing, if I have to install anything else. Thanks.
this happens when the game doesnt import the functions sceKernelLoadModule & sceKernelSleepThreadCB

Re: HBL compiling errors

Posted: Sun Apr 28, 2013 9:53 am
by qwikrazor87
tomtomdu80 wrote:this happens when you forget to do "make FOLDER=yourfolder"
I tried that out and here's the error I get,

Code: Select all

eloader.c:15:28: error: exploit_config.h: No such file or directory
make: *** [eloader.s] Error 1

Re: HBL compiling errors

Posted: Sun Apr 28, 2013 10:20 am
by tomtomdu80
have you executed gen_exploit_config.rb and copied the generated files in your exploit folder ?

Re: HBL compiling errors

Posted: Mon Apr 29, 2013 8:17 am
by qwikrazor87
I finally got past some errors with CLEAR_CACHE and now I'm getting more errors.

Code: Select all

eloader.o: In function `ramcheck':
eloader.c:(.text+0x144): undefined reference to `sceKernelDelayThread'
eloader.o: In function `cleanup':
eloader.c:(.text+0x238): undefined reference to `sceKernelDelayThread'
eloader.o: In function `wait_for_eboot_end':
eloader.c:(.text+0x2ec): undefined reference to `sceKernelDelayThread'
eloader.c:(.text+0x374): undefined reference to `sceKernelDelayThread'
eloader.o: In function `run_menu':
eloader.c:(.text+0x598): undefined reference to `sceKernelDelayThread'
eloader.o:eloader.c:(.text+0x5e0): more undefined references to `sceKernelDelayThread' follow
memory.o: In function `kill_module':
memory.c:(.text+0x2ac): undefined reference to `sceKernelStopModule'
tables.o: In function `build_nid_table':
tables.c:(.text+0x1218): undefined reference to `sceKernelDelayThread'
make: *** [hbl] Error 1

Re: HBL compiling errors

Posted: Wed Aug 21, 2013 7:31 pm
by Yoti
HBL is broken for a long time. E.g. for the "folder=signed":

Code: Select all

r113
	memory.c:6:28: error: exploit_config.h: No such file or directory
r114
	OK
r115
	OK
r116
	OK
r117
	OK
r118
	OK
r119
	OK
r120
	OK
r121
	OK
r122
	OK
r123
	OK
r124
	OK
r125
	OK
r126
	OK
r127
	OK
r128
	OK
r129
	OK
r130
	hook.o: In function `_hook_sceAudioOutput2GetRestSample':
	hook.c:(.text+0x2a0): undefined reference to `sceAudioGetChannelRestLength'
r131
	hook.o: In function `_hook_sceAudioOutput2GetRestSample':
	hook.c:(.text+0x2a0): undefined reference to `sceAudioGetChannelRestLength'
r132
	hook.o: In function `_hook_sceAudioOutput2GetRestSample':
	hook.c:(.text+0x2a0): undefined reference to `sceAudioGetChannelRestLength'
r133
	hook.o: In function `_hook_sceAudioOutput2GetRestSample':
	hook.c:(.text+0x2a0): undefined reference to `sceAudioGetChannelRestLength'
r134
	OK
r135
	hook.o: In function `setup_hook':
	hook.c:(.text+0x200c): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2014): undefined reference to `sceKernelLoadModule'
r136
	hook.o: In function `setup_hook':
	hook.c:(.text+0x200c): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2014): undefined reference to `sceKernelLoadModule'
r137
	hook.o: In function `setup_hook':
	hook.c:(.text+0x200c): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2014): undefined reference to `sceKernelLoadModule'
r138
	hook.o: In function `setup_hook':
	hook.c:(.text+0x200c): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2014): undefined reference to `sceKernelLoadModule'
r139
	hook.o: In function `setup_hook':
	hook.c:(.text+0x200c): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2014): undefined reference to `sceKernelLoadModule'
r140
	hook.o: In function `setup_hook':
	hook.c:(.text+0x200c): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2014): undefined reference to `sceKernelLoadModule'
r141
	hook.o: In function `setup_hook':
	hook.c:(.text+0x200c): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2014): undefined reference to `sceKernelLoadModule'
r142
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fec): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1ff4): undefined reference to `sceKernelLoadModule'
r143
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fec): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1ff4): undefined reference to `sceKernelLoadModule'
r144
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r145
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r146
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r147
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r148
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r149
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r150
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r151
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r152
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r153
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r154
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1fc8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x1fd0): undefined reference to `sceKernelLoadModule'
r155
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ff8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2000): undefined reference to `sceKernelLoadModule'
r156
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ff8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2000): undefined reference to `sceKernelLoadModule'
r157
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ff8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2000): undefined reference to `sceKernelLoadModule'
r158
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ff8): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2000): undefined reference to `sceKernelLoadModule'
r159
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ffc): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2004): undefined reference to `sceKernelLoadModule'
r160
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ffc): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2004): undefined reference to `sceKernelLoadModule'
r161
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ffc): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2004): undefined reference to `sceKernelLoadModule'
r162
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ffc): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2004): undefined reference to `sceKernelLoadModule'
r163
	eloader.o: In function `callback_thread':
	eloader.c:(.text+0xbc): undefined reference to `sceKernelSleepThreadCB'
	hook.o: In function `setup_hook':
	hook.c:(.text+0x1ffc): undefined reference to `sceKernelLoadModule'
	hook.c:(.text+0x2004): undefined reference to `sceKernelLoadModule'
Also, small tip.

Code: Select all

//
// \trunk\eLoader\signed\exploit_config.h
//
<...>

// http://wololo.net/talk/viewtopic.php?p=142781#p142781
#define HOOK_sceKernelLoadModule_WITH_error
#define HOOK_sceKernelSleepThreadCB_WITH_sceKernelDelayThreadCB

#endif