Bug 89056

Summary: FreeBSD 6.0 valgrind compile errors
Product: Ports & Packages Reporter: Andrei V. Shetuhin <shetuhin>
Component: Individual Port(s)Assignee: Simon Barner <barner>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Andrei V. Shetuhin 2005-11-15 09:50:17 UTC
	When compiling valgrind, got these errors:
	
	vg_mylibc.c: In function `vgPlain_ksigaction':
	vg_mylibc.c:170: error: `__NR_sigaction' undeclared (first use in this function)
	vg_mylibc.c:170: error: (Each undeclared identifier is reported only once
	vg_mylibc.c:170: error: for each function it appears in.)
	vg_mylibc.c: In function `vgPlain_ksignal':
	vg_mylibc.c:219: error: `__NR_sigaction' undeclared (first use in this function)
	vg_mylibc.c: In function `vgPlain_gettid':
	
	When I naive changed
	#if __FreeBSD__ == 5
	to
	#if __FreeBSD__ > 4
	in file work/valgrind-stable-352/coregrind/vg_unistd.h,
	valgrind compiles but not work.
	
	==7150== Memcheck, a memory error detector for x86-linux.
	==7150== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward.
	==7150== Using valgrind-2.1.0, a program supervision framework for x86-linux.
	==7150== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward.
	Error -1 trying to create proxy LWP for tid 1
	
	valgrind: the `impossible' happened:
	   Can't start proxy LWPs
	Basic block ctr is approximately 0
	==7150==    at 0xB802BE61: ???
	==7150==    by 0xB802BE60: ???
	==7150==    by 0xB802BE78: ???
	==7150==    by 0xB802EEB3: ???

	sched status:

	Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0
	==7391==    at 0x3C0043B0: ???

How-To-Repeat: 	cd /usr/ports/devel/valgrind
	make
Comment 1 Simon Barner freebsd_committer freebsd_triage 2005-11-15 09:57:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->barner

My port.
Comment 2 Simon Barner freebsd_committer freebsd_triage 2005-11-15 10:02:41 UTC
State Changed
From-To: open->feedback

Asked maintainer to test patch.
Comment 3 Simon Barner freebsd_committer freebsd_triage 2005-11-15 11:24:27 UTC
State Changed
From-To: feedback->closed

Fixed, thanks.