Author Topic: codehacker read this topic!  (Read 1291 times)

ghoulmaster

  • Sr. Member
  • ****
  • Posts: 346
  • Reputation: 12
  • Badges:
codehacker read this topic!
« on: July 17, 2011, 07:15:47 pm »
Alright im trying to do my first port (woot!) and iv run into an issue...

Code: [Select]
Undefined symbols:
  "___sprintf_chk", referenced from:
      _formatsize in util.o
  "___strcpy_chk", referenced from:
      _browse_draw in browser.o
      _calc_draw_progress in calc.o
      _cropstr in util.o
ld: symbol(s) not found


Well i found out that those lie in glibc or libc whichever you prefer so i figured i would just compile a newer version of glibc but it seems like thats a lengthy process... so i was first wondering where on the system libc is located... (couldnt find it with find / -name libc) and if you've ever had to do this to get something to work...

ghoulmaster

  • Sr. Member
  • ****
  • Posts: 346
  • Reputation: 12
  • Badges:
Re: codehacker read this topic!
« Reply #1 on: July 17, 2011, 07:22:08 pm »
* ghoulmaster fails.. i forgot my regex in my search string.. found it in /private/var/nyll/usr/lib/libc.dylib

does it being a dylib have anything to do with it?

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: codehacker read this topic!
« Reply #2 on: July 17, 2011, 08:43:04 pm »
That shouldnt be a problem. Add -llibc to linker arguments if it isnt there, and also -L"/private/var/nyll/usr/lib" if it isnt there. Not guaranteeing that it will work, but its worth a shot.

ghoulmaster

  • Sr. Member
  • ****
  • Posts: 346
  • Reputation: 12
  • Badges:
Re: codehacker read this topic!
« Reply #3 on: July 17, 2011, 09:00:07 pm »
by that do you mean gcc args or like part of LIBS in the makefile?

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: codehacker read this topic!
« Reply #4 on: July 19, 2011, 12:29:20 am »
Same thing. If your using a makefile, add that to LDFLAGS.

Don't like seeing ads? Click here to register!

ronin101

  • Noob
  • *
  • Posts: 39
  • Reputation: 1
    • 0xGONE
  • Computers: White macbook 2010, Thinkpad T61
  • iDevices: iPhone 2G, iPhone 4S
Re: codehacker read this topic!
« Reply #5 on: November 25, 2011, 09:49:26 am »
BUMP

Did you find a solution to this problem ? I have the same error message.

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: codehacker read this topic!
« Reply #6 on: November 25, 2011, 10:32:45 am »
Ronin! Glad to see you. Congrats on finding us here. I don't know how but ghoul master did manage to get it working. You might be best off pm ing him for the details.

ronin101

  • Noob
  • *
  • Posts: 39
  • Reputation: 1
    • 0xGONE
  • Computers: White macbook 2010, Thinkpad T61
  • iDevices: iPhone 2G, iPhone 4S
Re: codehacker read this topic!
« Reply #7 on: November 25, 2011, 11:23:06 am »
Hello Trcx,

Yes I went back on iHackMyI which I did not checked lately due
to lack of free time and just discovered this great new forum.

I just PMed ghoulmaster about the problem.

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: codehacker read this topic!
« Reply #8 on: November 25, 2011, 11:55:35 am »
Yup! I remember most people from there.  Really am glad that you found us!

Ya, PMing ghoul is probably the wait to go, he's not on much but checks in every couple days.  :P  I really wish I could help beyond that but I can't port anything.  All I know is that ghoulmaster got his port done (ncdu, on the repo) so he managed to figure out some way around this.  

ghoulmaster

  • Sr. Member
  • ****
  • Posts: 346
  • Reputation: 12
  • Badges:
Re: codehacker read this topic!
« Reply #9 on: November 25, 2011, 12:05:12 pm »
Yup! I remember most people from there.  Really am glad that you found us!

Ya, PMing ghoul is probably the wait to go, he's not on much but checks in every couple days.  :P  I really wish I could help beyond that but I can't port anything.  All I know is that ghoulmaster got his port done (ncdu, on the repo) so he managed to figure out some way around this.
yea school sucks :( but i get email notifications on new PM's so a pm is definitely the best way to reach me if iv gone missing

p.s. As stated in the pm incase anyone else out there wants to know i ended up running installsdk3 (it was included in one of BigBoss's pkg's) and then sym-linking it according to boococky's instructions worked

Don't like seeing ads? Click here to register!