Re: buildkernel failed related to hptmv drv

From: Tai-hwa Liang <avatar_at_mmlab.cse.yzu.edu.tw>
Date: Wed, 2 Mar 2005 21:26:06 +0800 (CST)
Try this fix.

diff -ru sys/dev/hptmv/entry.c /mnt/mfs/hptmv/entry.c
--- sys/dev/hptmv/entry.c	Mon Feb 28 14:02:16 2005
+++ /mnt/mfs/hptmv/entry.c	Wed Mar  2 18:24:19 2005
_at__at_ -44,7 +44,7 _at__at_
  #include <dev/hptmv/global.h>
  #include <dev/hptmv/hptintf.h>
  #include <dev/hptmv/osbsd.h>
-#include <contrib/dev/hptmv/access601.h>
+#include <dev/hptmv/access601.h>

  #ifdef DEBUG
  #ifdef DEBUG_LEVEL
diff -ru sys/dev/hptmv/global.h /mnt/mfs/hptmv/global.h
--- sys/dev/hptmv/global.h	Wed Jan 12 14:12:50 2005
+++ /mnt/mfs/hptmv/global.h	Wed Mar  2 18:21:54 2005
_at__at_ -29,8 +29,8 _at__at_
  #define _GLOBAL_H_

  #include <dev/hptmv/mvOs.h>
-#include <contrib/dev/hptmv/mvSata.h>
-#include <contrib/dev/hptmv/mvStorageDev.h>
+#include <dev/hptmv/mvSata.h>
+#include <dev/hptmv/mvStorageDev.h>

  #define COMPANY			"HighPoint Technologies, Inc."
  #define COPYRIGHT		"(c) 2000-2004. HighPoint Technologies, Inc."
_at__at_ -203,11 +203,11 _at__at_
  	UCHAR ptr##__buf[512];		\
  	type ptr=(type)ptr##__buf

-#include <contrib/dev/hptmv/atapi.h>
-#include <contrib/dev/hptmv/command.h>
-#include <contrib/dev/hptmv/array.h>
-#include <contrib/dev/hptmv/raid5n.h>
-#include <contrib/dev/hptmv/vdevice.h>
+#include <dev/hptmv/atapi.h>
+#include <dev/hptmv/command.h>
+#include <dev/hptmv/array.h>
+#include <dev/hptmv/raid5n.h>
+#include <dev/hptmv/vdevice.h>

  int HPTLIBAPI fDeReadWrite(PDevice pDev, ULONG Lba, UCHAR Cmd, void *tmpBuffer);
  void HPTLIBAPI fDeSelectMode(PDevice pDev, UCHAR NewMode);
diff -ru sys/dev/hptmv/gui_lib.c /mnt/mfs/hptmv/gui_lib.c
--- sys/dev/hptmv/gui_lib.c	Wed Mar  2 17:47:20 2005
+++ /mnt/mfs/hptmv/gui_lib.c	Wed Mar  2 18:24:45 2005
_at__at_ -45,7 +45,7 _at__at_
  #include <dev/hptmv/global.h>
  #include <dev/hptmv/hptintf.h>
  #include <dev/hptmv/osbsd.h>
-#include <contrib/dev/hptmv/access601.h>
+#include <dev/hptmv/access601.h>

  static int hpt_get_driver_capabilities(PDRIVER_CAPABILITIES cap);
  static int hpt_get_controller_count(void);
diff -ru sys/dev/hptmv/hptproc.c /mnt/mfs/hptmv/hptproc.c
--- sys/dev/hptmv/hptproc.c	Wed Mar  2 17:47:20 2005
+++ /mnt/mfs/hptmv/hptproc.c	Wed Mar  2 18:24:47 2005
_at__at_ -38,7 +38,7 _at__at_
  #include <dev/hptmv/global.h>
  #include <dev/hptmv/hptintf.h>
  #include <dev/hptmv/osbsd.h>
