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

HBL - Compile Errors

Half Byte loader is an open source tool to load homebrews on all models of PSPs
Half Byte Loader can be downloaded at http://wololo.net/wagic/hbl
Locked
martepato
HBL Tester
Posts: 28
Joined: Wed Dec 29, 2010 10:37 am
Location: Switzerland

HBL - Compile Errors

Post by martepato »

Hi guys

I'm trying to compile HBL for my game and get the following errors:

[spoiler]C:/pspsdk/bin/psp-ld -T patapon2/linker_hbl.x -LC:/pspsdk/psp/sdk/lib utils.o el
oader.o elf.o globals.o syscall.o lib.o md5.o memory.o patapon2/sdk_hbl.o debug
.o config.o modmgr.o malloc.o graphics.o font.o tables.o runtime_stubs.o setting
s.o hook.o reloc.o resolve.o test.o -o eloader.elf
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'
make: *** [hbl] Error 1[/spoiler]

How can I solve this so it compiles sucessfully? What information do you guys need else?
Advertising
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: HBL - Compile Errors

Post by m0skit0 »

The error is because the linker cannot find those functions, and thus you're not linking the PSPSDK in your project. How are you compiling it, as what command(s) are you running?

PS: also compiling is not programming, moving to correct forum.
Advertising
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
martepato
HBL Tester
Posts: 28
Joined: Wed Dec 29, 2010 10:37 am
Location: Switzerland

Re: HBL - Compile Errors

Post by martepato »

m0skit0 wrote:The error is because the linker cannot find those functions, and thus you're not linking the PSPSDK in your project. How are you compiling it, as what command(s) are you running?

PS: also compiling is not programming, moving to correct forum.
I'm trying to compile HBL for an exploit I found. I did everything according to the tutorials that wololo wrote here: http://wololo.net/wagic/hacking-portal/

Command: make folder=*mygamesfolderhere* (Like in the tutorials)
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: HBL - Compile Errors

Post by m0skit0 »

Looks like your game does not import such calls. What does the Ruby script tell you about this?
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
martepato
HBL Tester
Posts: 28
Joined: Wed Dec 29, 2010 10:37 am
Location: Switzerland

Re: HBL - Compile Errors

Post by martepato »

m0skit0 wrote:Looks like your game does not import such calls. What does the Ruby script tell you about this?
I assume you're talking about the gen_exploit_config.rb script...

Here's the output:

[spoiler]can't find address for UID 0x04CB6A73
can't find address for UID 0x046A2D73
can't find address for UID 0x046A3D71
can't find address for UID 0x04CAC75D
can't find address for UID 0x04CAF747
can't find address for UID 0x04CCB531
can't find address for UID 0x04CCBF1B
can't find address for UID 0x04CBD905
can't find address for UID 0x04CBE371
can't find address for UID 0x04CC4C2D
can't find address for UID 0x04CC8319
can't find address for UID 0x04CD9711
can't find address for UID 0x03D1BB7D
can't find address for UID 0x03CF7779
can't find address for UID 0x046DD665
stubs found:
9DE6F3C
9DE5A90
9DE1610
9DDAD70
9DD48F0
9DC3640
9DB4F30
9DACD30
8925CC8
88009A0
sceNetAdhocDiscover_Library
sceNetAdhocDownload_Library
sceNetAdhocMatching_Library
sceNetAdhocctl_Library
sceNetAdhoc_Library
sceNet_Library
sceATRAC3plus_Library
sceMpeg_library
[REMOVED because its the Games Name]
sceKernelLibrary
***
Removing sceKernelDeleteVpl
Removing sceKernelDeleteFpl
Removing sceGeEdramGetSize
Removing sceKernelGetThreadId
Removing sceKernelTotalFreeMemSize
Removing sceKernelDcacheWritebackRange
Removing sceKernelWaitSemaCB
Removing sceKernelReleaseSubIntrHandler
Removing sceKernelGetModuleIdList
Removing sceKernelDcacheWritebackInvalidateAll
Removing sceKernelDcacheWritebackInvalidateRange
output/config/imports.config_6xx[/spoiler]

BTW: I get the same errors when trying to compile any of the other game's folder....
wth
HBL Developer
Posts: 834
Joined: Wed Aug 31, 2011 4:44 pm
Contact:

Re: HBL - Compile Errors

Post by wth »

martepato wrote:Hi guys

I'm trying to compile HBL for my game and get the following errors:

[spoiler]C:/pspsdk/bin/psp-ld -T patapon2/linker_hbl.x -LC:/pspsdk/psp/sdk/lib utils.o el
oader.o elf.o globals.o syscall.o lib.o md5.o memory.o patapon2/sdk_hbl.o debug
.o config.o modmgr.o malloc.o graphics.o font.o tables.o runtime_stubs.o setting
s.o hook.o reloc.o resolve.o test.o -o eloader.elf
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'
make: *** [hbl] Error 1[/spoiler]

How can I solve this so it compiles sucessfully? What information do you guys need else?
hey

add those define in your common_exploit_config.h file and it should work :

#define HOOK_sceKernelLoadModule_WITH_error
#define HOOK_sceKernelSleepThreadCB_WITH_sceKernelDelayThreadCB
martepato
HBL Tester
Posts: 28
Joined: Wed Dec 29, 2010 10:37 am
Location: Switzerland

Re: HBL - Compile Errors

Post by martepato »

Anyways, I don't have enough time to deal with this stuff anymore... If someone trustable wants the name, manipulated savegame and the exploits folder for HBL of the game, go ahead and write me a PM. (Working HBL will not be provided.)

I appreciate the help I got from you guys!
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: HBL - Compile Errors

Post by m0skit0 »

You already got a "Hello world"?
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
martepato
HBL Tester
Posts: 28
Joined: Wed Dec 29, 2010 10:37 am
Location: Switzerland

Re: HBL - Compile Errors

Post by martepato »

m0skit0 wrote:You already got a "Hello world"?
Yes

http://www.youtube.com/watch?v=4CQEkfn3epw
Nowcry
Posts: 26
Joined: Thu Jun 28, 2012 1:32 am

Re: HBL - Compile Errors

Post by Nowcry »

nowcry@ubuntu:~/valentine-hbl-read-only/eLoader/tools$ ruby gen_exploit_config.rb
can't find address for UID 0x03FC5449
can't find address for UID 0x0456E203
can't find address for UID 0x04567E39
can't find address for UID 0x0455E337
can't find address for UID 0x03F9825B
can't find address for UID 0x04545547
gen_exploit_config.rb:308:in `block in <main>': undefined method `to_hex' for "\t":String (NoMethodError)
from gen_exploit_config.rb:304:in `each'
from gen_exploit_config.rb:304:in `<main>'

I've tried many times and many ways, I'm stuck

if you have any leads would be very grateful,

thanks
Locked

Return to “Half Byte Loader”