Bug 179998 - devel/tevent fails 32bit compilation (a samba 4.0.4 port dependency)
Summary: devel/tevent fails 32bit compilation (a samba 4.0.4 port dependency)
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: Tijl Coosemans
Depends on:
Reported: 2013-06-26 11:00 UTC by dewayne
Modified: 2013-06-26 18:30 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2013-06-26 11:00:00 UTC
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
Comment 1 Edwin Groothuis freebsd_committer 2013-06-26 16:07:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->timur

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2013-06-26 18:20:08 UTC
Author: tijl
Date: Wed Jun 26 17:20:01 2013
New Revision: 321802
URL: http://svnweb.freebsd.org/changeset/ports/321802

  - Fix build on i386. Add -fstack-protector to LDFLAGS.
  - Remove a patch for FreeBSD 6.
  PR:		179998

  head/devel/tevent/files/patch-lib__replace__wscript   (contents, props changed)

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
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Tijl Coosemans freebsd_committer 2013-06-26 18:20:40 UTC
State Changed
From-To: open->closed

Fix committed in r321802. 

Comment 4 Tijl Coosemans freebsd_committer 2013-06-26 18:20:40 UTC
Responsible Changed
From-To: timur->tijl

My mistake.