From owner-freebsd-emulation@FreeBSD.ORG Wed Apr 4 00:38:48 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B1A2116A405 for ; Wed, 4 Apr 2007 00:38:48 +0000 (UTC) (envelope-from davegro@hotmail.com) Received: from bay0-omc2-s17.bay0.hotmail.com (bay0-omc2-s17.bay0.hotmail.com [65.54.246.153]) by mx1.freebsd.org (Postfix) with ESMTP id 993F113C45A for ; Wed, 4 Apr 2007 00:38:48 +0000 (UTC) (envelope-from davegro@hotmail.com) Received: from hotmail.com ([65.55.132.11]) by bay0-omc2-s17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 3 Apr 2007 17:38:48 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 3 Apr 2007 17:38:48 -0700 Message-ID: Received: from 68.45.124.27 by BAY127-DAV1.phx.gbl with DAV; Wed, 04 Apr 2007 00:38:43 +0000 X-Originating-IP: [68.45.124.27] X-Originating-Email: [davegro@hotmail.com] X-Sender: davegro@hotmail.com Message-ID: <4612F38F.7010004@gmail.com> Date: Tue, 03 Apr 2007 20:38:39 -0400 From: Dave Grochowski User-Agent: Thunderbird 1.5.0.7 (X11/20061110) MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <6eb82e0704030258h5671b9d7g4dd1c1a164d0ef98@mail.gmail.com> <200704031850.15669.jkim@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Apr 2007 00:38:48.0384 (UTC) FILETIME=[9BEDF400:01C77651] Subject: Re: [RFC] Port for nspluginwrapper 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: Wed, 04 Apr 2007 00:38:48 -0000 Hey, Dave Grochowski wrote: > Hey, > > Jung-uk Kim wrote: >> On Tuesday 03 April 2007 05:58 am, Rong-en Fan wrote: >> >>> On 3/31/07, Dave Grochowski wrote: >>> >>>> Hey all, >>>> >>>> I wrote a port for nspluginwrapper, which you can find at: >>>> >>>> http://elvis.rowan.edu/~grocho98/nspluginwrapper.tar.bz2 >>>> >>>> For those who do not know what it is, you can find the homepage >>>> at: >>>> >>>> http://gwenole.beauchesne.info/projects/nspluginwrapper/ >>>> >>> I polished the port a little bit: >>> >>> http://people.freebsd.org/~rafan/nspluginwrapper.shar >>> >>> It includes 1) installing to LOCALBASE 2) correct pkg-plist on >>> amd64, and 3) correct dependency. >>> >>> Can someone please verify this port still works on i386? Thanks! >>> >>> BTW, anyone tried on amd64? I can not get it work. It seems that >>> it dlopen(3) the plugin .so then it fails... I'm wondering why it >>> works on i386. >>> >> >> Here is a patch for amd64: >> >> http://people.freebsd.org/~jkim/patch-src-sysdeps.h >> >> I just briefly tested with Linux Flash plugin and it seems working >> correctly. >> >> Jung-uk Kim >> >> > Actually, the configure script has some Linuxisms in it for the arch > detection. Try the attached patch and see if that fixes the problem. > > Sincerely, > Dave Grochowski > ------------------------------------------------------------------------ > > --- configure.orig Sun Mar 4 10:01:22 2007 > +++ configure Tue Apr 3 20:13:44 2007 > @@ -6,13 +6,8 @@ > PACKAGE=nspluginwrapper > > # set temporary file name > -if test ! -z "$TMPDIR" ; then > - TMPDIR1="${TMPDIR}" > -elif test ! -z "$TEMPDIR" ; then > - TMPDIR1="${TEMPDIR}" > -else > - TMPDIR1="/tmp" > -fi > +mkdir -p tmp > +TMPDIR1="./tmp" > > TMPC="${TMPDIR1}/npw-conf-${RANDOM}-$$-${RANDOM}.c" > TMPO="${TMPDIR1}/npw-conf-${RANDOM}-$$-${RANDOM}.o" > @@ -51,7 +46,7 @@ > host_cpu="sparc64" > ;; > x86_64|amd64) > - host_cpu="x86_64" > + host_cpu="amd64" > ;; > *) > host_cpu="unknown" > @@ -75,6 +70,9 @@ > --prefix=*) > prefix=`echo $opt | cut -d '=' -f 2` > ;; > +--x11=*) > + x_base_dirs=`echo $opt | cut -d '=' -f 2` > + ;; > --pkglibdir=*) > pkglibdir=`echo $opt | cut -d '=' -f 2` > ;; > @@ -114,7 +112,7 @@ > # check for biarch build > if test "$biarch" = "guess"; then > case $host_cpu:$target_cpu in > - x86_64:i386 | ppc64:ppc) > + amd64:i386 | ppc64:ppc) > biarch="yes" > ;; > *) > @@ -153,7 +151,7 @@ > ;; > esac > case $host_cpu:$nspluginwrapper_64bit_output in > - ppc64:yes | s390x:yes | sparc64:yes | x86_64:yes) > + ppc64:yes | s390x:yes | sparc64:yes | amd64:yes) > lib64="lib64" > ;; > *) > @@ -279,10 +277,12 @@ > fi > > # check for X11 base dir > -x_base_dirs=' > -/usr > -/usr/X11R6 > -/usr/local/X11R6' > +if test -z "$x_base_dirs"; then > + x_base_dirs=' > + /usr > + /usr/X11R6 > + /usr/local' > +fi > for dir in $x_base_dirs; do > x_include_dir="$dir/include" > if test -f $x_include_dir/X11/Intrinsic.h; then > @@ -407,6 +407,7 @@ > echo " --target-os=OS build plugin support for target OS [$target_os]" > echo " --target-cpu=CPU build plugin support for target CPU [$target_cpu]" > echo " --with-viewer build viewer [$build_viewer]" > +echo " --x11=PREFIX path to X11 base" > echo "" > echo "Advanced options (experts only):" > echo " --source-path=PATH path of source code [$source_path]" > @@ -474,10 +475,10 @@ > echo "ARCH=i386" >> $config_mak > echo "#define HOST_I386 1" >> $config_h > echo "#define HOST_ARCH \"i386\"" >> $config_h > -elif test "$host_cpu" = "x86_64" ; then > - echo "ARCH=x86_64" >> $config_mak > +elif test "$host_cpu" = "amd64" ; then > + echo "ARCH=amd64" >> $config_mak > echo "#define HOST_X86_64 1" >> $config_h > - echo "#define HOST_ARCH \"x86_64\"" >> $config_h > + echo "#define HOST_ARCH \"amd64\"" >> $config_h > elif test "$host_cpu" = "ppc" ; then > echo "ARCH=ppc" >> $config_mak > echo "#define HOST_PPC 1" >> $config_h > > ------------------------------------------------------------------------ > > _______________________________________________ > 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" > Well, this is patch is kind of stupid now that I think about it, since it enables the biarch build (which we don't really need). Either biarch has to be explicitly disabled or we'll just have to break that check again. jkim's patch is a lot simpler in this regard. =) Sincerely, Dave Grochowski