From owner-freebsd-emulation Wed Jan 12 8:57:49 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from ds.express.ru (ds.express.ru [212.24.32.7]) by hub.freebsd.org (Postfix) with ESMTP id 36DE71568E for ; Wed, 12 Jan 2000 08:56:15 -0800 (PST) (envelope-from vova@express.ru) Received: from lanturn.kmost.express.ru ([212.24.37.109]) by ds.express.ru with esmtp (Exim 2.12 #8) id 128R3z-0006N1-00 for emulation@freebsd.org; Wed, 12 Jan 2000 19:56:03 +0300 Date: Wed, 12 Jan 2000 19:56:00 +0300 (MSK) From: "Vladimir B. Grebeschikov" X-Sender: vova@lanturn.kmost.express.ru To: emulation@freebsd.org Subject: DUAL-brand ELF binaries Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Is there theoretical problem to make dual-brand binaries ? real situation: I need FreeBSD program with linux libraries It seems it need to load some kind of universal loader ... I don't know perl loads (!) linux and freebsd libraries but makes core while linking # ldconfig -m /compat/linux/lib # ldconfig -m /compat/linux/usr/lib # perl use DBD::Oracle; ^D Bus error (core dumped) # gdb -c perl.core /usr/bin/perl GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"...(no debugging symbols found)... Core was generated by `perl'. Program terminated with signal 10, Bus error. Reading symbols from /usr/lib/libperl.so.3...(no debugging symbols found)...done. Reading symbols from /usr/lib/libm.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done. Reading symbols from /usr/lib/libmd.so.2...(no debugging symbols found)...done. Reading symbols from /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI/DBI.so... (no debugging symbols found)...done. Reading symbols from /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBD/Oracle/Oracle.so... (no debugging symbols found)...done. Reading symbols from /compat/linux/usr/lib/libclntsh.so.1.0...done. Reading symbols from /compat/linux/lib/libm.so.6...done. Reading symbols from /compat/linux/lib/libc.so.6...done. Reading symbols from /compat/linux/lib/ld-linux.so.2...done. Reading symbols from /usr/libexec/ld-elf.so.1...done. #0 0x2814e9a4 in strrchr () from /usr/lib/libc.so.4 (gdb) bt #0 0x2814e9a4 in strrchr () from /usr/lib/libc.so.4 #1 0x2860c6cc in __DTOR_END__ () from /compat/linux/lib/libc.so.6 #2 0x2858b121 in __libc_init (argc=671460104, argv=0x2805e900, envp=0x2861b740) at set-init.c:23 #3 0x2858b1ef in init (argc=671460104, argv=0x2805e900, envp=0x2861b740) at ../sysdeps/unix/sysv/linux/init-first.c:74 #4 0x2858b271 in _init (arg=0x2805ab08) at ../sysdeps/unix/sysv/linux/init-first.c:86 #5 0x2804c732 in _rtld_error () from /usr/libexec/ld-elf.so.1 #6 0x2804c71e in _rtld_error () from /usr/libexec/ld-elf.so.1 #7 0x2804c71e in _rtld_error () from /usr/libexec/ld-elf.so.1 #8 0x2804c71e in _rtld_error () from /usr/libexec/ld-elf.so.1 #9 0x2804da45 in dlopen () from /usr/libexec/ld-elf.so.1 #10 0x80490fc in XS_DynaLoader_dl_load_file () #11 0x280b1caa in Perl_pp_entersub () from /usr/lib/libperl.so.3 #12 0x2807ae51 in Perl_runops_standard () from /usr/lib/libperl.so.3 #13 0x280e5309 in perl_call_sv () from /usr/lib/libperl.so.3 #14 0x280e8148 in Perl_call_list () from /usr/lib/libperl.so.3 #15 0x280c9044 in Perl_newSUB () from /usr/lib/libperl.so.3 #16 0x280c6645 in Perl_utilize () from /usr/lib/libperl.so.3 #17 0x280cce46 in Perl_yyparse () from /usr/lib/libperl.so.3 #18 0x280e46b6 in perl_parse () from /usr/lib/libperl.so.3 #19 0x8048d82 in perl_free () #20 0x8048cad in perl_free () (gdb) -- TSB Russian Express, Moscow Vladimir B. Grebenschikov, vova@express.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message