From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49789 invoked by alias); 30 Apr 2016 11:54:29 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 49760 invoked by uid 89); 30 Apr 2016 11:54:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=DLL, xpdf, cygxt6dll, cygxt-6.dll X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 30 Apr 2016 11:54:26 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1awTTa-0001FZ-C3 for cygwin-apps@cygwin.com; Sat, 30 Apr 2016 13:54:22 +0200 Received: from c-69-140-37-22.hsd1.md.comcast.net ([69.140.37.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Apr 2016 13:54:22 +0200 Received: from schulman.andrew by c-69-140-37-22.hsd1.md.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Apr 2016 13:54:22 +0200 To: cygwin-apps@cygwin.com From: Andrew Schulman Subject: Re: unison-2.48 build fails with latest ocaml and flexdll (ping: Yaakov, Damien) Date: Sat, 30 Apr 2016 11:54:00 -0000 Message-ID: <2169ibt34ifh3cr6s63bovbnb3ed485lj1@4ax.com> References: <18002c59-1b77-5912-f5fa-c3e39540b8d8@gmail.com> <41t6ibtbcojbmar8blrc80fk8tmplbbuj3@4ax.com> <41t6ibtbcojbmar8blrc80fk8tmplbbuj3-e09XROE/p8c@public.gmane.org> <5723B6C7.8090100@maxrnd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00049.txt.bz2 > A bald xpdf run failed with... > Cygwin runtime failure: /usr/bin/xpdf.exe: Invalid relocation. Offset > 0x2fb02bad9 at address 0x100494523 doesn't fit into 32 bits > I rebased /usr/bin/cygXt-6.dll from 0x0003fb480000 down to 0x0000fb480000, i.e. > just turn the first 3 in the address to 0, and that allowed xpdf to run. So I tried this, moving dllunix.so from 0x3e6440000 down to 0xe6440000: $ rebase -i /usr/lib/ocaml/stublibs/dllunix.so /usr/lib/ocaml/stublibs/dllunix.so base 0x0003e6440000 size 0x0004b000 $ rebase -b 0xe6440000 /usr/lib/ocaml/stublibs/dllunix.so $ rebase -i /usr/lib/ocaml/stublibs/dllunix.so /usr/lib/ocaml/stublibs/dllunix.so base 0x0000e6440000 size 0x0004b000 The build still failed, so I moved it down further, to 0x06440000. After that the build still failed but on a different DLL, /usr/lib/ocaml/stublibs/dllcamlstr.so. So I rebased that one too, down to 0x06510000. And finally the build succeeded! (Well, it still failed, but in a source code problem, not a DLL problem.) So thank you! to everyone who helped on this. I'm just a poor package maintainer and this stuff is a bit over my head. Damien: OCaml is broken OOTB in x86_64. dllunix.so and dllcamlstr.so need to be rebased before it will work. Andrew