From owner-freebsd-amd64@FreeBSD.ORG Thu Jun 23 15:56:50 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 059BE16A41C for ; Thu, 23 Jun 2005 15:56:50 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EE6343D53 for ; Thu, 23 Jun 2005 15:56:49 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr1.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5NFulu2034345; Thu, 23 Jun 2005 17:56:48 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 183AF617F; Thu, 23 Jun 2005 17:56:47 +0200 (CEST) Date: Thu, 23 Jun 2005 17:56:47 +0200 From: Roland Smith To: "Morten A. Middelthon" Message-ID: <20050623155647.GD59771@slackbox.xs4all.nl> Mail-Followup-To: "Morten A. Middelthon" , freebsd-amd64@freebsd.org References: <20050623130010.GA74413@freenix.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9crTWz/Z+Zyzu20v" Content-Disposition: inline In-Reply-To: <20050623130010.GA74413@freenix.no> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-amd64@freebsd.org Subject: Re: mtx on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2005 15:56:50 -0000 --9crTWz/Z+Zyzu20v Content-Type: multipart/mixed; boundary="uxuisgdDHaNETlh8" Content-Disposition: inline --uxuisgdDHaNETlh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 23, 2005 at 03:00:10PM +0200, Morten A. Middelthon wrote: > Hi, >=20 > does anyone know the status of mtx on amd64? It's still marked as broken = on > ia64, sparc64 and amd64. I installed the i386-version via the precompiled > package, but it doesn't seem to be working properly, although that might = be > related to other issues.=20 The mtx package tries to use a processor flag that's invalid on anything but x86. Try applying the enclosed patch to the port. With this patch, it compiles cleanly. I can't test it because I haven't got any SCSI stuff :-) If it works, please submit a PR. Roland --=20 R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt --uxuisgdDHaNETlh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mtx.diff" Content-Transfer-Encoding: quoted-printable diff -urN mtx.orig/Makefile mtx/Makefile --- mtx.orig/Makefile Thu Mar 10 14:55:14 2005 +++ mtx/Makefile Thu Jun 23 17:42:59 2005 @@ -19,10 +19,4 @@ GNU_CONFIGURE=3D yes MAN1=3D loaderinfo.1 mtx.1 tapeinfo.1 scsitape.1 =20 -.include - -.if ${ARCH} =3D=3D "ia64" || ${ARCH} =3D=3D "sparc64" || ${ARCH} =3D=3D "a= md64" -BROKEN=3D "Does not compile on ia64, sparc64 and amd64" -.endif - -.include +.include diff -urN mtx.orig/files/patch-Makefile.in mtx/files/patch-Makefile.in --- mtx.orig/files/patch-Makefile.in Fri Feb 7 09:39:23 2003 +++ mtx/files/patch-Makefile.in Thu Jun 23 17:50:54 2005 @@ -1,14 +1,16 @@ ---- Makefile.in.orig Fri Feb 7 09:29:39 2003 -+++ Makefile.in Fri Feb 7 09:31:26 2003 -@@ -43,7 +43,11 @@ - # FreeBSD on x86... +--- Makefile.in.orig Wed Oct 2 18:55:29 2002 ++++ Makefile.in Thu Jun 23 17:50:34 2005 +@@ -40,11 +40,10 @@ + endif +=20 + # +-# FreeBSD on x86... ++# FreeBSD # ifeq ($(TARGET),freebsd86) -+ifeq ($(ARCH), alpha) -+CFLAGS +=3D -+else - CFLAGS +=3D -m486 -+endif - CPPFLAGS +=3D -I/usr/src/linux/include -DLONG_PRINT_REQUEST_SENSE=3D1 +-CFLAGS +=3D -m486 +-CPPFLAGS +=3D -I/usr/src/linux/include -DLONG_PRINT_REQUEST_SENSE=3D1 ++CPPFLAGS +=3D -DLONG_PRINT_REQUEST_SENSE=3D1 LIBS +=3D -lcam endif +=20 --uxuisgdDHaNETlh8-- --9crTWz/Z+Zyzu20v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCutu/EnfvsMMhpyURAq3CAJ9AyJwNC6I2ObkLSa2xZQIyaD5aVwCaAzYl E96DamFDOVHIgM8cn9kyxIU= =05bk -----END PGP SIGNATURE----- --9crTWz/Z+Zyzu20v--