From owner-freebsd-current@freebsd.org Fri Jan 27 01:09:27 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5553ACC3CE5 for ; Fri, 27 Jan 2017 01:09:27 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from mail.samsco.org (suzi.samsco.org [96.84.242.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3AA21338; Fri, 27 Jan 2017 01:09:26 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from localhost (localhost [192.168.254.3]) by mail.samsco.org (Postfix) with ESMTP id 3B32C15C18683; Fri, 27 Jan 2017 01:09:25 +0000 (UTC) Received: from mail.samsco.org ([192.168.254.3]) by localhost (mail.samsco.org [192.168.254.3]) (maiad, port 10024) with ESMTP id 31477-09; Fri, 27 Jan 2017 01:09:25 +0000 (UTC) Received: from lgml-scottl.lan (50-205-115-50-static.hfc.comcastbusiness.net [50.205.115.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: scottl@samsco.org) by mail.samsco.org (Postfix) with ESMTPSA id 08B4D15C1867C; Fri, 27 Jan 2017 01:09:25 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Revision 312827 fatal error: 'opt_printf.h' file not found From: Scott Long In-Reply-To: <8b742699-09ac-899e-bcd6-69509517df99@FreeBSD.org> Date: Thu, 26 Jan 2017 18:09:24 -0700 Cc: Alex Deiter , freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: <80D57CC4-CF85-41F9-B820-D21374114ABB@samsco.org> References: <61EB0DAA-70A1-4273-A64E-176D7B144D75@gmail.com> <8b742699-09ac-899e-bcd6-69509517df99@FreeBSD.org> To: Jung-uk Kim X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2017 01:09:27 -0000 > On Jan 26, 2017, at 5:22 PM, Jung-uk Kim wrote: >=20 > On 01/26/2017 19:17, Alex Deiter wrote: >> Hello, >>=20 >> patch: >>=20 >> Index: sys/cam/cam_xpt.h >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- sys/cam/cam_xpt.h (revision 312851) >> +++ sys/cam/cam_xpt.h (working copy) >> @@ -33,7 +33,10 @@ >> #define _CAM_CAM_XPT_H 1 >>=20 >> #include >> + >> +#ifdef _KERNEL >> #include "opt_printf.h" >> +#endif /* _KERNEL */ >>=20 >> Please take a look at the rev 312827: >>=20 >> --- scsi_da.o --- >> cc -target x86_64-unknown-freebsd12.0 = --sysroot=3D/export/freebsd/obj/export/freebsd/src/tmp = -B/export/freebsd/obj/export/freebsd/src/tmp/usr/bin -O2 -pipe = -I/export/freebsd/src/lib/libcam -I/export/freebsd/src/sys -DNDEBUG = -MD -MF.depend.scsi_da.o -MTscsi_da.o -std=3Dgnu99 = -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k = -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body = -Wno-string-plus-int -Wno-unused-const-variable = -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality = -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef = -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter = -Qunused-arguments -c /export/freebsd/src/sys/cam/scsi/scsi_da.c -o = scsi_da.o >> --- scsi_all.o --- >> In file included from /export/freebsd/src/sys/cam/scsi/scsi_all.c:59: >> /export/freebsd/src/sys/cam/cam_xpt.h:36:10: fatal error: = 'opt_printf.h' file not found >> #include "opt_printf.h" >=20 > I committed a fix already (r312852). >=20 > Jung-uk Kim Thank you for the help on this. Scott