Bug 89056 - FreeBSD 6.0 valgrind compile errors
Summary: FreeBSD 6.0 valgrind compile errors
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Simon Barner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-15 09:50 UTC by Andrei V. Shetuhin
Modified: 2005-11-15 11:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 2005-11-15 09:57:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->barner

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

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

Fixed, thanks.