From never@kurush.osdn.org.ua  Wed Jun 11 06:24:04 2003
Return-Path: <never@kurush.osdn.org.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 22F6E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Jun 2003 06:24:04 -0700 (PDT)
Received: from kurush.osdn.org.ua (external.osdn.org.ua [212.40.34.156])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0A89E43FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Jun 2003 06:24:02 -0700 (PDT)
	(envelope-from never@kurush.osdn.org.ua)
Received: from kurush.osdn.org.ua (never@localhost [127.0.0.1])
	by kurush.osdn.org.ua (8.12.6p2/8.12.6) with ESMTP id h5BDNx51045784
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Jun 2003 16:23:59 +0300 (EEST)
	(envelope-from never@kurush.osdn.org.ua)
Received: (from never@localhost)
	by kurush.osdn.org.ua (8.12.6p2/8.12.6/Submit) id h5BDNxD8045780;
	Wed, 11 Jun 2003 16:23:59 +0300 (EEST)
	(envelope-from never)
Message-Id: <200306111323.h5BDNxD8045780@kurush.osdn.org.ua>
Date: Wed, 11 Jun 2003 16:23:59 +0300 (EEST)
From: Alexandr Kovalenko <never@nevermind.kiev.ua>
Reply-To: Alexandr Kovalenko <never@nevermind.kiev.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: buildworld 5.1-RELEASE on 4.8-STABLE fails
X-Send-Pr-Version: 3.113
X-GNATS-Notify: imp, kan, ru

>Number:         53201
>Category:       bin
>Synopsis:       buildworld 5.1-RELEASE on 4.8-STABLE fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    re
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 11 06:30:11 PDT 2003
>Closed-Date:    Fri Jun 11 14:30:00 GMT 2004
>Last-Modified:  Fri Jun 11 14:30:00 GMT 2004
>Originator:     Alexandr Kovalenko
>Release:        FreeBSD 4.7-RELEASE-p7 i386
>Organization:
WNet ISP, Kiev, Ukraine, http://wnet.ua/
>Environment:
FreeBSD mile.wnet.ua 4.8-STABLE FreeBSD 4.8-STABLE #0: Mon May 19 18:04:15 EEST 2003     root@mile.wnet.ua:/usr/obj/usr/src/sys/mile  i386

>Description:
make buildworld for RELENG_5_1 fails, when compiling on 4.8-STABLE machine (i386)
cc -fpic -DPIC -O -pipe -mcpu=pentiumpro -DPTHREAD_KERNEL -I/usr/src/lib/libpthread/../libc/include -I/usr/src/lib/libpthread/thread  -I/usr/src/lib/libpthread/../../include -I/usr/src/lib/libpthread/arch/i386/include -I/usr/src/lib/libpthread/sys -I/usr/src/lib/libpthread/../../libexec/rtld-elf -fno-builtin -D_LOCK_DEBUG -D_PTHREADS_INVARIANTS -Wall  -c /usr/src/lib/libpthread/sys/lock.c -o lock.So
building shared library libkse.so.1
thr_libc.So: In function `sigaction':
thr_libc.So(.text+0x54): multiple definition of `_sigaction'
thr_sigaction.So(.text+0x0): first defined here
thr_libc.So: In function `sigprocmask':
thr_libc.So(.text+0x34): multiple definition of `_sigprocmask'
thr_sigprocmask.So(.text+0x0): first defined here
*** Error code 1

Stop in /usr/src/lib/libpthread.
*** Error code 1


>How-To-Repeat:
cvsup to RELENG_5_1
cd /usr/src && make buildworld
>Fix:
N/A
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->re 
Responsible-Changed-By: ru 
Responsible-Changed-When: Thu Jun 12 05:12:40 PDT 2003 
Responsible-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=53201 
Responsible-Changed-From-To: re->freebsd-bugs 
Responsible-Changed-By: ru 
Responsible-Changed-When: Thu Jun 12 05:16:50 PDT 2003 
Responsible-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=53201 
Responsible-Changed-From-To: freebsd-bugs->re 
Responsible-Changed-By: ru 
Responsible-Changed-When: Thu Jun 12 05:17:10 PDT 2003 
Responsible-Changed-Why:  
This has been fixed in HEAD, in the recent commits to 
src/Makefile.inc1 (details are still disputed with imp@) 
and src/lib/libpthread/support/Makefile.inc. 

