Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2002 04:22:23 +0100
From:      Boris Nikolaus <boris@cs.tu-berlin.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45612: port devel/linux_kdump does not compile
Message-ID:  <20021123032223.GA16608@fiesta.cs.tu-berlin.de>

next in thread | raw e-mail | index | archive | help

>Number:         45612
>Category:       ports
>Synopsis:       port devel/linux_kdump does not compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 22 19:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Boris Nikolaus
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD XXXXXX 4.7-STABLE FreeBSD 4.7-STABLE #43: Tue Oct 22 20:25:44 CEST 2002     root@XXXXXX:/usr/src/sys/compile/BORIS  i386
>Description:
        The port devel/linux_kdump does not compile (at least if the new
	linux emulator linux_base and linux_devtools-7 are installed).
>How-To-Repeat:
        Install linux_base, linux_devtools-7 (necessary?) and try to
        compile linux_kdump.
>Fix:
        The bug seems to be that mkioctls.linux mixes up Linux include files
        and FreeBSD ones. Following is a patch to fix this (mkioctls.linux
        resides in ports/devel/linux_kdump/work/linux_kdump-1.4):

*** mkioctls.linux.old	Sat Nov 23 04:04:35 2002
--- mkioctls.linux	Sat Nov 23 04:09:22 2002
***************
*** 12,22 ****

  $CPP -dM $TMP1FILE | awk '
  BEGIN {
- 	print "#include <stdio.h>"
- 	print "#include <sys/types.h>"
- 	print "#include <sys/ioctl.h>"
- 	print "#include <sys/soundcard.h>"
- 	print ""
  	print "char *"
  	print "ioctlname(val)"
  	print "{"
--- 12,17 ----
***************
*** 54,60 ****
  }
  ' > $TMP2FILE

! $CPP $TMP2FILE > $OUTFILE

  rm $TMP1FILE
  rm $TMP2FILE
--- 49,61 ----
  }
  ' > $TMP2FILE

! (echo "#include <stdio.h>"
!  echo "#include <sys/types.h>"
!  echo "#include <sys/ioctl.h>"
!  echo "#include <sys/soundcard.h>"
!  echo ""
!  $CPP $TMP2FILE
! ) > $OUTFILE

  rm $TMP1FILE
  rm $TMP2FILE
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021123032223.GA16608>