-#include <contrib/dev/hptmv/access601.h>
+#include <dev/hptmv/access601.h>

  int hpt_rescan_all(void);

diff -ru sys/dev/hptmv/ioctl.c /mnt/mfs/hptmv/ioctl.c
--- sys/dev/hptmv/ioctl.c	Wed Mar  2 17:47:20 2005
+++ /mnt/mfs/hptmv/ioctl.c	Wed Mar  2 18:24:30 2005
_at__at_ -36,7 +36,7 _at__at_
  #include <dev/hptmv/global.h>
  #include <dev/hptmv/hptintf.h>
  #include <dev/hptmv/osbsd.h>
-#include <contrib/dev/hptmv/access601.h>
+#include <dev/hptmv/access601.h>

  #pragma pack(1)

diff -ru sys/dev/hptmv/mvStorageDev.h /mnt/mfs/hptmv/mvStorageDev.h
--- sys/dev/hptmv/mvStorageDev.h	Wed Mar  2 17:47:20 2005
+++ /mnt/mfs/hptmv/mvStorageDev.h	Wed Mar  2 18:24:01 2005
_at__at_ -24,7 +24,7 _at__at_
   * SUCH DAMAGE.
   *
   * $FreeBSD: src/sys/dev/hptmv/mvStorageDev.h,v 1.2 2005/03/02 05:14:27 scottl Exp $
- *
+ */
  #ifndef __INCmvStorageDevh
  #define __INCmvStorageDevh


-- 
Cheers,
Tai-hwa Liang

On Wed, 2 Mar 2005, wsk wrote:

