[Jprogramming] libc's problem
Yuri Burger
yuri.burger at zoral.com.ua
Thu Dec 1 21:30:38 HKT 2005
somebody have tested J sockets on debian or fedore linux distributives?
test:
jsystemdefs 'netdefs'
require 'socket jpm files'
DefSockets =: (copath~ ('jsocket';'jdefs')&,@:copath) @: coname
DefSockets''
echo sdgethostbyname 'localhost'
it does not work fine with debian and fedore if the i686 and i386 builds
of libc are installed
the fast solution is to export LD_ASSUME_KERNEL=2.2.5 before starting
J, but this is not good.
the problem is:
when J started, 'ld' loads most specific libc (because J uses libc) - in
our case it loads libc from /lib/tls , or the i686 libc.
when sdgethostbyname called, the find_dll used to find the libc, and it
finds the /lib/libc.so.6 (but the J have loaded /lib/tls/libc.so.6 )...
and we have 2 different libc loaded.
So, how to fix this bug?
More information about the Programming
mailing list