From owner-freebsd-emulation@FreeBSD.ORG Tue Aug 28 13:17:37 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D1A1106566B; Tue, 28 Aug 2012 13:17:37 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from lwfs1-cam.cam.lispworks.com (mail.lispworks.com [193.34.186.230]) by mx1.freebsd.org (Postfix) with ESMTP id B26838FC0C; Tue, 28 Aug 2012 13:17:36 +0000 (UTC) Received: from higson.cam.lispworks.com (higson.cam.lispworks.com [192.168.1.7]) by lwfs1-cam.cam.lispworks.com (8.14.5/8.14.5) with ESMTP id q7SD6T5V095588; Tue, 28 Aug 2012 14:06:29 +0100 (BST) (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (localhost.localdomain [127.0.0.1]) by higson.cam.lispworks.com (8.14.4) id q7SD6TNJ028695; Tue, 28 Aug 2012 14:06:29 +0100 Received: (from martin@localhost) by higson.cam.lispworks.com (8.14.4/8.14.4/Submit) id q7SD6TVS028691; Tue, 28 Aug 2012 14:06:29 +0100 Date: Tue, 28 Aug 2012 14:06:29 +0100 Message-Id: <201208281306.q7SD6TVS028691@higson.cam.lispworks.com> From: Martin Simmons To: "Julian H. Stacey" In-reply-to: <201208231229.q7NCTnTc092147@fire.js.berklix.net> (jhs@berklix.com) References: <201208231229.q7NCTnTc092147@fire.js.berklix.net> Cc: freebsd-emulation@freebsd.org, hrs@freebsd.org Subject: Re: /usr/ports/print/acroread9 & ldd shared lib errors (fwd) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2012 13:17:37 -0000 >>>>> On Thu, 23 Aug 2012 14:29:49 +0200, Julian H Stacey said: > > Hi, > Hiroki Sato wrote: > > "Julian H. Stacey" wrote > > > > jh> Hi hrs@FreeBSD.org, > > jh> Sorry, just realised I should have sent you a copy of this > > jh> > > jh> Forwarded from: "Julian Stacey" http://www.berklix.com/~jhs/ > > jh> ------- Forwarded Message > > jh> > > jh> To: freebsd-emulation@freebsd.org > > jh> Subject: /usr/ports/print/acroread9 & ldd shared lib errors > > jh> From: "Julian H. Stacey" > > jh> Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany > > jh> User-agent: EXMH on FreeBSD http://berklix.com/free/ > > jh> X-URL: http://www.berklix.com > > jh> In-reply-to: Your message "Wed, 22 Aug 2012 18:41:06 +0200." > > jh> <20120822164106.GE4301@localhost> > > jh> Date: Thu, 23 Aug 2012 00:35:43 +0200 > > jh> Sender: jhs@fire.js.berklix.net > > jh> > > jh> Hi freebsd-emulation@ > > jh> I am trying to get current version of /usr/ports/print/acroread9 > > jh> to work on FreeBSD8.2-RELEASE src/ based systems, both i386 & amd64 > > jh> available here (also available: 8.3-REL & 9.0-REL amd64 if necessary). > > jh> > > jh> I am seeing errors from ldd, shown on my > > jh> http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/doc/en_US.ISO8859-1/books/handbook/linuxemu-adobe.html > > jh> > > jh> & request help/ suggestions. > > jh> Once I have this working, I'd happily smarten the page & then send-p > > jh> to help others. > > jh> > > jh> I have eg libBIB.so but not sure where to toss it ? > > jh> I currently have 2 copies even, in compat & local. > > > > I cannot understand what your problem is. acroread9 did not run on > > your system? > > Right, It starts, but various errors, both to invoking command line > & also to pop up windows, please see > > http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/doc/en_US.ISO8859-1/books/handbook/linuxemu-adobe.html > > where I documented checking everything to see what was wrong, & found > ldd shows some libs are still unresolved per URL above: > i386 > libBIB.so => not found > amd64 > libBIB.so: cannot open shared object file > libs remained missing after > (cd /usr/local/Adobe/Reader9;tar cf - . )|(cd /compat/linux/Adobe/Reader9 && tar xf - ) > ldconfig -R /compat/linux/Adobe/Reader9/ENU/Adobe/Reader9/Reader/intellinux/lib > ldd /usr/local/Adobe/Reader9/ENU/Adobe/Reader9/Reader/intellinux/bin/acroread > > Please see my web page at text lines: > because per quote from `man ldconfig`: > Filenames must conform to the lib > > I or you in port could cludge those numeric failures, (rename, relink) > but is it necessary to ? > or should the Linux ABI/emulator work round it ? > I presume it's common for Linux to have .so.[0-9].[0.9] & FreeBSD to use just .so.[0-9] > So I guess FreeBSD might already have some standard mapping mechanism for Linux lib names ? > > I dont know if acroread libs should be in /usr/local or /compat ? > > I don't know if I should be setting more ldconfig vars in rc.conf ? > > Currently in rc.conf I have > ldconfig_paths="/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg \ > /usr/local/lib/browser_plugins/gnash /usr/local/lib/gio/modules \ > /usr/local/Adobe/Reader9/ENU/Adobe/Reader9/Reader/intellinux/lib" > I have no other ldconfig vars set, so I'm inheriting /etc/defaults/rc.conf > Should I set other ldconfig vars ? > eg any of ldconfig_insecure ldconfig32_paths ldconfig_paths_aout > ldconfig_local_dirs ldconfig_local32_dirs > Should I be copying those libs somewhere else ? to a 32 directory maybe ? The libs in Reader9/Reader/intellinux/lib are private to acroread, so I'm not convinced that they should be put in the ldconfig cache. On native Linux, these libs are located without any special ldconfig guff because the acroread front-end script (Reader9/bin/acroread) points LD_LIBRARY_PATH to them. Maybe that script is malfunctioning under the emulator? You could try running it with sh -x. > After > ldconfig -R /compat/linux/Adobe/Reader9/ENU/Adobe/Reader9/Reader/intellinux/lib > on amd64 > acroread > click File Open (& dont get as far as selecting any file) > I see > libfam.so.0: cannot open shared object file: No such file or directory > Failed to load module: /usr/lib/gio/modules/libgiofam.so > (acroread:92034): GLib-GIO-WARNING **: Could not initialize inotify > (acroread:92034): GLib-GIO-WARNING **: Could not initialize inotify > (acroread:92034): Gtk-WARNING **: Unable to find default local directory monitor type > (acroread:92034): Gtk-WARNING **: Unable to find default local directory monitor type > > On i386 just after clicking File > libfam.so.0: cannot open shared object file: No such file or directory > Failed to load module: /usr/lib/gio/modules/libgiofam.so > (acroread:2360): GLib-GIO-WARNING **: Could not initialize inotify > (acroread:2360): GLib-GIO-WARNING **: Could not initialize inotify > (acroread:2360): Gtk-WARNING **: Unable to find default local directory monitor type FWIW, libfam.so.0 is part of the gamin package on Fedora. __Martin