RE, please let me know if you want this fixed in RELENG_5_1 
as well. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53201 

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: ru@FreeBSD.org
Subject: Re: bin/53201
Date: Tue, 17 Jun 2003 21:25:26 -0700 (PDT)

 Yes, please fix in RELENG_5_1 too.
 
 (I manually applied the few lines of fixes in the two files and my FreeBSD
 4.8 system could then build 5.1.)
 
 Thank you,
 
    Jeremy C. Reed
    http://bsd.reedmedia.net/
 

From: Nate Eldredge <neldredge@hmc.edu>
To: <freebsd-gnats-submit@FreeBSD.org>, <never@nevermind.kiev.ua>
Cc:  
Subject: Re: bin/53201: buildworld 5.1-RELEASE on 4.8-STABLE fails
Date: Fri, 4 Jul 2003 13:33:15 -0700 (PDT)

 [Sorry about a previous blank message I may have sent; I accidentally hit
 send too soon.]
 
 Is this still going to be fixed in RELENG_5_1?  If not, should it at least
 be mentioned in the errata or release notes?
 
 -- 
 
 Nate Eldredge
 neldredge@hmc.edu
 

From: Martin Kraft <martin.kraft@fal.de>
To: "mailto:freebsd-gnats-submit"@FreeBSD.org,
	"never @ nevermind. kiev. ua?subject=Re:%20bin/53201:%20buildworld%20%35.%31-RELEASE%20on%20%34.%38-STABLE%20fails"@kocher.tb.fal.de
Cc:  
Subject: Re: bin/53201
Date: Mon, 14 Jul 2003 12:53:16 +0200

 The problem still exists in RELENG_5_1, preventing me from building
 5.1 on a 4.7 machine. Could someone be so kind and provide
 the two required patches for src/Makefile.inc1 
 and src/lib/libpthread/support/Makefile.inc _HERE_ in bug report
 5201? I would appreciate.
 Many thanks!
 
 Martin Kraft
 martin.kraft@fal.de
 

From: Martin Kraft <martin.kraft@fal.de>
To: freebsd-gnats-submit@FreeBSD.org, never@nevermind.kiev.ua
Cc:  
Subject: Re: bin/53201: buildworld 5.1-RELEASE on 4.8-STABLE fails
Date: Mon, 14 Jul 2003 12:57:21 +0200

 The problem still exists in RELENG_5_1, preventing me from building
 5.1 on a 4.7 machine. Could someone be so kind and provide
 the two required patches for src/Makefile.inc1
 and src/lib/libpthread/support/Makefile.inc _HERE_ in bug report
 53201? I would appreciate.
 Many thanks!
 
 Regards,
 
 Martin Kraft
 

From: Alexander Portnoy <my-subs@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org, never@nevermind.kiev.ua
Cc:  
Subject: Re: bin/53201: buildworld 5.1-RELEASE on 4.8-STABLE fails
Date: Fri, 5 Sep 2003 08:34:24 +0300

 There are the patches:
 
 
 diff -u /usr/src/Makefile.inc1.orig /usr/src/Makefile.inc1
 #--------------------------------------------------------------------------------------
 --- /usr/src/Makefile.inc1.orig	Fri Sep  5 02:11:23 2003
 +++ /usr/src/Makefile.inc1	Fri Sep  5 00:47:07 2003
 @@ -791,6 +791,10 @@
  _generic_libs+=	kerberos5/lib
  .endif
  
 +.if !defined(NOLIBPTHREAD)
 +_prebuild_libs+= lib/libc
 +.endif
 +	 
  _prebuild_libs+= lib/libcom_err lib/libcrypt lib/libexpat \
  		lib/libkvm lib/libmd \
  		lib/libncurses lib/libopie lib/libpam lib/libradius \
 
 #--------------------------------------------------------------------------------------
 
 
 diff -u  /usr/src/lib/libpthread/support/Makefile.inc.orig /usr/src/lib/libpthread/support/Makefile.inc
 #--------------------------------------------------------------------------------------
 --- /usr/src/lib/libpthread/support/Makefile.inc.orig	Fri Sep  5 02:13:29 2003
 +++ /usr/src/lib/libpthread/support/Makefile.inc	Fri Sep  5 00:48:10 2003
 @@ -6,5 +6,5 @@
  SOBJS+= thr_libc.So
  
  thr_libc.So: thr_support.So
 -	${CC} -nostdlib -L/usr/lib -o ${.TARGET} -Wl,-x,-r ${.ALLSRC} -lc_pic
 +	${CC} -nostdlib -o ${.TARGET} -Wl,-x,-r ${.ALLSRC} -lc_pic
  
 #--------------------------------------------------------------------------------------
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Jun 11 14:28:47 GMT 2004 
State-Changed-Why:  
Overtaken by events (5.2 released which doesn't suffer from 
this problem). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53201 
>Unformatted:
