Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

willybNL

macrumors 6502
Original poster
I've seen that Curl in terminal is still telling it's working on a powerpc..
So i've questioned myself... is terminal or curl working via rosetta... or did they just forget to change that string...

Well... this is what curl is telling me on my intel macbook.

url -verbose http://www.test.com
* About to connect() to www.test.com port 80
* Trying 208.48.34.132... * connected
* Connected to www.test.com (208.48.34.132) port 80
> GET / HTTP/1.1
User-Agent: curl/7.13.1 (powerpc-apple-darwin8.0) libcurl/7.13.1
 
willybNL said:
I've seen that Curl in terminal is still telling it's working on a powerpc..
So i've questioned myself... is terminal or curl working via rosetta... or did they just forget to change that string...
You can see what architecture a binary uses with lipo. For your example, try lipo -info /usr/bin/curl
 
willybNL said:
dyn230:~ w$ lipo -info /usr/bin/curl
Architectures in the fat file: /usr/bin/curl are: i386 ppc

mmm... still: little supprised it's not native while running. I thought all standard apps were already native.

I think you are running natively. I'm looking at the config.guess script, and it is using `uname -p` to build that architecture string. Autoconfig makes my brain hurt, but unless I'm missing something, the user agent string produced by curl will only tell you the architecture of the machine where it was compiled. So, a fat curl built on x86 would report i686 even when running on PowerPC, and vice versa. And, I do see that the user agent gets hard coded into the binary.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.