From owner-freebsd-emulation@FreeBSD.ORG Wed Apr 4 00:31:54 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 A842A16A53E for ; Wed, 4 Apr 2007 00:31:54 +0000 (UTC) (envelope-from davegro@hotmail.com) Received: from bay0-omc3-s24.bay0.hotmail.com (bay0-omc3-s24.bay0.hotmail.com [65.54.246.224]) by mx1.freebsd.org (Postfix) with ESMTP id 8E24613C44C for ; Wed, 4 Apr 2007 00:31:54 +0000 (UTC) (envelope-from davegro@hotmail.com) Received: from hotmail.com ([65.55.132.15]) by bay0-omc3-s24.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 3 Apr 2007 17:31:54 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 3 Apr 2007 17:31:54 -0700 Message-ID: Received: from 68.45.124.27 by BAY127-DAV5.phx.gbl with DAV; Wed, 04 Apr 2007 00:31:51 +0000 X-Originating-IP: [68.45.124.27] X-Originating-Email: [davegro@hotmail.com] X-Sender: davegro@hotmail.com Message-ID: <4612F1EE.2070401@gmail.com> Date: Tue, 03 Apr 2007 20:31:42 -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: <200704031850.15669.jkim@FreeBSD.org> Content-Type: multipart/mixed; boundary="------------000307090309030409030305" X-OriginalArrivalTime: 04 Apr 2007 00:31:54.0286 (UTC) FILETIME=[A51B9CE0:01C77650] 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:31:54 -0000 This is a multi-part message in MIME format. --------------000307090309030409030305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------000307090309030409030305 Content-Type: text/plain; name="patch-configure" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-configure" --- 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 --------------000307090309030409030305--