Gday,

 

I am at step 5.17 compiling coreutils-6.12, I've run configure successfully now 
when I run make I get the following errors:

 

gcc -std=gnu99  -g -O2  -Wl,--as-needed -o chcon chcon.o ../lib/libcoreutils.a  
../lib/libcoreutils.a
chcon.o: In function `main':
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:546: undefined reference to 
`getfilecon'
chcon.o: In function `change_file_context':
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:199: undefined reference to 
`context_new'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:204: undefined reference to 
`context_str'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:220: undefined reference to 
`context_free'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:221: undefined reference to 
`freecon'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:220: undefined reference to 
`context_free'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:221: undefined reference to 
`freecon'
chcon.o: In function `compute_context_from_mask':
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:119: undefined reference to 
`context_new'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:141: undefined reference to 
`context_user_set'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:142: undefined reference to 
`context_range_set'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:143: undefined reference to 
`context_role_set'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:144: undefined reference to 
`context_type_set'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:149: undefined reference to 
`context_free'
chcon.o: In function `main':
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:561: undefined reference to 
`context_new'
/mnt/lfs/sources/6.4/coreutils-6.12/src/chcon.c:565: undefined reference to 
`context_free'
../lib/libcoreutils.a(selinux-at.o): In function `lsetfileconat':
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:45: undefined reference to 
`lsetfilecon'
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:38: undefined reference to 
`lsetfilecon'
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:73: undefined reference to 
`lsetfilecon'
../lib/libcoreutils.a(selinux-at.o): In function `setfileconat':
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:45: undefined reference to 
`setfilecon'
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:38: undefined reference to 
`setfilecon'
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:73: undefined reference to 
`setfilecon'
../lib/libcoreutils.a(selinux-at.o): In function `lgetfileconat':
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:45: undefined reference to 
`lgetfilecon'
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:38: undefined reference to 
`lgetfilecon'
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:73: undefined reference to 
`lgetfilecon'
../lib/libcoreutils.a(selinux-at.o): In function `getfileconat':
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:45: undefined reference to 
`getfilecon'
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:38: undefined reference to 
`getfilecon'
/mnt/lfs/sources/6.4/coreutils-6.12/lib/at-func.c:73: undefined reference to 
`getfilecon'
collect2: ld returned 1 exit status
make[3]: *** [chcon] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/6.4/coreutils-6.12/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/6.4/coreutils-6.12/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/6.4/coreutils-6.12'
make: *** [all] Error 2


I am not familiar with selinux or chcon so I am at a loss to make any progress 
with this error, I am building this LFS system on a RedHat Enterprise Linux 5 
install.  Also based on a suggestion found on Google I have tried several other 
versions of coreutils but I get the same error in all of them.  Please help me 
with this I am unable to fix this problem.

 

Thanks

Russ

_________________________________________________________________
Get the latest news, goss and sport Make ninemsn your homepage!
http://windowslive.ninemsn.com.au/article.aspx?id=813730
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to