Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Apr 2006 03:00:03 -0400
From:      "Charlie &" <root@comcast.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/95857: pstack-1.2 fails build, no DT_COUNT defined
Message-ID:  <20060416070005.2A76443D45@mx1.FreeBSD.org>
Resent-Message-ID: <200604160700.k3G70Tv6019998@freefall.freebsd.org>

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

>Number:         95857
>Category:       ports
>Synopsis:       pstack-1.2 fails build, no DT_COUNT defined
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 16 07:00:29 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Shawn Leard
>Release:        FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD thor 6.1-RC FreeBSD 6.1-RC #1: Fri Apr 14 20:08:13 EDT 2006 root@thor:/usr/src/sys/i386/compile/THOR i386


	
>Description:
	Under FreeBSD 6 the build of pstack-1.2 fails build due to
        DT_COUNT not being defined. Under FreeBSD 4.8 DT_COUNT was
        defined in sys/sys/elf_common.h as DT_COUNT 24.

>How-To-Repeat:
	Simply try to build pstack-1.2.
	
>Fix:

 	Apply the below patch.
	

--- elf.diff begins here ---
--- /root/elf.c	Sun Apr 16 01:36:54 2006
+++ elf.c	Wed Oct  2 05:25:02 2002
@@ -33,18 +33,6 @@
  * Implementation of utlities for accessing ELF images.
  */
 
-
-/*
-package pstack-1.2
-Added because DT_COUNT does not exist in FreeBSD 6 and build will fail.
-In FreeBSD 4.8-RELEASE sys/sys/elf_common.h defined DT_COUNT 24
-Shawn Leard 04/16/2006
-*/
-#ifndef DT_COUNT
-#define DT_COUNT 24
-#endif 
-
-
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <sys/procfs.h>
--- elf.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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