From nobody@FreeBSD.org  Wed Jun 26 09:50:48 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 0FE18DF5
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Jun 2013 09:50:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id DCFAC1AB2
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Jun 2013 09:50:47 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5Q9ol30086464
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Jun 2013 09:50:47 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5Q9ol3r086442;
	Wed, 26 Jun 2013 09:50:47 GMT
	(envelope-from nobody)
Message-Id: <201306260950.r5Q9ol3r086442@oldred.freebsd.org>
Date: Wed, 26 Jun 2013 09:50:47 GMT
From: Dewayne <dewayne@heuristicsystems.com.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tevent fails 32bit compilation (a samba 4.0.4 port dependency)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179998
>Category:       ports
>Synopsis:       devel/tevent fails 32bit compilation (a samba 4.0.4 port dependency)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tijl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 26 10:00:00 UTC 2013
>Closed-Date:    Wed Jun 26 19:22:20 CEST 2013
>Last-Modified:  Wed Jun 26 17:30:00 UTC 2013
>Originator:     Dewayne
>Release:        FreeBSD 9.1Stable (Last Changed Rev: 252225)
>Organization:
>Environment:
FreeBSD b1.hs 9.1-STABLE FreeBSD 9.1-STABLE #0: Mon Jun 24 20:02:57 EST 2013 
root@:/usr/obj/prod/901/D/CORE2/usr/src/sys/hqdev-amd64-padlock-smp-vga i386
>Description:
tevent compiles correctly on an amd64 platform.  However during compilation on a 32 bit platform fails. Default compiler gcc version 4.2.1 20070831 patched [FreeBSD] is used.  

When samba 4.0.4, 4.0.5 or 4.0.6 are compiled on the same machine, libtevent.so is successfully linked, unfortunately confusing the issue.

[19/25] Compiling tevent_poll.c
./tevent_poll.c: In function 'poll_event_loop_poll':
./tevent_poll.c:553: warning: comparison is always false due to limited range of data type
[20/25] Compiling tevent_signal.c
[21/25] Compiling tevent_standard.c
[22/25] Compiling tevent_timed.c
[23/25] Compiling tevent_util.c
[24/25] Compiling tevent_wakeup.c
[25/25] Linking default/libtevent.so
default/tevent_poll_1.o: In function `poll_event_loop_once':
tevent_poll.c:(.text+0x882): undefined reference to `__stack_chk_fail_local'
default/tevent_signal_1.o: In function `signal_pipe_handler':
tevent_signal.c:(.text+0xbc1): undefined reference to `__stack_chk_fail_local'
default/lib/replace/replace_2.o: In function `rep_get_current_dir_name':
replace.c:(.text+0xa3): undefined reference to `__stack_chk_fail_local'
Waf: Leaving directory `/var/ports/usr/ports/devel/tevent/work/tevent-0.9.18/bin'
Build failed:  -> task failed (err #1):
        {task: cc_link tevent_1.o,tevent_debug_1.o,tevent_fd_1.o,tevent_immediate_1.o,tevent_queue_1.o,tevent_req_1.o,tevent_select_1.o,tevent_poll_1.o,tevent_signal_1.o,tevent_standard_1.o,tevent_timed_1.o,tevent_util_1.o,tevent_wakeup_1.o,replace_2.o,strptime_2.o,xattr_2.o -> libtevent.so}
*** [do-build] Error code 1

Stop in /usr/ports/devel/tevent.

>How-To-Repeat:
cd /usr/ports/devel/tevent && make clean && make

Content of /etc/make.conf
CFLAGS+= -pipe -O2 -g0 -march=prescott -mtune=prescott
COPTFLAGS+= -march=prescott -mtune=prescott
ARCH= i386

>Fix:
Unknown

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->timur 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jun 26 15:07:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179998 
State-Changed-From-To: open->closed 
State-Changed-By: tijl 
State-Changed-When: Wed Jun 26 19:20:40 CEST 2013 
State-Changed-Why:  
Fix committed in r321802. 


Responsible-Changed-From-To: timur->tijl 
Responsible-Changed-By: tijl 
Responsible-Changed-When: Wed Jun 26 19:20:40 CEST 2013 
Responsible-Changed-Why:  
My mistake. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/179998: commit references a PR
Date: Wed, 26 Jun 2013 17:20:08 +0000 (UTC)

 Author: tijl
 Date: Wed Jun 26 17:20:01 2013
 New Revision: 321802
 URL: http://svnweb.freebsd.org/changeset/ports/321802
 
 Log:
   - Fix build on i386. Add -fstack-protector to LDFLAGS.
   - Remove a patch for FreeBSD 6.
   
   PR:		179998
 
 Added:
   head/devel/tevent/files/patch-lib__replace__wscript   (contents, props changed)
 Deleted:
   head/devel/tevent/files/patch-lib__replace__system__wait.h
 
 Added: head/devel/tevent/files/patch-lib__replace__wscript
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/tevent/files/patch-lib__replace__wscript	Wed Jun 26 17:20:01 2013	(r321802)
 @@ -0,0 +1,10 @@
 +--- lib/replace/wscript.orig
 ++++ lib/replace/wscript
 +@@ -55,6 +55,7 @@
 + 
 +     if conf.CHECK_CFLAGS(['-fstack-protector']):
 +         conf.ADD_CFLAGS('-fstack-protector')
 ++        conf.ADD_LDFLAGS('-fstack-protector')
 + 
 +     # Try to find the right extra flags for -Werror behaviour
 +     for f in ["-Werror",       # GCC
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
