NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/42381: LD_ADD.$name does not work as expected



>Number:         42381
>Category:       bin
>Synopsis:       LD_ADD.$name does not work as expected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 26 11:35:00 +0000 2009
>Originator:     Martin Husemann
>Release:        NetBSD 5.99.22
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD nelly.aprisoft.de 5.99.22 NetBSD 5.99.22 (NELLY.MP) #86: Tue Nov 
24 10:38:02 CET 2009 
martin%emmas.aprisoft.de@localhost:/nelly/usr/src/sys/arch/sparc64/compile/NELLY.MP
 sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Investigating why the t_lwpctl test fails for me I found that it happens
because the test is linked against libpthread and libpthread already uses
_lwp_ctl(2) for it's own purposes.

Looking at the makefile it seems there is no good reason for this test
linking against libpthread, as the author tried to only add pthreads for
a single test.

This change fixes the build for t_lwpctl and makes the test succeed, but
of course is not the right thing to do:

Index: Makefile
===================================================================
RCS file: /cvsroot/src/tests/kernel/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile    8 Sep 2009 20:37:45 -0000       1.2
+++ Makefile    26 Nov 2009 11:33:06 -0000
@@ -21,7 +21,7 @@
 
 TESTS_SH=      t_umount
 
-LDADD.t_rnd+=  -lrumpvfs -lrumpdev_rnd -lrumpdev -lrump -lrumpuser -lpthread
+# LDADD.t_rnd+=  -lrumpvfs -lrumpdev_rnd -lrumpdev -lrump -lrumpuser -lpthread
 
 .PATH:                 ${NETBSDSRCDIR}/sys/kern
 TESTS_C+=              t_extent


>How-To-Repeat:

cd  /usr/src/tests/kernel && make
Watch the command line for t_lwpctl.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index