From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q0DCPJUH021295 for ; Fri, 13 Jan 2012 13:25:19 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApACADkiEE/U4xEJk2dsb2JhbABChRCoCCIBAQEBCQkLCRQDIoFyAQEEASNWBQsLEggCJgICSQ4GEwmHcQIGpVqRQYEvgk6HCoEWBI0ljT6Mbw X-IronPort-AV: E=Sophos;i="4.71,504,1320620400"; d="scan'208";a="126763945" Received: from moutng.kundenserver.de ([212.227.17.9]) by mail4-smtp-sop.national.inria.fr with ESMTP; 13 Jan 2012 13:25:14 +0100 Received: from office1.lan.sumadev.de (dslb-094-219-216-241.pools.arcor-ip.net [94.219.216.241]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MMJbN-1Rksyq1Pa9-007qIK; Fri, 13 Jan 2012 13:25:13 +0100 Received: from [192.168.5.106] (dslb-094-219-216-241.pools.arcor-ip.net [94.219.216.241]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 04E28C00CE; Fri, 13 Jan 2012 13:25:13 +0100 (CET) From: Gerd Stolpmann To: Philippe Veber Cc: caml users In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Fri, 13 Jan 2012 13:25:17 +0100 Message-ID: <1326457517.14288.11.camel@thinkpad> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:SGAItZ/wrjmEWV3Tdt5AHkfvRBXrY914rMZJNWlxGm+ QW6wbr4Dtv3egAPmUnWPd9zbrZeJNesUXoa7wXhyhhHxCxTXL4 IP7BBtdeUUHbxjqZZYkxu3HFWPBh57P7+qNQs8TOqRFZIy8Hc/ A59kHLU4dn1jqc3C8W84gDQ1HPTLptP53oyqpP0UxdoCmNUhTR loLA/X41/kh6K9qtS+JrTI8TouNhBt0Xe1pOTKGEWa3hPw9JB5 LxbXtE4I+Kkc3/HlA4mRayb1sGRFUGIHkq6NwGwPZ3EOvZeDgI exEHRmlaPNxagDtYnSdAbT9ogp5+VO6baGqBZj0XthBGZ3h0wT iydinowB9skXcqTBK/7G93SZjMoAIgJH6EQoZEyZO Subject: Re: [Caml-list] Compiling the ocaml distribution under multiarched Debian/Ubuntu Am Freitag, den 13.01.2012, 12:59 +0100 schrieb Philippe Veber: > Dear camlers, > > Debian and Ubuntu have not so recently switched to multiarch binaries > (including libs, see http://wiki.debian.org/Multiarch/Implementation). > This is an important change for ocaml C bindings since the libraries > are now to be found in /usr/lib/ instead > of /usr/lib. I was just bitten by this, when realizing that the ocaml > configure script couldn't find libX11.so and wouldn't install > graphics. A similar problem was handled by the people in charge of > debian ocaml packages > (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619344). Now my > question is the following: will this evolution be a problem for > GODI/odb packages (and more generally source distribution), and what > is the advised fix for it? Good question. For GODI it means that the automatic library search is broken. You can set the library path in most cases manually, though. (So far I overlook it, this is only a problem for the libs in /usr/lib// but not for the ones in /usr/lib/ because the latter can be linked without -L switches.) The question is how to generically work around this. GODI could provide a variable $USR_LIB_ARCH for the architecture-specific path prefix corresponding to /usr/lib/, which is set if "dpkg-architecture -qDEB_HOST_MULTIARCH" returns something. All the conf packages would need to be updated. In the future we will have many errors because not all package developers will test on multiarch-enabled systems. Don't know what else needs to be done. Gerd > Cheers, > Philippe. > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de *** Searching for new projects! Need consulting for system *** programming in Ocaml? Gerd Stolpmann can help you. ------------------------------------------------------------