Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18219 - app-admin/watchdog build error (linking step)
Summary: app-admin/watchdog build error (linking step)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-26 08:47 UTC by Peter Stieglecker
Modified: 2003-03-27 07:20 UTC (History)
0 users

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


Attachments
ebuild that patches watchdog to compile correctly (watchdog-5.2.ebuild,1.32 KB, text/plain)
2003-03-26 09:32 UTC, Peter Stieglecker
Details
patch for quotactl.c (quotactl.diff,329 bytes, patch)
2003-03-26 09:35 UTC, Peter Stieglecker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Stieglecker 2003-03-26 08:47:09 UTC
When I try to emerge app-admin/watchdog I get the following linking error:

gcc  -mcpu=pentium3 -O3 -pipe  -o watchdog  file_stat.o file_table.o fstab.o 
iface.o ifdown.o keep_alive.o load.o l
omount.o memory.o mntent.o mount.o net.o nfsmount.o nfsmount_clnt.o 
nfsmount_xdr.o pidfile.o quotactl.o shutdown.o
sundries.o temp.o test_binary.o umount.o version.o watchdog.o
quotactl.o(.text+0x28): In function `quotactl':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make[1]: *** [watchdog] Error 1
make[1]: Leaving directory `/var/tmp/portage/watchdog-5.2/work/watchdog-5.2/src'
make: *** [all-recursive] Error 1

!!! ERROR: app-admin/watchdog-5.2 failed.
!!! Function src_compile, Line 24, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge watchdog




Fresh Gentoo Installation from stage1-x86-1.4_rc3,
we are using the _unstable_ branch though

a few details from /etc/make.conf:

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="~x86"

/proc/cpuinfo:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 2.40GHz
[...]

gcc version 3.2.2
Comment 1 Peter Stieglecker 2003-03-26 09:32:48 UTC
Created attachment 9832 [details]
ebuild that patches watchdog to compile correctly

This ebuild first patches the source file quotactl.c before compiling.
Comment 2 Peter Stieglecker 2003-03-26 09:35:05 UTC
Created attachment 9833 [details, diff]
patch for quotactl.c

errno.h needs to be included always
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-03-27 07:20:05 UTC
thanks for the patch. i've committed your patch to portage now.