Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85466 - Compile failure "undefined reference to 'myabort'" when compiling baselayout-1.9.4-r6 and others
Summary: Compile failure "undefined reference to 'myabort'" when compiling baselayout-...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 23:56 UTC by Mathias B,
Modified: 2005-05-22 00:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias B, 2005-03-15 23:56:02 UTC
When I try to emerge baselayout-1.9.4-r6 I get this error message:

i586-pc-linux-gnu-gcc -o start-stop-daemon -O2 -mcpu=i586 -pipe -DHAVE_ERROR_H -DHAVE_TIOCNOTTY -DHAVE_SETSID start-stop-daemon.c
/var/tmp/portage/baselayout-1.9.4-r6/temp/ccss126d.o(.text+0x439): In function `parse_schedule':
: undefined reference to `myabort'
/var/tmp/portage/baselayout-1.9.4-r6/temp/ccss126d.o(.text+0xe56): In function `run_stop_schedule':
: undefined reference to `myabort'
collect2: ld returned 1 exit status
make: *** [start-stop-daemon] Error 1
make: Leaving directory `/var/tmp/portage/baselayout-1.9.4-r6/work/rc-scripts-1.4.16/src'

Now, the thing is that I don't think it's a problem with the baselayout as such, as I am also experiencing this problem when trying to compile other programs as well. most of the time it's the same error message: "undefined reference to 'myabort'" but i also get other "undefined reference to *" errors. 

This makes me think that there is something borked somewhere around the system. I have tried to update glibc and gcc as i thought it might be a problem there, but it didn't help.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20050125-r0,
2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.3.13
Python:              dev-lang/python-2.2.2,dev-lang/python-2.3.3 [2.3.3 (#1, Apr
14 2004, 09:44:01)]
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.2.2, 2.3.3
sys-devel/autoconf:  2.59-r4
sys-devel/automake:  1.8.3
sys-devel/binutils:  2.14.90.0.7-r4
sys-devel/libtool:   1.4.1-r10
virtual/os-headers:  2.4.19, 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i586 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/tomcat /opt/resin/conf /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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="-O2 -mcpu=i586 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.gentoo.no/
http://ftp.linux.ee/pub/gentoo/distfiles/"
MAKEOPTS="-j1"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X apache2 apm arts avi bash-completion berkdb bitmap-fonts bonobo
chrootcrypt cscope cups curl directfb doc drac emboss encode esd fam flac flash
font-server foomaticdb fortran freetds gd gdbm gif gnome gpm gstreamer gtk gtk2
imagemagick imap imlib ipv6 java jpeg kde ldap libg++ libwww mad mcal mikmod
motif mp3 mpegmssql mysql ncurses nls oggvorbis opengl oss pam pdflib perl png
postgres python qt quicktime readline ruby samba sasl scanner sdl slang spell
sqlite ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts webdav
xml xml2 xmms xv yaz zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Mathias B, 2005-03-17 00:11:36 UTC
Ok, the error seems to be changing everytime i compile:

>>> Source unpacked.
 * Building utilities...
make: Entering directory `/var/tmp/portage/baselayout-1.9.4-r6/work/rc-scripts-1.4.16/src'
i586-pc-linux-gnu-gcc -O2 -mcpu=i586 -pipe   -c -o consoletype.o consoletype.c
i586-pc-linux-gnu-gcc  -o consoletype consoletype.o
i586-pc-linux-gnu-gcc -O2 -mcpu=i586 -pipe   -c -o runscript.o runscript.c
i586-pc-linux-gnu-gcc  -o runscript runscript.o -ldl
i586-pc-linux-gnu-gcc -o start-stop-daemon -O2 -mcpu=i586 -pipe -DHAVE_ERROR_H -DHAVE_TIOCNOTTY -DHAVE_SETSID start-stop-daemon.c
/var/tmp/portage/baselayout-1.9.4-r6/temp/ccEfpGlm.o(.text+0x439): In function `parse_schedule':
: undefined reference to `myabort'
/var/tmp/portage/baselayout-1.9.4-r6/temp/ccEfpGlm.o(.text+0xe56): In function `run_stop_schedule':
: undefined reference to `myabort'
collect2: ld returned 1 exit status
make: *** [start-stop-daemon] Error 1
make: Leaving directory `/var/tmp/portage/baselayout-1.9.4-r6/work/rc-scripts-1.4.16/src'

The file in temp is a different one every time...??
Comment 2 SpanKY gentoo-dev 2005-05-22 00:46:30 UTC
as you say, the problem isnt baselayout ...

you should go into
/var/tmp/portage/baselayout-1.9.4-r6/work/rc-scripts-1.4.16/src/ and run:
gcc -E  -O2 -mcpu=i586 -pipe -DHAVE_ERROR_H -DHAVE_TIOCNOTTY -DHAVE_SETSID
start-stop-daemon.c -o start-stop-daemon.E

then post start-stop-daemon.E as an attachment