From amdmi3@amdmi3.ru  Thu Sep 27 00:49:57 2012
Return-Path: <amdmi3@amdmi3.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1132D1065673;
	Thu, 27 Sep 2012 00:49:57 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from smtp.timeweb.ru (unknown [IPv6:2a03:6f00:1::5c35:743c])
	by mx1.freebsd.org (Postfix) with ESMTP id 95CAE8FC12;
	Thu, 27 Sep 2012 00:49:56 +0000 (UTC)
Received: from [213.148.20.85] (helo=hive.panopticon)
	by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.76)
	(envelope-from <amdmi3@amdmi3.ru>)
	id 1TH2Ic-0005LG-If; Thu, 27 Sep 2012 04:49:54 +0400
Received: from hades.panopticon (hades.panopticon [192.168.0.32])
	by hive.panopticon (Postfix) with ESMTP id CC7C5B84D;
	Thu, 27 Sep 2012 04:49:53 +0400 (MSK)
Received: by hades.panopticon (Postfix, from userid 1000)
	id ACF241DB; Thu, 27 Sep 2012 04:49:53 +0400 (MSK)
Message-Id: <20120927004953.ACF241DB@hades.panopticon>
Date: Thu, 27 Sep 2012 04:49:53 +0400 (MSK)
From: Dmitry Marakasov <amdmi3@amdmi3.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: wxs@FreeBSD.org
Subject: [PATCH] security/sudo: does not link on i386
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         172107
>Category:       ports
>Synopsis:       [PATCH] security/sudo: does not link on i386
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    wxs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 27 00:50:04 UTC 2012
>Closed-Date:    Thu Sep 27 14:04:22 UTC 2012
>Last-Modified:  Thu Sep 27 14:04:22 UTC 2012
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Wed Jun 13 17:39:20 MSK 2012
>Description:
sudo doesn't link on FreeBSD 8,9 i386 (but builds fine on FreeBSD 7 and amd64).

---
/bin/sh ../../libtool --mode=link cc -o sudoreplay getdate.o sudoreplay.o error.o -lgcc -L/usr/local/lib -lintl -Wl,-z,relro -pie timestr.lo -lz ../../common/libcommon.la ../../compat/libreplace.la
/bin/sh ../../libtool --mode=link cc -o libparsesudoers.la alias.lo audit.lo defaults.lo gram.lo match.lo  match_addr.lo pwutil.lo timestr.lo toke.lo  toke_util.lo redblack.lo -no-install
libtool: link: cc -o sudoreplay getdate.o sudoreplay.o error.o -Wl,-z -Wl,relro -pie .libs/timestr.o  -lgcc -L/usr/local/lib /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -lz ../../common/.libs/libcommon.a ../../compat/.libs/libreplace.a  -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib
libtool: link: ar cru .libs/libparsesudoers.a .libs/alias.o .libs/audit.o .libs/defaults.o .libs/gram.o .libs/match.o .libs/match_addr.o .libs/pwutil.o .libs/timestr.o .libs/toke.o .libs/toke_util.o .libs/redblack.o 
libtool: link: ranlib .libs/libparsesudoers.a
libtool: link: ( cd ".libs" && rm -f "libparsesudoers.la" && ln -s "../libparsesudoers.la" "libparsesudoers.la" )
/bin/sh ../../libtool --tag=disable-static --mode=link cc -lgcc -L/usr/local/lib -lintl -Wl,-z,relro -Wc,-fstack-protector -o sudoers.la sudo_auth.lo pam.lo boottime.lo check.lo env.lo goodpath.lo  group_plugin.lo find_path.lo interfaces.lo logging.lo  logwrap.lo parse.lo set_perms.lo sudoers.lo sudo_nss.lo  iolog.lo iolog_path.lo  bsm_audit.lo plugin_error.lo libparsesudoers.la -lbsm -lutil -lpam   ../../common/libcommon.la ../../compat/libreplace.la  -lz -module -avoid-version -rpath /usr/local/libexec
getdate.o: In function `yylex':
getdate.c:(.text+0x1eb): undefined reference to `__stack_chk_fail_local'
sudoreplay.o: In function `.L120':
sudoreplay.c:(.text+0xbc6): undefined reference to `__stack_chk_fail_local'
sudoreplay.o: In function `find_sessions':
sudoreplay.c:(.text+0x1874): undefined reference to `__stack_chk_fail_local'
../../common/.libs/libcommon.a(sudo_debug.o): In function `sudo_debug_write2':
sudo_debug.c:(.text+0x450): undefined reference to `__stack_chk_fail_local'
../../common/.libs/libcommon.a(term.o): In function `term_copy':
term.c:(.text+0x128): undefined reference to `__stack_chk_fail_local'
../../common/.libs/libcommon.a(term.o):term.c:(.text+0x569): more undefined references to `__stack_chk_fail_local' follow
*** Error code 1
libtool: link: cc -shared  -fPIC -DPIC  .libs/sudo_auth.o .libs/pam.o .libs/boottime.o .libs/check.o .libs/env.o .libs/goodpath.o .libs/group_plugin.o .libs/find_path.o .libs/interfaces.o .libs/logging.o .libs/logwrap.o .libs/parse.o .libs/set_perms.o .libs/sudoers.o .libs/sudo_nss.o .libs/iolog.o .libs/iolog_path.o .libs/bsm_audit.o .libs/plugin_error.o  -Wl,--whole-archive ./.libs/libparsesudoers.a ../../common/.libs/libcommon.a ../../compat/.libs/libreplace.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -lgcc -L/usr/local/lib /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -lbsm -lutil -lpam -lz  -Wl,-z -Wl,relro -fstack-protector   -Wl,-soname -Wl,sudoers.so -o .libs/sudoers.so
libtool: link: ( cd ".libs" && rm -f "sudoers.la" && ln -s "../sudoers.la" "sudoers.la" )
1 error
*** Error code 2
1 error
*** Error code 1

Stop in /a/ports/security/sudo.
================================================================
build of /usr/ports/security/sudo ended at Wed Sep 26 22:27:34 UTC 2012
---

Full log: http://people.freebsd.org/~amdmi3/sudo-1.8.6.p3.log

Port maintainer (wxs@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Sep 27 00:50:15 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Kubilay Kocak <koobs.freebsd@gmail.com>
To: bug-followup@freebsd.org
Cc: Dmitry Marakasov <amdmi3@amdmi3.ru>, wxs@FreeBSD.org
Subject: Re: ports/172107: [PATCH] security/sudo: does not link on i386
Date: Thu, 27 Sep 2012 22:30:21 +1000

 Duplicate of ports/172085
State-Changed-From-To: open->closed 
State-Changed-By: wxs 
State-Changed-When: Thu Sep 27 14:04:21 UTC 2012 
State-Changed-Why:  
Fixed. Thanks! 

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