Trying to build linux from scratch from LFS-7.2 , I have reached the
section 5.17 - building CoreUtils . Everything has worked appropriately
till now , but now when I try to make Coreutils I get the following error-

Instruction - make

Error :

CCLD     chcon
chcon.o: In function `change_file_context':
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:177: undefined reference to
`context_new'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:182: undefined reference to
`context_str'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:198: undefined reference to
`context_free'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:199: undefined reference to
`freecon'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:198: undefined reference to
`context_free'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:199: undefined reference to
`freecon'
chcon.o: In function `compute_context_from_mask':
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:97: undefined reference to
`context_new'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:119: undefined reference to
`context_user_set'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:120: undefined reference to
`context_range_set'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:121: undefined reference to
`context_role_set'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:122: undefined reference to
`context_type_set'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:127: undefined reference to
`context_free'
chcon.o: In function `main':
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:547: undefined reference to
`context_new'
/mnt/lfs/sources/coreutils-8.14/src/chcon.c:551: undefined reference to
`context_free'
../lib/libcoreutils.a(getfilecon.o): In function `rpl_getfilecon':
/mnt/lfs/sources/coreutils-8.14/lib/getfilecon.c:71: undefined reference to
`getfilecon'
../lib/libcoreutils.a(getfilecon.o): In function `map_to_failure':
/mnt/lfs/sources/coreutils-8.14/lib/getfilecon.c:60: undefined reference to
`freecon'
../lib/libcoreutils.a(getfilecon.o): In function `rpl_lgetfilecon':
/mnt/lfs/sources/coreutils-8.14/lib/getfilecon.c:78: undefined reference to
`lgetfilecon'
../lib/libcoreutils.a(getfilecon.o): In function `map_to_failure':
/mnt/lfs/sources/coreutils-8.14/lib/getfilecon.c:60: undefined reference to
`freecon'
../lib/libcoreutils.a(getfilecon.o): In function `rpl_fgetfilecon':
/mnt/lfs/sources/coreutils-8.14/lib/getfilecon.c:85: undefined reference to
`fgetfilecon'
../lib/libcoreutils.a(getfilecon.o): In function `map_to_failure':
/mnt/lfs/sources/coreutils-8.14/lib/getfilecon.c:60: undefined reference to
`freecon'
../lib/libcoreutils.a(selinux-at.o): In function `setfileconat':
/mnt/lfs/sources/coreutils-8.14/lib/at-func.c:80: undefined reference to
`setfilecon'
/mnt/lfs/sources/coreutils-8.14/lib/at-func.c:117: undefined reference to
`setfilecon'
/mnt/lfs/sources/coreutils-8.14/lib/at-func.c:73: undefined reference to
`setfilecon'
../lib/libcoreutils.a(selinux-at.o): In function `lsetfileconat':
/mnt/lfs/sources/coreutils-8.14/lib/at-func.c:80: undefined reference to
`lsetfilecon'
/mnt/lfs/sources/coreutils-8.14/lib/at-func.c:117: undefined reference to
`lsetfilecon'
/mnt/lfs/sources/coreutils-8.14/lib/at-func.c:73: undefined reference to
`lsetfilecon'
collect2: ld returned 1 exit status
make[3]: *** [chcon] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/coreutils-8.14/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/coreutils-8.14/src'

I am running this on a Ubuntu-11.04 version.


Cheers

-- 
- Vaibhav Agarwal
-- 
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