-
Notifications
You must be signed in to change notification settings - Fork 578
Solaris, threads, and linking (was Re: Standalone JNI.pm/JNI.xs) #465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From [email protected]On Sat, 28 Aug 1999, Brian Jepson wrote:
I found a workaround for this. Before I came across the workaround, I Apparently, this error is triggered whenever you use JNI without linking Here is the information on this JNI problem: http://developer.java.sun.com/developer/bugParade/bugs/4164029.html Anyhow, it turns out that *even* if you build a threading Perl, Perl does: libs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -lc -lcrypt and one of those (-lsocket? -ldl?) is probably going to cause libc to be # ldd /lib/libsocket.so FWIW, I think libpthread on solaris is a wrapper around libthread: # ls -l /lib/libthread.so.1 So What?Armed with this information, and using a fresh build of 5.005_03, I was LD_PRELOAD=/usr/lib/libthread.so.1 perl -I./blib/arch -I./blib/auto \ and the tests passed, the frame appeared - I was not using I also got the above to work with the binary distribution of 5.005_03 from What's Next?Now, I'm going to rebuild 5.005_03 with libs='-lpthread -lc -lsocket -lnsl I'm wondering if this linking order will adversely affect normal threading Brian Jepson * (bjepson@home.com) * http://users.ids.net/~bjepson |
Migrated from rt.perl.org#1306 (status was 'resolved')
Searchable as RT1306$
The text was updated successfully, but these errors were encountered: