Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 47403

Summary: dev-util/efence-2.2.2 fails to build with a segfault
Product: Gentoo Linux Reporter: Joshua J. Berry (CondorDes) (RETIRED) <condordes>
Component: New packagesAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mr_bones_, nmahendran
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joshua J. Berry (CondorDes) (RETIRED) gentoo-dev 2004-04-09 19:40:41 UTC
Electric Fence fails to build for me on a 2.6.4-ck1 kernel.  Output from emerge follows:

gcc -g -DUSE_SEMAPHORE -fPIC eftest.o libefence.a -o eftest -lpthread
libefence.a(page.o)(.text+0x30): In function `stringErrorReport':
//page.c:46: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
libefence.a(page.o)(.text+0x24)://page.c:45: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
libefence.a(page.o)(.text+0x30): In function `stringErrorReport':
//page.c:46: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
libefence.a(page.o)(.text+0x24)://page.c:45: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead

Testing Electric Fence.
After the last test, it should print that the test has PASSED.
./eftest

  Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <bruce@perens.com>
make: *** [all] Segmentation fault

!!! ERROR: dev-util/efence-2.2.2 failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-04-10 00:03:14 UTC
Please include the output of emerge --info as requested on the bug submission
page.
Comment 2 Joshua J. Berry (CondorDes) (RETIRED) gentoo-dev 2004-04-10 01:24:49 UTC
01:23 alnath ~> emerge --info
Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-ck1)
=================================================================
System uname: 2.6.4-ck1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.4.6
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="no"
CFLAGS="-O3 -march=pentium4 -mcpu=pentium4 -falign-functions=4 -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -mcpu=pentium4 -falign-functions=4 -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc nostrip userpriv"
GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.ccccom.com http://gentoo.noved.org/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"       
PORTDIR="/usr/portage"          
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi aim alsa arts artswrappersuid avi berkdb cap cdr chroot crypt cups dga directfb dvd encode ethereal fam fbcon flac foomaticdb gd gdbm gif gtk gtk2 imap imlib innodb jabber java jpeg junit kde lcms libg++ libwww mad maildir mikmod mmx mng motif mpeg ncurses nls nptl odbc offensive oggvorbis opengl oscar oss pam pcmcia pcre pdflib perl pic png postgres python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xfs xinerama xml2 xmms xv zlib"                         
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-04-10 10:07:50 UTC
please tone down your CFLAGS to -O2 -march=pentium4 and try again. if the problem repeats, re-open the bug
Comment 4 Joshua J. Berry (CondorDes) (RETIRED) gentoo-dev 2004-04-12 13:49:16 UTC
Exact same problem with -O2.

If -O3 is really that much of a problem, then maybe the flag should be masked in the ebuild.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-04-12 15:57:25 UTC
You misunderstood I think.  Don't just replace -O4 with -O2, replace your
entire CFLAGS with just "-O2 -march=pentium4" and try it again.  If that works,
add back in parts of your CFLAGS until it works, then report what caused the
failure.
Comment 6 Joshua J. Berry (CondorDes) (RETIRED) gentoo-dev 2004-04-12 16:07:55 UTC
re comment 5:

That is exactly what I did, and it gives me the same error.

I guess I was a bit ambiguous in my last comment ... sorry for the confusion.
Comment 7 SpanKY gentoo-dev 2004-04-19 11:44:16 UTC
use valgrind

*** This bug has been marked as a duplicate of 37890 ***
Comment 8 Daniel Webert 2004-06-07 17:48:04 UTC
*** Bug 53264 has been marked as a duplicate of this bug. ***