From owner-freebsd-emulation@FreeBSD.ORG Sun May 25 11:35:13 2003 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F239E37B401 for ; Sun, 25 May 2003 11:35:12 -0700 (PDT) Received: from iago.cs.wisc.edu (iago.cs.wisc.edu [128.105.123.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4183E43FAF for ; Sun, 25 May 2003 11:35:12 -0700 (PDT) (envelope-from jolson@iago.cs.wisc.edu) Received: (from jolson@localhost) by iago.cs.wisc.edu (8.9.2/8.9.2) id NAA16664 for freebsd-emulation@freebsd.org; Sun, 25 May 2003 13:35:11 -0500 (CDT) Date: Sun, 25 May 2003 13:35:11 -0500 From: James Olson To: freebsd-emulation@freebsd.org Message-ID: <20030525133511.A14544@iago.cs.wisc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: problems compiling sun jdk1.3.1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 25 May 2003 18:35:13 -0000 I have been having issues with installing the jdk1.3.1 port on freebsd -STABLE I contacted the ports maintainer of the sun jdk1.3.1 and he referred me to this list as it appears that there is an emulation issue. I will paste what I've found so far. in /usr/ports/java/jdk13 I ran make and received the following error i386 Build started: 1.3.1-p8-nixer-030524-15:37 ELF interpreter /compat/svr4/lib/ld-linux.so.2 not found ELF interpreter /compat/svr4/lib/ld-linux.so.2 not found ERROR: Your BOOTDIR environment variable does not point to a valid Java 2 SDK for bootstrapping this build. A Java 2 SDK 1.3.1 build must be bootstrapped against any 1.3 build. Please update your ALT_BOOTDIR setting, or just unset it, and start your build again. Upon further inspection of this error, I found the error coming from /usr/ports/java/jdk13/work/j2sdk1.3.1/make/tools/sanityck Line 412 j=$BOOTDIR/bin/java$EXE if [ -x $j ]; then When I ran java in $BOODIR/bin (in my case /usr/local/linux-sun-jdk1.3.1/bin) I received: ELF interpreter /compat/svr4/lib/ld-linux.so.2 not found Abort trap ELF interpreter /compat/svr4/lib/ld-linux.so.2 not found Abort trap ELF interpreter /compat/svr4/lib/ld-linux.so.2 not found Abort trap grep: /lib/jvm.cfg: No such file or directory grep: /lib/jvm.cfg: No such file or directory ELF interpreter /compat/svr4/lib/ld-linux.so.2 not found Abort Inspecting the java binary I found that it was branded SYSV (which would make sense as to the errors) > pwd /usr/local/linux-sun-jdk1.3.1/jre/bin/i386/green_threads > file java java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped I then went through and branded each executable in /usr/local/linux-sun-jdk1.3.1/ as Linux just to see if this was the problem and received similar errors about ELF interpreter /compat/svr4/lib/ld-linux.so.2 not found After perusing the web and google and talking to several people I couldn't find a solution and found that other people have had the same problems and just gave up. Any information on this that you could provide would be extremely helpful and I will help in any way that I can. -James From owner-freebsd-emulation@FreeBSD.ORG Mon May 26 08:17:54 2003 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F2AC37B401 for ; Mon, 26 May 2003 08:17:54 -0700 (PDT) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40F0F43F75 for ; Mon, 26 May 2003 08:17:53 -0700 (PDT) (envelope-from jon@witchspace.com) Received: from witchspace.com ([80.3.251.242]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with SMTP id <20030526151752.IWS12018.mta06-svc.ntlworld.com@witchspace.com> for ; Mon, 26 May 2003 16:17:52 +0100 Received: (qmail 13331 invoked from network); 26 May 2003 15:17:51 -0000 Received: from unknown (HELO witchspace.com) (192.168.0.1) by dookie.witchspace.com with SMTP; 26 May 2003 15:17:51 -0000 Message-ID: <3ED2301E.8070809@witchspace.com> Date: Mon, 26 May 2003 16:17:50 +0100 From: Jonathan Belson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030509 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Missing libstdc++-libc6.1-2.so.3 in linux emulation X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 26 May 2003 15:17:54 -0000 Hiya I'm working on updating a port for a linux binary-only application. The application in question links against libstdc++-libc6.1-2.so.3, which doesn't exist in /compat/linux/usr/lib. I created a soft link to libstdc++-2-libc6.1-1-2.9.0.so and everything worked fine. The question is, how can I do this or the equivalent in a port? Cheers, --Jon http://www.witchspace.com From owner-freebsd-emulation@FreeBSD.ORG Thu May 29 10:54:21 2003 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F150037B401 for ; Thu, 29 May 2003 10:54:21 -0700 (PDT) Received: from tiamat.relinetworks.com (tiamat.relinetworks.com [204.214.92.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 228F643F85 for ; Thu, 29 May 2003 10:54:19 -0700 (PDT) (envelope-from randrews@relinetworks.com) Received: from synapse-2.relinetworks.com (c-24-98-230-26.atl.client2.attbi.com [24.98.230.26])h4THsHNk015442 for ; Thu, 29 May 2003 13:54:18 -0400 (EDT) Message-Id: <5.1.0.14.2.20030529134622.00b8ea50@mail.relinetworks.com> X-Sender: rob@mail.relinetworks.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 29 May 2003 13:54:17 -0400 To: freebsd-emulation@freebsd.org From: Rob Andrews Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Linux emulation port install failure. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 29 May 2003 17:54:22 -0000 I've been running into a problem with installing the linux base port for FreeBSD 4.8. The box was originally a 4.7-release install and the linux emulation port was installed with sysinstall during the initial configuration of the machine. I have since attempted to completely deinstall and by hand removed the /compat/linux directory tree. The package installs correctly if I use sysinstall. It fails when I try to upgrade it via the port. Linux binaries do not run correctly unless I brandelf them. This includes the bins installed from the package. This is the error I get when attempting to install the port: bash-2.05b# make ===> Extracting for linux_base-7.1_4 >> Checksum OK for rpm/redhat-release-7.1-1.noarch.rpm. >> Checksum OK for rpm/setup-2.4.7-1.noarch.rpm. >> Checksum OK for rpm/filesystem-2.0.7-1.noarch.rpm. >> Checksum OK for rpm/basesystem-7.0-2.noarch.rpm. >> Checksum OK for rpm/termcap-11.0.1-8.noarch.rpm. >> Checksum OK for rpm/db1-1.85-5.i386.rpm. >> Checksum OK for rpm/db3-3.1.17-7.i386.rpm. >> Checksum OK for rpm/gdbm-1.8.0-5.i386.rpm. >> Checksum OK for rpm/glib-1.2.9-1.i386.rpm. >> Checksum OK for rpm/libtermcap-2.0.8-26.i386.rpm. >> Checksum OK for rpm/bash-2.04-21.i386.rpm. >> Checksum OK for rpm/bzip2-1.0.1-3.i386.rpm. >> Checksum OK for rpm/compat-libstdc++-6.2-2.9.0.14.i386.rpm. >> Checksum OK for rpm/ncurses-5.2-8.i386.rpm. >> Checksum OK for rpm/info-4.0-20.i386.rpm. >> Checksum OK for rpm/fileutils-4.0.36-4.i386.rpm. >> Checksum OK for rpm/grep-2.4.2-5.i386.rpm. >> Checksum OK for rpm/popt-1.6.2-8.i386.rpm. >> Checksum OK for rpm/readline-4.1-9.i386.rpm. >> Checksum OK for rpm/setserial-2.17-2.i386.rpm. >> Checksum OK for rpm/slang-1.4.2-2.i386.rpm. >> Checksum OK for rpm/sh-utils-2.0-13.i386.rpm. >> Checksum OK for rpm/rpm-4.0.2-8.i386.rpm. >> Checksum OK for rpm/freetype-2.0.1-4.i386.rpm. >> Checksum OK for rpm/XFree86-libs-4.0.3-5.i386.rpm. >> Checksum OK for rpm/glibc-common-2.2.4-32.i386.rpm. >> Checksum OK for rpm/glibc-2.2.4-32.i386.rpm. >> Checksum OK for rpm/zlib-1.1.3-25.7.i386.rpm. >> Checksum OK for rpm/libstdc++-2.96-112.7.1.i386.rpm. ===> Patching for linux_base-7.1_4 ===> linux_base-7.1_4 depends on executable: rpm - found ===> Configuring for linux_base-7.1_4 bash-2.05b# make install ===> Installing for linux_base-7.1_4 kern.fallback_elf_brand: 3 -> 3 glibc-common-2.2.4-32.i386.rpm glibc-2.2.4-32.i386.rpm execution of glibc-2.2.4-32 script failed, exit status 0 *** Error code 1 Stop in /usr/ports/emulators/linux_base. ----------------------------------------------------------------------------------- The current system revision: 4.8-RELEASE #1: Wed Apr 9 22:28:50 EDT 2003 Does anyone have any information which could help me to fix this problem? Rob Andrews RELI Networks, Inc. Marietta, GA. From owner-freebsd-emulation@FreeBSD.ORG Thu May 29 14:50:57 2003 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6407337B401 for ; Thu, 29 May 2003 14:50:57 -0700 (PDT) Received: from tank.siteone.net (tank.siteone.net [146.145.78.19]) by mx1.FreeBSD.org (Postfix) with SMTP id 7134E43F85 for ; Thu, 29 May 2003 14:50:56 -0700 (PDT) (envelope-from brian@aljex.com) Received: (qmail 89271 invoked by uid 89); 29 May 2003 21:50:56 -0000 Received: from bgp488062bgs.summit01.nj.comcast.net (HELO briandesk) (brian@aljex.com@68.37.188.170) by smtp.siteone.net with SMTP; 29 May 2003 21:50:56 -0000 Message-ID: <008c01c3262c$73656ff0$0e00000a@briandesk> From: "Brian K. White" To: References: <20030529190430.C7C2D37B408@hub.freebsd.org> Date: Thu, 29 May 2003 17:51:24 -0400 Organization: Aljex Software MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: freebsd-emulation Digest, Vol 9, Issue 2 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 29 May 2003 21:50:57 -0000 freebsd-emulation-request@freebsd.org wrote: > Send freebsd-emulation mailing list submissions to > freebsd-emulation@freebsd.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > or, via email, send a message with subject or body 'help' to > freebsd-emulation-request@freebsd.org > > You can reach the person managing the list at > freebsd-emulation-owner@freebsd.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of freebsd-emulation digest..." > > > Today's Topics: > > 1. Linux emulation port install failure. (Rob Andrews) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 29 May 2003 13:54:17 -0400 > From: Rob Andrews > Subject: Linux emulation port install failure. > To: freebsd-emulation@freebsd.org > Message-ID: <5.1.0.14.2.20030529134622.00b8ea50@mail.relinetworks.com> > Content-Type: text/plain; charset="us-ascii"; format=flowed > > > I've been running into a problem with installing the linux base port > for FreeBSD 4.8. > > The box was originally a 4.7-release install and the linux emulation > port was installed > with sysinstall during the initial configuration of the machine. I > have since attempted > to completely deinstall and by hand removed the /compat/linux > directory tree. > > The package installs correctly if I use sysinstall. It fails when I > try to upgrade it via > the port. Linux binaries do not run correctly unless I brandelf > them. This includes > the bins installed from the package. > > This is the error I get when attempting to install the port: > > bash-2.05b# make > ===> Extracting for linux_base-7.1_4 > >> Checksum OK for rpm/redhat-release-7.1-1.noarch.rpm. > >> Checksum OK for rpm/setup-2.4.7-1.noarch.rpm. > >> Checksum OK for rpm/filesystem-2.0.7-1.noarch.rpm. > >> Checksum OK for rpm/basesystem-7.0-2.noarch.rpm. > >> Checksum OK for rpm/termcap-11.0.1-8.noarch.rpm. > >> Checksum OK for rpm/db1-1.85-5.i386.rpm. > >> Checksum OK for rpm/db3-3.1.17-7.i386.rpm. > >> Checksum OK for rpm/gdbm-1.8.0-5.i386.rpm. > >> Checksum OK for rpm/glib-1.2.9-1.i386.rpm. > >> Checksum OK for rpm/libtermcap-2.0.8-26.i386.rpm. > >> Checksum OK for rpm/bash-2.04-21.i386.rpm. > >> Checksum OK for rpm/bzip2-1.0.1-3.i386.rpm. > >> Checksum OK for rpm/compat-libstdc++-6.2-2.9.0.14.i386.rpm. > >> Checksum OK for rpm/ncurses-5.2-8.i386.rpm. > >> Checksum OK for rpm/info-4.0-20.i386.rpm. > >> Checksum OK for rpm/fileutils-4.0.36-4.i386.rpm. > >> Checksum OK for rpm/grep-2.4.2-5.i386.rpm. > >> Checksum OK for rpm/popt-1.6.2-8.i386.rpm. > >> Checksum OK for rpm/readline-4.1-9.i386.rpm. > >> Checksum OK for rpm/setserial-2.17-2.i386.rpm. > >> Checksum OK for rpm/slang-1.4.2-2.i386.rpm. > >> Checksum OK for rpm/sh-utils-2.0-13.i386.rpm. > >> Checksum OK for rpm/rpm-4.0.2-8.i386.rpm. > >> Checksum OK for rpm/freetype-2.0.1-4.i386.rpm. > >> Checksum OK for rpm/XFree86-libs-4.0.3-5.i386.rpm. > >> Checksum OK for rpm/glibc-common-2.2.4-32.i386.rpm. > >> Checksum OK for rpm/glibc-2.2.4-32.i386.rpm. > >> Checksum OK for rpm/zlib-1.1.3-25.7.i386.rpm. > >> Checksum OK for rpm/libstdc++-2.96-112.7.1.i386.rpm. > ===> Patching for linux_base-7.1_4 > ===> linux_base-7.1_4 depends on executable: rpm - found > ===> Configuring for linux_base-7.1_4 > bash-2.05b# make install > ===> Installing for linux_base-7.1_4 > kern.fallback_elf_brand: 3 -> 3 > glibc-common-2.2.4-32.i386.rpm > glibc-2.2.4-32.i386.rpm > execution of glibc-2.2.4-32 script failed, exit status 0 > *** Error code 1 > > Stop in /usr/ports/emulators/linux_base. > ------------------------------------------------------------------------ ----------- > > The current system revision: 4.8-RELEASE #1: Wed Apr 9 22:28:50 EDT > 2003 > > Does anyone have any information which could help me to fix this > problem? I get the same thing. I have working linux emulation at the kernel/executable level, but don't have any linux_base installed. (can't!) I have a commercial database/rad application that I use a lot that comes in several unix versions including linux and it works perfect. However it's self contained, doesn't need any shared libraries etc... I had to brand my linux binaries too, until I learned about setting the default brand via sysctl. one of the lines above shows that the make script does this for you just before it tries to run any linux binary so it shouldn't be a branding problem. That's what this line was about: > kern.fallback_elf_brand: 3 -> 3 (also shows that your default brand was already linux anyways) I think I will just never ever ever ever have java. :) I can and do retrieve the latest sources and patches from all the places that the make script tells me to, but then it still needs something linux, thats where it always dies. What the *hell* is the problem with sun anyways that it is so impossible for anyone to redistribute binaries??? I thought they _wanted_ people to use it instead of active-x or whatever the teal monster comes up with next week. Aside from that, why, if we can download the source, is it still necessary to have anything involving linux emulation in order to build it anyways? I've taken several stabs at compiling java, (every few months for the last year and a half) and I'm no dolt, and I'm no newbie to unix, and in 1 1/2 years I still don't have it. :) I say the port should just be marked broken so people don't waste their time thinking "it's in the ports tree, so I should be able to install it as long as it isn't incompatible with some other port I've already installed or some other aspect of my machine." If it does work for some people, then the port is still broken even if all that's broken is the make script not checking dependancies thoroughly enough. Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/ +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani From owner-freebsd-emulation@FreeBSD.ORG Thu May 29 16:11:58 2003 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00E1737B401 for ; Thu, 29 May 2003 16:11:58 -0700 (PDT) Received: from tiamat.relinetworks.com (tiamat.relinetworks.com [204.214.92.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 439FD43F75 for ; Thu, 29 May 2003 16:11:57 -0700 (PDT) (envelope-from randrews@relinetworks.com) Received: from synapse-2.relinetworks.com (rob@c-24-98-230-26.atl.client2.attbi.com [24.98.230.26]) h4TNBsNk018274; Thu, 29 May 2003 19:11:54 -0400 (EDT) Message-Id: <5.1.0.14.2.20030529190159.02a90c90@mail.relinetworks.com> X-Sender: rob@mail.relinetworks.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 29 May 2003 19:11:54 -0400 To: "Brian K. White" , From: Rob Andrews In-Reply-To: <008c01c3262c$73656ff0$0e00000a@briandesk> References: <20030529190430.C7C2D37B408@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: freebsd-emulation Digest, Vol 9, Issue 2 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 29 May 2003 23:11:58 -0000 The problem comes that I am attempting to set this server up to run a halflife game server which does require that the linux base be installed. I've run FreeBSD 4.4 and 4.5 with linux emulation on the machines and these problems never occurred before. Worse yet is the fact that even if I use the package install through sysinstall, the only way that the binaries for linux work correctly is if I do in fact go through and brandelf all of them. This is so very confusing because I've never had to do this before to get a linux binary to run under freebsd. Several other friends of mine have told me that they do not have this same trouble with their 4.7/8 systems. I'm at a complete loss here. The halflife server under linux is less than stable but manages to be rock solid under FreeBSD's emulation. Another thing I don't quite understand. Oh well. As I said before, if anyone has a clue on why this is happening or what I can do to correct this problem please email me and let me know. Thanks for the info Brian, I was beginning to think I was the only one having this issue. At 05:51 PM 5/29/2003 -0400, Brian K. White wrote: >I get the same thing. > >I have working linux emulation at the kernel/executable level, but don't >have any linux_base installed. (can't!) I have a commercial database/rad >application that I use a lot that comes in several unix versions including >linux and it works perfect. However it's self contained, doesn't need any >shared libraries etc... > >I had to brand my linux binaries too, until I learned about setting the >default brand via sysctl. >one of the lines above shows that the make script does this for you just >before it tries to run any linux binary so it shouldn't be a branding >problem. That's what this line was about: > > kern.fallback_elf_brand: 3 -> 3 >(also shows that your default brand was already linux anyways) > >I think I will just never ever ever ever have java. :) >I can and do retrieve the latest sources and patches from all the places >that the make script tells me to, but then it still needs something linux, >thats where it always dies. > >What the *hell* is the problem with sun anyways that it is so impossible >for anyone to redistribute binaries??? I thought they _wanted_ people to >use it instead of active-x or whatever the teal monster comes up with next >week. >Aside from that, why, if we can download the source, is it still necessary >to have anything involving linux emulation in order to build it anyways? > >I've taken several stabs at compiling java, (every few months for the last >year and a half) and I'm no dolt, and I'm no newbie to unix, and in 1 1/2 >years I still don't have it. :) > >I say the port should just be marked broken so people don't waste their >time thinking "it's in the ports tree, so I should be able to install it >as long as it isn't incompatible with some other port I've already >installed or some other aspect of my machine." > >If it does work for some people, then the port is still broken even if all >that's broken is the make script not checking dependancies thoroughly >enough. > >Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/ >+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. >filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani > >_______________________________________________ >freebsd-emulation@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-emulation >To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"