Page 1 of 1

HBL - Compile Errors

Posted: Sun Apr 22, 2012 5:54 pm
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?

Re: HBL - Compile Errors

Posted: Mon Apr 23, 2012 7:39 am
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.

Re: HBL - Compile Errors

Posted: Mon Apr 23, 2012 12:09 pm
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)

Re: HBL - Compile Errors

Posted: Tue Apr 24, 2012 7:17 am
by m0skit0
Looks like your game does not import such calls. What does the Ruby script tell you about this?

Re: HBL - Compile Errors

Posted: Tue Apr 24, 2012 4:49 pm
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....

Re: HBL - Compile Errors

Posted: Tue May 01, 2012 11:40 pm
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

Re: HBL - Compile Errors

Posted: Wed May 02, 2012 6:27 pm
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!

Re: HBL - Compile Errors

Posted: Thu May 03, 2012 7:01 pm
by m0skit0
You already got a "Hello world"?

Re: HBL - Compile Errors

Posted: Thu May 03, 2012 8:33 pm
by martepato
m0skit0 wrote:You already got a "Hello world"?
Yes

http://www.youtube.com/watch?v=4CQEkfn3epw

Re: HBL - Compile Errors

Posted: Fri Sep 28, 2012 1:40 am
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