Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Util-linux: undefined reference to fallocate64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 961
Location: Lund, Sweden

PostPosted: Wed Feb 17, 2010 11:38 pm    Post subject: [SOLVED] Util-linux: undefined reference to fallocate64 Reply with quote

util-linux fails compilation with the following error:
Code:
  CCLD   dmesg
  CCLD   ctrlaltdel
  CCLD   pivot_root
  CCLD   switch_root
  CCLD   flock
  CCLD   ipcrm
  CCLD   ipcs
  CCLD   ipcmk
  CCLD   setsid
  CCLD   renice
  CCLD   setarch
  CCLD   cytune
  CCLD   lscpu
  CCLD   fallocate
  CCLD   unshare
fallocate.o: In function `main':
fallocate.c:(.text+0x384): undefined reference to `fallocate64'
collect2: ld returned 1 exit status
make[2]: *** [fallocate] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.17-r1/work/util-linux-ng-2.17/sys-utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.17-r1/work/util-linux-ng-2.17'
make: *** [all] Error 2
 * ERROR: sys-apps/util-linux-2.17-r1 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2629:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =sys-apps/util-linux-2.17-r1',
 * the complete build log and the output of 'emerge -pqv =sys-apps/util-linux-2.17-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/util-linux-2.17-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/util-linux-2.17-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/util-linux-2.17-r1/work/util-linux-ng-2.17'


Any ideas?
_________________
#312470 @ http://counter.li.org/


Last edited by Raniz on Sat Mar 13, 2010 10:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 1376
Location: Finland

PostPosted: Thu Feb 18, 2010 12:07 am    Post subject: Reply with quote

Yes,

Code:

ac_cv_func_fallocate=no emerge util-linux


Or upgrade to =sys-libs/glibc-2.11-r1.

http://bugs.gentoo.org/show_bug.cgi?id=300307
Back to top
View user's profile Send private message
fred0
n00b
n00b


Joined: 17 Apr 2006
Posts: 66
Location: France

PostPosted: Sat Mar 13, 2010 6:34 pm    Post subject: Reply with quote

ssuominen wrote:
Code:

ac_cv_func_fallocate=no emerge util-linux


A big thank for this hint 8)
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 961
Location: Lund, Sweden

PostPosted: Sat Mar 13, 2010 10:50 pm    Post subject: Reply with quote

Upgrading glibc did the trick
_________________
#312470 @ http://counter.li.org/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum