I followed the instructions of the Cydia-FAQ, which states:
"
Question: Whenever I run programs I compile with your toolchain, they are immediatley "Killed".
Answer:The new iPhoneOs only wants to run signed code. This was mostly fixed by some kernel patches added by PwanageTool, but you still need to at least add a valid CodeDirectory to the binary that contains SHA1 hashes of the executable. This is done using the developer tool ldid.
Code:
$ apt-get install ldid
$ gcc -o program program.c
$ ldid -S program
$ ./program
"
But when I try to install ldid apt complains:
Code:
iphone:~ root# apt-get install ldid
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
odcctools
The following NEW packages will be installed:
ldid odcctools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2203kB of archives.
After unpacking 6017kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://apt.saurik.com tangelo/main odcctools 252-4 [2178kB]
Get:2 http://apt.saurik.com tangelo/main ldid 1.0.363-1 [25.3kB]
Fetched 2203kB in 14s (152kB/s)
Selecting previously deselected package odcctools.
(Reading database ... 1295 files and directories currently installed.)
Unpacking odcctools (from .../odcctools_252-4_iphoneos-arm.deb) ...
Selecting previously deselected package ldid.
Unpacking ldid (from .../ldid_1.0.363-1_iphoneos-arm.deb) ...
Setting up odcctools (252-4) ...
Setting up ldid (1.0.363-1) ...
W: Couldn't stat source package list http://repo.smxy.org xena/main Packages (/var/lib/apt/lists/repo.smxy.org_cydia_apt_dists_xena_main_binary-iphoneos-arm_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
iphone:~ root#