From owner-freebsd-alpha Tue Apr 23 11:59:50 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from ponyexpress.interwoven.com (ponyexpress.interwoven.com [65.206.251.14]) by hub.freebsd.org (Postfix) with SMTP id 3098D37B41C for ; Tue, 23 Apr 2002 11:59:32 -0700 (PDT) Received: (qmail 10428 invoked from network); 23 Apr 2002 18:59:25 -0000 Received: from unknown (HELO relax.amer.interwoven.com) (10.192.9.96) by ponyexpress.interwoven.com with SMTP; 23 Apr 2002 18:59:25 -0000 Received: (from aelmore@localhost) by relax.amer.interwoven.com (8.11.6/8.11.1) id g3NIxOM46438 for freebsd-alpha@FreeBSD.ORG; Tue, 23 Apr 2002 11:59:24 -0700 (PDT) (envelope-from aelmore) Date: Tue, 23 Apr 2002 11:59:24 -0700 From: Andrew Elmore To: alpha Subject: Re: Anyone compile, install and run Mozilla 1.0 rc1 on FreeBSD 4.5 forAlpha? Message-ID: <20020423115924.C46116@interwoven.com> References: <1019584736.309.154.camel@roshomon.idnopheq.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1019584736.309.154.camel@roshomon.idnopheq.net>; from idnopheq@comcast.net on Tue, Apr 23, 2002 at 02:58:56PM -0300 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org what's the scoop on FreeBSD zip? I've been trying to figure this out, and it looks like stdio behaves differently on FreeBSD/alpha and FreeBSD/x86. The following test program mimics what zip does, in the failing code. it succeeds on x86 and fails on alpha. /* this program succedes on FreeBSD/x86, solaris8/sparc, where * 'test1.txt' files are smaller than 4095 * it succeeds on on FreeBSD/alpha where 'test1.txt' files are * larger than 4095 */ #include #include int main(void) { int rv; size_t zb; char buf[10000]; int tmp; FILE *fp = fopen("test1.txt", "rw"); if (fp == 0) { perror("fopen()"); exit(1); } rv = fseek(fp, -4096L, SEEK_END); zb = ftell(fp) + 4096L; rv = fseek(fp, 0L, SEEK_SET); clearerr(fp); tmp = ftell(fp); rv = fread(buf, 1, (size_t) zb, fp); if (rv == 0) { printf("::FAILED:: fread() got error %d\n", errno); } else { printf("::PASSED:: fread() read %d bytes\n", rv); } return 0; } On Tue, Apr 23, 2002 at 02:58:56PM -0300, Coffin, Dexter wrote: > Hi, All! > > As part of my on-going love of my Alpha box and FreeBSD, I'm trying to > get Mozilla to compile and run. I've got an LX164 running 4.5 Stable > using ports CVSUP-ed today at 10:00 AM EDT. > > To jump past certain hurdles, I had to swap FreeBSD's zip with the one I > installed with/using OSF/1 compatibility and manually compile pathsub.o > (without '-ffunction-sections' for some odd reason). Now I see ... > > > > gmake[2]: Leaving directory > `/usr/ports/www/mozilla/work/mozilla/embedding/browser/gtk/tests' > gmake[1]: Leaving directory `/usr/ports/www/mozilla/work/mozilla' > /usr/bin/sed -e "s;@PREFIX@;/usr/X11R6;g" > /usr/ports/www/mozilla/files/mozilla.sh > >/usr/ports/www/mozilla/work/mozilla/mozilla > (cd /usr/ports/www/mozilla/work/mozilla/dist/bin; /usr/bin/env > LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; echo > skin,install,select,classic/1.0 >> chrome/installed-chrome.txt; echo > locale,install,select,en-US >> chrome/installed-chrome.txt; > /usr/bin/env LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome) > /usr/libexec/ld-elf.so.1: ./libxpcom.so: Unsupported relocation type 240 > in non-PLT relocations > > *** Error code 1 > > Stop in /usr/ports/www/mozilla. > > > > My understanding of PLT errors is that they are rare and the valid > values are 0 through 10 (at least for i386). So what's up with a value > of 240??? Before 1.0 rc1, the "Unsupported relocation" was type 8 which > should be valid (again, at least on i386). > > I 'make clean'-ed, removed the source from /usr/ports/distfiles, and > recompiled ld-elf.so.1. Yet the darned thing still fails to compile. > Anyone have thoughts? I've seen this issue since about 0.91 or so. > Before I submit a bug report, I thought I ask the list if anyone was > successful with Mozilla on Alpha and how they did it. > > TIA! > > Dex > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message