Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28978 - safecat ebuild fails with undefined reference error
Summary: safecat ebuild fails with undefined reference error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 05:53 UTC by Gour
Modified: 2003-09-21 12:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Result of emerging safecat (safecat,700 bytes, text/plain)
2003-09-17 05:55 UTC, Gour
Details
proposed safecat-1.11-gentoo.patch (safecat-1.11-gentoo.patch,1002 bytes, patch)
2003-09-21 06:16 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gour 2003-09-17 05:53:59 UTC
When I try to emerge safecat ebuild it fails with "undefined reference to hier" error. 

Reproducible: Always
Steps to Reproduce:
1. emerge safecat 
2. 
3. 
Actual Results:  
: undefined reference to `hier' 
collect2: ld returned 1 exit status 
make: *** [install] Error 1 
 
!!! ERROR: net-mail/safecat-1.11 failed. 
!!! Function src_install, Line 42, Exitcode 2 

Expected Results:  
Get properly compiled & installed. 

bash-2.05b$ emerge info 
Portage 2.0.49-r4 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7) 
================================================================= 
System uname: 2.4.20-gentoo-r7 i686 Celeron (Coppermine) 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=i686 -pipe -funroll-loops " 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=i686 -pipe -funroll-loops " 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs sandbox ccache buildpkg" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ libwww 
mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv 
zlib gdbm berkdb slang readline arts tetex svga java ruby X sdl gpm tcpd pam ssl perl 
python esd imlib oggvorbis gtk qt kde motif opengl cdr doc evms2 ipv6 maildir matrox 
scanner tcltk wxwindows"
Comment 1 Gour 2003-09-17 05:55:15 UTC
Created attachment 17887 [details]
Result of emerging safecat
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-09-21 06:05:10 UTC
I could (inconsistently) reproduce this error on my machine. 
The error is caused by the following line in the ebuild: 
 
	grep -v man hier.c | grep -v doc > hier.c 
 
It seems that the above command occasionally trips over itself 
resulting in hier.c becoming a zero-byte file (which explains why 
we receive an "undefined reference to `hier'" message.) 
 
Altering hier.c via epatch is one way to avoid this problem. 
Comment 3 Brandy Westcott (RETIRED) gentoo-dev 2003-09-21 06:16:52 UTC
Created attachment 18072 [details, diff]
proposed safecat-1.11-gentoo.patch

Note: this patch incorporates the existing gentoo patch file. :)
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-21 12:36:05 UTC
fixed in CVS.
I didn't go the patch route, I just changed the command setup slightly to not destroy data.

I fixed the head -1 issue with the package at the same time.