ports/95857: pstack-1.2 fails build, no DT_COUNT defined

Charlie & root at comcast.net
Sun Apr 16 07:00:31 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list