You are not logged in.

#1 2011-07-18 01:24:51

markbabc
Member
Registered: 2010-11-06
Posts: 157

trying to compile for arm-apple-darwin9

Well im trying to port something to the iphone (ncdu if your curious) and I failed to compile it directly on my ipod getting this error

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

and after alot of googling i found that sprintf_chk is in glibc and strcpy_chk is in libssp (i couldnt even find libssp installed on my iphone) so not wanting to re-install glibc and port libssp i simply am now trying to compile it on my Arch install and copy the finished binary over.

I tried gcc -c -Q -march=native --help=target but its gcc (GCC) 4.2.1 (Based on Apple Inc. build 5555) and that doesnt work... So is there any way i can find out the proper CFLAGS? (couldnt find a makefile anywhere on the system either...)

Also if im missing a step or theres something im doing wrong please speak-up because right now im just going off of what iv read over the internet

Offline

Board footer

Powered by FluxBB