Dependency from pthread_join$UNIX2003 is not good idea.

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Dependency from pthread_join$UNIX2003 is not good idea.

Postby germund » Wed Dec 15, 2010 7:09 am

Hello!

Could You please rebuild iphone libraries under iOS sdk 4.2 and remove dependency from deprecated function pthread_join$UNIX2003.
This function had removed from the iOS 4.2, so NewtonCreate fails and application terminates.

Thanks in advance!
germund
 
Posts: 1
Joined: Fri Dec 10, 2010 12:22 pm

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby Julio Jerez » Wed Dec 15, 2010 11:34 am

Oh yes, In fact the Iphone build do not even need the thread class,

I will do so. Thsi weeke end when I will comples 2.26 for the mac
Last weekend I made the Libnux and both project are very similar, so it sodul jsut be a boot and compile.

Thank for the tip.

Since you are active on teh IPone, let me ask you.
-has Mac provided Simd intrisic for Iphone SDK yet?
-is the Iphone SDK compatible with IPad? or is the a separate system and licence?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby thedmd » Wed Dec 15, 2010 4:55 pm

I think there are not intrinsic for Mac or any iDevice. You may be interested in http://code.google.com/p/vfpmathlibrary this library. There is a file which define a few useful macros for SIMD code execution.

Answering to your second question, same SDK is used to compile applications for iPhone and iPad. The difference is iPhone/iPod may use ARMv6 architecture, iPad can use both ARMv6 and ARMv7. If you compile your library with both archs, it will run on all iDevices. I can test new build if you wish.
"God started from scratch too"
User avatar
thedmd
 
Posts: 149
Joined: Fri Jun 26, 2009 11:52 pm

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby Cannos » Tue Dec 28, 2010 8:53 pm

I just wanted to second this and see if the Mac version was still on the way.
Cannos
 
Posts: 129
Joined: Thu Mar 04, 2010 5:41 pm

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby Julio Jerez » Tue Dec 28, 2010 10:21 pm

Yes it under the way. I will build the Mac this weekend.
and will also put an #ifdef #end around the multtreaded code for the Iphone build.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby Julio Jerez » Wed Dec 29, 2010 12:29 pm

I am building the Mac build, now but I am is a dilemma now, it this onl aplicable to the Iphone?

germund wrote:Could You please rebuild iphone libraries under iOS sdk 4.2 and remove dependency from deprecated function pthread_join$UNIX2003.
This function had removed from the iOS 4.2, so NewtonCreate fails and application terminates.


does the Iphone libary uses a subtitute function?
what thread library are they using?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby Cannos » Mon Jan 03, 2011 2:00 pm

I don't think you need to change any code, you just need to rebuild with the 4.2 iOS SDK. With the current build of Newton, you will get something like the following error when you try to run in the 4.2 iOS simulator debugger:

Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
pthread_join$UNIX2003 called from function _ZN9dgThreads14CreateThreadedEi ...
If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first.


From what I've read, the earlier iOS SDKs added the $UNIX2003 decoration to symbols in their simulator builds, but the 4.2 SDK removed the decoration, so it complains that it can't find the symbol. If you rebuild the same code but with the 4.2 SDK, I think it should work.

Note, this problem only affects the iPhone simulator.
Cannos
 
Posts: 129
Joined: Thu Mar 04, 2010 5:41 pm

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby maxter2001 » Sun Jan 16, 2011 3:40 pm

Hi! Firstly, I am a newcomer to this forum, but I used Newton Game Dynamics in an academic project several years ago (I'd post right here a link to a video in Youtube, but perhaps this is not the place!). Now I am integrating Newton in an iPhone project and I have exactly the problem described in this thread.

I would greatly appreciate that Julio rebuilt the engine with iOS SDK 4.2 and uploaded it!

Thanks a lot!!
maxter2001
 
Posts: 1
Joined: Sun Jan 16, 2011 3:27 pm

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby festival » Mon Jan 17, 2011 8:01 am

I have the same request, please rebuild the Newton SDK for iPhone with iOS4.2
festival
 
Posts: 2
Joined: Mon Jan 17, 2011 7:59 am

thanks...

Postby Zippie47 » Tue Feb 01, 2011 8:25 am

thanks, that helped me a lot!
regards,
chantal
Zippie47
 

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby festival » Wed Feb 02, 2011 6:58 am

Zippie47 wrote:thanks, that helped me a lot!
regards,
chantal
Sounds good. Did you resolved the issue?

Edit:
Just got a PM from Julio. A new OSX/iOS version which should work on iOS 4.2 simulator should be out very soon
festival
 
Posts: 2
Joined: Mon Jan 17, 2011 7:59 am

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby Cannos » Fri Feb 04, 2011 10:40 pm

Looking forward to it, it's very painful not being able to run games in the simulator. Julio, do you have an estimated time for the update?
Cannos
 
Posts: 129
Joined: Thu Mar 04, 2010 5:41 pm

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby Julio Jerez » Sat Feb 05, 2011 11:22 am

Ha ok, it is time to do that.
Umm I see that there is a new xcode 4 in the works. downloading xcode 3.2.5 now.
let see what I get, it should be eassy to build the libraries, but no the demos sinc eI am converting then to Qt
But I guess you only need the libraries
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby Julio Jerez » Sat Feb 05, 2011 1:16 pm

I got xcode 3.2, but now it tells me that I nee to install OS 10.6

My Mac has 10.5.6 and when I click update it says the it does not need update.
Does that means that OS 10.6 is not a free update?

this is one of the problem I have with Mac, they do not keep backward compatibility,
xcode 2.5 does not work with OS 10.5 and now xcode 3.2 is not compatitble with xcode 3.1
what is that all about?
do Mac user has all that money to buy OS each time Mac makes a simple update?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Dependency from pthread_join$UNIX2003 is not good idea.

Postby thedmd » Sat Feb 05, 2011 5:07 pm

Apple released 10.6 as Snow Leopard, 10.5 was just Leopard. That's make it a distinct OS version and probably the update is not free.
"God started from scratch too"
User avatar
thedmd
 
Posts: 149
Joined: Fri Jun 26, 2009 11:52 pm

Next

Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 2 guests

cron