Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17461 - nfs-utils 1.0.1 undefined reference to check_default
Summary: nfs-utils 1.0.1 undefined reference to check_default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brad Cowan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-13 15:43 UTC by Jon Foster
Modified: 2003-05-16 11:35 UTC (History)
1 user (show)

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


Attachments
nfs-utils patch for LDFLAGS="-L/usr/lib ..." (nfs-utils-1.0.1.patch,916 bytes, patch)
2003-03-25 03:27 UTC, Jon Foster
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Foster 2003-03-13 15:43:55 UTC
I have nfs-utils 0.3.3-r1 installed and I have nfs working properly. When I try
to update that package to nfs-utils 1.0.1-r1, I receive a compile error in
mount_dispatch.o, undefined reference to check_default.

Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge -pu system
3. emerge -pu world
4. emerge -u nfs-utils

Actual Results:  
emerge sync

rsync[6719] (receiver) heap statistics:
  arena:        5661176   (bytes from sbrk)
  ordblks:          573   (chunks not in use)
  smblks:             2
  hblks:              1   (chunks from mmap)
  hblkhd:        258048   (bytes from mmap)
  usmblks:            0
  fsmblks:           40
  uordblks:     4953968   (bytes used)
  fordblks:      707208   (bytes free)
  keepcost:       54120   (bytes in releasable chunk)

Number of files: 38546
Number of files transferred: 3628
Total file size: 30970023 bytes
Total transferred file size: 4263075 bytes
Literal data: 2170738 bytes
Matched data: 2092337 bytes
File list size: 909490
Total bytes written: 100687
Total bytes read: 3230302

wrote 100687 bytes  read 3230302 bytes  9753.99 bytes/sec
total size is 30970023  speedup is 9.30

>>> Updating Portage cache...  ...done!


 * An update to portage is available. It is _highly_ recommended
 * that you update portage now, before any other packages are updated.
 * Please do so and then update ALL of your configuration files.

emerge -up system

These are the packages that I would merge, in order:

Calculating system dependencies ...done!
[ebuild    U ] sys-libs/readline-4.2a-r2 [4.2a-r1]

emerge -up world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild    U ] sys-libs/readline-4.2a-r2 [4.2a-r1]
[ebuild    U ] app-admin/gentoolkit-0.1.19-r3 [0.1.19-r2]
[ebuild    U ] app-text/acroread-5.06-r3 [5.06-r1]
[ebuild    U ] net-fs/nfs-utils-1.0.1-r1 [0.3.3-r1]

emerge -u nfs-utils

gcc -L/usr/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib  -L../../support/lib -o mountd
mountd.o mount_dispatch.o auth.o rmtab.o -lexport -lnfs -lmisc  -lwrap -lnsl
mount_dispatch.o(.text+0x30): In function `mount_dispatch':
: undefined reference to `check_default'
collect2: ld returned 1 exit status
make[2]: *** [mountd] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

!!! ERROR: net-fs/nfs-utils-1.0.1-r1 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! Failed to compile


Expected Results:  
Package should have compiled and emerge should have finished without error.

Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 Pentium III (Katmai)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/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"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ libwww mikmod mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb
slang readline arts svga java sdl gpm tcpd pam ssl perl python esd imlib
oggvorbis motif opengl mozilla cdr X gtk qt kde mmx sse -gnome -alsa"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -mmmx -msse -pipe"
CXXFLAGS="-O3 -march=pentium3 -mmmx -msse -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2003-03-25 00:50:10 UTC
do u have nfs enabled in your kernel?
Comment 2 Jon Foster 2003-03-25 03:27:57 UTC
Created attachment 9791 [details, diff]
nfs-utils patch for LDFLAGS="-L/usr/lib ..."

The problem appears to be two libraries with the same name. There's
/usr/lib/libmisc.a and nfs-utils has its own libmisc.a
(support/misc/libmisc.a). But why did nfs-utils 0.3.3 build and nfs-utils 1.0.1
not? Because I hadn't copied over my program files (Qt dev work) and hadn't set
up any LDFLAGS or CPPFLAGS for my user account until after I built 0.3.3 and
before I built 1.0.1. My LDFLAGS are LDFLAGS="-L/usr/lib -L/usr/qt/3/lib
-L/usr/kde/3.1/lib" which puts /usr/lib (and therefore /usr/lib/libmisc.a)
ahead of nfs-utils local libmisc.a. An unfortunate side-effect. I'm sure there
are others out there doing some kind of dev work and that are going to run into
this. Can we forward this to the nfs-utils developers for a possible change? I
went to the trouble of making a patch to search using the linker's
--start-group/--end-group. I tested the patch and it works for the above
LDFLAGS and also if no LDFLAGS are set. Should we pursue this and forward it up
the chain-of-command?
Comment 3 Brad Cowan (RETIRED) gentoo-dev 2003-03-29 14:57:47 UTC
have u tried the latest 1.0.3 release and see if its fixed in there?
Comment 4 Brad Cowan (RETIRED) gentoo-dev 2003-05-05 01:44:54 UTC
any word on this? is this fixed in the latest version?
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-05-12 16:15:31 UTC
i'd like to mark 1.0.3 as stable

any comments ?
Comment 6 Brad Cowan (RETIRED) gentoo-dev 2003-05-15 13:22:47 UTC
go ahead Martin...all fine here
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-05-16 11:35:16 UTC
1.0.3 is now stable

if still a problem try
#revdep-rebuild from gentoolkit