lfs 6.4 coreutils 6.12 build error

klaphik at aol.co.uk klaphik at aol.co.uk
Fri Jan 16 11:38:09 PST 2009


Apologies if this is a repetition, it seems my previous posts didn't 
quite make it.



Hi all,

I'm trying to work my way through the lfs6.4 stable book. As far as I 
can tell I haven't deviated from any of the instructions. I get as far 
as trying to build coreutils (5.17.1. Installation of Coreutils) and 
the coreutils build fails. I've pasted a fragment of the build output 
below. I built glibc without selinux support as instructed, but can't 
find an obvious way to turn it off when building coreutils. Any help 
would be much appreciated.

Cheers,

klaphik.



Build output:

...

gcc -std=gnu99  -I. -I../lib  -I../lib   -g -O2 -MT df.o -MD -MP -MF 
.deps/df.Tpo -c -o df.o df.c

mv -f .deps/df.Tpo .deps/df.Po

gcc -std=gnu99  -g -O2  -Wl,--as-needed -o df df.o 
../lib/libcoreutils.a  ../lib/libcoreutils.a

gcc -std=gnu99  -I. -I../lib  -I../lib   -g -O2 -MT lbracket.o -MD -MP 
-MF .deps/lbracket.Tpo -c -o lbracket.o lbracket.c

mv -f .deps/lbracket.Tpo .deps/lbracket.Po

gcc -std=gnu99  -g -O2  -Wl,--as-needed -o [ lbracket.o 
../lib/libcoreutils.a  ../lib/libcoreutils.a

gcc -std=gnu99  -I. -I../lib  -I../lib   -g -O2 -MT chcon.o -MD -MP -MF 
.deps/chcon.Tpo -c -o chcon.o chcon.c

mv -f .deps/chcon.Tpo .deps/chcon.Po

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/coreutils-6.12/src/chcon.c:546: undefined reference to 
`getfilecon'

chcon.o: In function `change_file_context':

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:199: undefined reference to 
`context_new'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:204: undefined reference to 
`context_str'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:220: undefined reference to 
`context_free'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:221: undefined reference to 
`freecon'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:220: undefined reference to 
`context_free'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:221: undefined reference to 
`freecon'

chcon.o: In function `compute_context_from_mask':

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:119: undefined reference to 
`context_new'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:141: undefined reference to 
`context_user_set'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:142: undefined reference to 
`context_range_set'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:143: undefined reference to 
`context_role_set'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:144: undefined reference to 
`context_type_set'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:149: undefined reference to 
`context_free'

chcon.o: In function `main':

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:561: undefined reference to 
`context_new'

/mnt/lfs/sources/coreutils-6.12/src/chcon.c:565: undefined reference to 
`context_free'

../lib/libcoreutils.a(selinux-at.o): In function `lsetfileconat':

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:45: undefined reference 
to `lsetfilecon'

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:38: undefined reference 
to `lsetfilecon'

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:73: undefined reference 
to `lsetfilecon'

../lib/libcoreutils.a(selinux-at.o): In function `setfileconat':

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:45: undefined reference 
to `setfilecon'

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:38: undefined reference 
to `setfilecon'

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:73: undefined reference 
to `setfilecon'

../lib/libcoreutils.a(selinux-at.o): In function `lgetfileconat':

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:45: undefined reference 
to `lgetfilecon'

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:38: undefined reference 
to `lgetfilecon'

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:73: undefined reference 
to `lgetfilecon'

../lib/libcoreutils.a(selinux-at.o): In function `getfileconat':

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:45: undefined reference 
to `getfilecon'

/mnt/lfs/sources/coreutils-6.12/lib/at-func.c:38: undefined reference 
to `getfilecon'

/mnt/lfs/sources/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/coreutils-6.12/src'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/mnt/lfs/sources/coreutils-6.12/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/mnt/lfs/sources/coreutils-6.12'

make: *** [all] Error 2
________________________________________________________________________
AOL Email goes Mobile! You can now read your AOL Emails whilst on the 
move. Sign up for a free AOL Email account with unlimited storage today.



More information about the lfs-support mailing list