Date: Fri, 01 Sep 2000 13:49:14 -0700 From: Mike Smith <msmith@freebsd.org> To: "bsdnewbie bsdnewbie" <bsdnewbie@hotmail.com> Cc: freebsd-scsi@FreeBSD.org Subject: Re: _Debug problem Message-ID: <200009012049.NAA05962@mass.osd.bsdi.com> In-Reply-To: Your message of "Fri, 01 Sep 2000 16:40:42 CST." <F210G10Gai4omRXf2LT000002a4@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> In order to debug my scsi driver, I add one line to my source code: > "#define CAMDEBUG" > and use the macro CAM_DEBUG to print messages > > However, when I try to install the module (I write a loadable module), > system report : > kernel: link_elf: symbol cam_dflags undefined. > can't load xxx: Exec format error You need to build a kernel with CAMDEBUG defined in your kernel config. > Therefore, I add another line to include the file which define "cam_dflags" > as follows: > "#include <cam/cam_xpt.c>" Don't do that. That file is part of the kernel, and is not meant to be included in anything else. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009012049.NAA05962>