> whild building kernel , it failed with under errors.It maybe
> related to Scott Long commit the hpmtv src
> ===> hme (depend)
> ===> hptmv (depend)
> rm -f .depend
> mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I_at_
> -I_at_/contrib/altq -I_at_/../include -I/usr/src/sys/i386/compile/LP
> /usr/src/sys/modules/hptmv/../../dev/hptmv/mv.c
> /usr/src/sys/modules/hptmv/../../dev/hptmv/entry.c
> /usr/src/sys/modules/hptmv/../../dev/hptmv/ioctl.c
> /usr/src/sys/modules/hptmv/../../dev/hptmv/hptproc.c
> /usr/src/sys/modules/hptmv/../../dev/hptmv/gui_lib.c
> In file included from /usr/src/sys/modules/hptmv/../../dev/hptmv/mv.c:36:
> _at_/dev/hptmv/global.h:32:38: contrib/dev/hptmv/mvSata.h: No such file or
> directory
> _at_/dev/hptmv/global.h:33:44: contrib/dev/hptmv/mvStorageDev.h: No such
> file or directory
> _at_/dev/hptmv/global.h:206:37: contrib/dev/hptmv/atapi.h: No such file or
> directory
> _at_/dev/hptmv/global.h:207:39: contrib/dev/hptmv/command.h: No such file
> or directory
> _at_/dev/hptmv/global.h:208:37: contrib/dev/hptmv/array.h: No such file or
> directory
> _at_/dev/hptmv/global.h:209:38: contrib/dev/hptmv/raid5n.h: No such file or
> directory
> _at_/dev/hptmv/global.h:210:39: contrib/dev/hptmv/vdevice.h: No such file
> or directory
> In file included from /usr/src/sys/modules/hptmv/../../dev/hptmv/entry.c:44:
> _at_/dev/hptmv/global.h:32:38: contrib/dev/hptmv/mvSata.h: No such file or
> directory
> _at_/dev/hptmv/global.h:33:44: contrib/dev/hptmv/mvStorageDev.h: No such
> file or directory
> _at_/dev/hptmv/global.h:206:37: contrib/dev/hptmv/atapi.h: No such file or
> directory
> _at_/dev/hptmv/global.h:207:39: contrib/dev/hptmv/command.h: No such file
> or directory
> _at_/dev/hptmv/global.h:208:37: contrib/dev/hptmv/array.h: No such file or
> directory
> _at_/dev/hptmv/global.h:209:38: contrib/dev/hptmv/raid5n.h: No such file or
> directory
> _at_/dev/hptmv/global.h:210:39: contrib/dev/hptmv/vdevice.h: No such file
> or directory
> /usr/src/sys/modules/hptmv/../../dev/hptmv/entry.c:47:41:
> contrib/dev/hptmv/access601.h: No such file or directory
> In file included from /usr/src/sys/modules/hptmv/../../dev/hptmv/ioctl.c:36:
> _at_/dev/hptmv/global.h:32:38: contrib/dev/hptmv/mvSata.h: No such file or
> directory
> _at_/dev/hptmv/global.h:33:44: contrib/dev/hptmv/mvStorageDev.h: No such
> file or directory
> _at_/dev/hptmv/global.h:206:37: contrib/dev/hptmv/atapi.h: No such file or
> directory
> _at_/dev/hptmv/global.h:207:39: contrib/dev/hptmv/command.h: No such file
> or directory
> _at_/dev/hptmv/global.h:208:37: contrib/dev/hptmv/array.h: No such file or
> directory
> _at_/dev/hptmv/global.h:209:38: contrib/dev/hptmv/raid5n.h: No such file or
> directory
> _at_/dev/hptmv/global.h:210:39: contrib/dev/hptmv/vdevice.h: No such file
> or directory
> /usr/src/sys/modules/hptmv/../../dev/hptmv/ioctl.c:39:41:
> contrib/dev/hptmv/access601.h: No such file or directory
> In file included from
> /usr/src/sys/modules/hptmv/../../dev/hptmv/hptproc.c:38:
> _at_/dev/hptmv/global.h:32:38: contrib/dev/hptmv/mvSata.h: No such file or
> directory
> _at_/dev/hptmv/global.h:33:44: contrib/dev/hptmv/mvStorageDev.h: No such
> file or directory
> _at_/dev/hptmv/global.h:206:37: contrib/dev/hptmv/atapi.h: No such file or
> directory
> _at_/dev/hptmv/global.h:207:39: contrib/dev/hptmv/command.h: No such file
> or directory
> _at_/dev/hptmv/global.h:208:37: contrib/dev/hptmv/array.h: No such file or
> directory
> _at_/dev/hptmv/global.h:209:38: contrib/dev/hptmv/raid5n.h: No such file or
> directory
> _at_/dev/hptmv/global.h:210:39: contrib/dev/hptmv/vdevice.h: No such file
> or directory
> /usr/src/sys/modules/hptmv/../../dev/hptmv/hptproc.c:41:41:
> contrib/dev/hptmv/access601.h: No such file or directory
> In file included from
> /usr/src/sys/modules/hptmv/../../dev/hptmv/gui_lib.c:45:
> _at_/dev/hptmv/global.h:32:38: contrib/dev/hptmv/mvSata.h: No such file or
> directory
> _at_/dev/hptmv/global.h:33:44: contrib/dev/hptmv/mvStorageDev.h: No such
> file or directory
> _at_/dev/hptmv/global.h:206:37: contrib/dev/hptmv/atapi.h: No such file or
> directory
> _at_/dev/hptmv/global.h:207:39: contrib/dev/hptmv/command.h: No such file
> or directory
> _at_/dev/hptmv/global.h:208:37: contrib/dev/hptmv/array.h: No such file or
> directory
> _at_/dev/hptmv/global.h:209:38: contrib/dev/hptmv/raid5n.h: No such file or
> directory
> _at_/dev/hptmv/global.h:210:39: contrib/dev/hptmv/vdevice.h: No such file
> or directory
> /usr/src/sys/modules/hptmv/../../dev/hptmv/gui_lib.c:48:41:
> contrib/dev/hptmv/access601.h: No such file or directory
> mkdep: compile failed
> *** Error code 1
>
> Stop in /usr/src/sys/modules/hptmv.
> *** Error code 1
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Wed Mar 02 2005 - 12:26:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:29 UTC