Advertising (This ad goes away for registered users. You can Login or Register)

HBL compiling errors

Half Byte loader is an open source tool to load homebrews on all models of PSPs
Half Byte Loader can be downloaded at //wololo.net/wagic/hbl
Post Reply
User avatar
qwikrazor87
Guru
Posts: 2874
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

HBL compiling errors

Post by qwikrazor87 » Sun Apr 28, 2013 9:06 am

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.
Advertising
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Alcatel phone - Android 8.1.0
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS

User avatar
tomtomdu80
Buffer Overflow
Posts: 113
Joined: Tue Nov 20, 2012 6:39 pm
Location: France

Re: HBL compiling errors

Post by tomtomdu80 » Sun Apr 28, 2013 9:43 am

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
Advertising

User avatar
qwikrazor87
Guru
Posts: 2874
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: HBL compiling errors

Post by qwikrazor87 » Sun Apr 28, 2013 9:53 am

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
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Alcatel phone - Android 8.1.0
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS

User avatar
tomtomdu80
Buffer Overflow
Posts: 113
Joined: Tue Nov 20, 2012 6:39 pm
Location: France

Re: HBL compiling errors

Post by tomtomdu80 » Sun Apr 28, 2013 10:20 am

have you executed gen_exploit_config.rb and copied the generated files in your exploit folder ?

User avatar
qwikrazor87
Guru
Posts: 2874
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: HBL compiling errors

Post by qwikrazor87 » Mon Apr 29, 2013 8:17 am

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
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Alcatel phone - Android 8.1.0
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS

User avatar
Yoti
VIP
Posts: 364
Joined: Sun Oct 17, 2010 4:49 am
Location: Russia

Re: HBL compiling errors

Post by Yoti » Wed Aug 21, 2013 7:31 pm

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
//
<...>

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

#endif
Attachments
r163.signed.fix.patch.7z
fix for signed hbl
(425 Bytes) Downloaded 176 times
134vs135.zip
r134 vs r135
(3.79 KiB) Downloaded 160 times
IF SOMEONE HAS AN 07G PSP-3000 PLZ CONTACT ME VIA PM.

Image
Do not forget about adb kill-server. Really.

Post Reply

Return to “Half Byte Loader”