Hello,
 
I am facing a serious problem in coreutils package. We have a Linux
source code 2.6.27 for cross-development on MIPS. When I build
coreutils, it builds successfully. However, when I check-in the Linux
source code to CVS and then checkout and build, it fails in coreutils.
(Log shown below)
 
Observations:
1) The build fails only after checkout from CVS. It looks like it is
trying to build for chcon and unable to find the selinux symbols.
2) A diff of the coreutils folder before and after CVS check-in shows no
difference whatsoever.
3) Selinux is disabled on the host PC.
4) I observed that after the coreutils build starts, the Makefile.in is
modified to add chcon, runuser and selinux stuff. I don't know why this
is happening.
5) Experiment: I checked out the code from CVS, then replaced the
coreutils folder with the original coreutils folder (even though there
is no seen difference). The build now succeeds!
 
I request for your the community's insight into this problem.
 
Thanks,
GM
 
-------------------------------------------------------------
rm -f libcoreutils.a
ar cru libcoreutils.a allocsa.o base64.o c-ctype.o c-strcasecmp.o
c-strncasecmp.o diacrit.o full-read.o full-write.o getdate.o hash-pjw.o
linebuffer.o localcharset.o mbchar.o mbscasecmp.o mbswidth.o
readtokens0.o savewd.o strnlen1.o unicodeio.o version-etc.o
version-etc-fsf.o xalloc-die.o xgethostname.o xmemcoll.o xreadlink.o
xreadlink-with-size.o xstrndup.o xstrtoimax.o xstrtoumax.o buffer-lcm.o
xmemxfrm.o acl.o argmatch.o asnprintf.o backupfile.o basename.o
c-strtod.o c-strtold.o calloc.o canon-host.o canonicalize.o chdir-long.o
chown.o cloexec.o close-stream.o closeout.o creat-safer.o cycle-check.o
dirchownmod.o dirname.o dup-safer.o exclude.o exitfail.o fchownat.o
fd-safer.o file-has-acl.o file-type.o filemode.o filenamecat.o fnmatch.o
fopen-safer.o fprintftime.o fstatat.o fts.o getcwd.o getgroups.o
gethrxtime.o getndelim2.o getpass.o gettime.o gettimeofday.o
getugroups.o hard-locale.o hash.o human.o i-ring.o idcache.o imaxtostr.o
isapipe.o long-options.o lstat.o malloc.o md5.o memcasecmp.o memcmp.o
memcoll.o mkancesdirs.o mkdir.o mkdir-p.o mkstemp.o mkstemp-safer.o
mktime.o modechange.o mountlist.o mpsort.o nanosleep.o obstack.o
offtostr.o open-safer.o openat-die.o openat-proc.o physmem.o
pipe-safer.o posixtm.o posixver.o printf-args.o printf-parse.o putenv.o
quote.o quotearg.o readtokens.o readutmp.o realloc.o regex.o rename.o
rename-dest-slash.o root-dev-ino.o safe-read.o safe-write.o same.o
save-cwd.o savedir.o settime.o sha1.o sig2str.o strftime.o stripslash.o
strnlen.o strtod.o tempname.o uinttostr.o umaxtostr.o unlinkdir.o
userspec.o utime.o utimecmp.o utimens.o vasnprintf.o xgetcwd.o xmalloc.o
xnanosleep.o xstrtod.o xstrtol.o xstrtold.o xstrtoul.o yesno.o
euidaccess-stat.o fd-reopen.o xfts.o memxfrm.o randint.o randperm.o
randread.o rand-isaac.o sha256.o sha512.o strintcmp.o strnumcmp.o
ranlib libcoreutils.a
mips-wrs-linux-gnu-mips_softfp-glibc_cgl-gcc -std=gnu99  -I.      -g -O2
-MT t-fpending.o -MD -MP -MF .deps/t-fpending.Tpo -c -o t-fpending.o
t-fpending.c
mv -f .deps/t-fpending.Tpo .deps/t-fpending.Po
mips-wrs-linux-gnu-mips_softfp-glibc_cgl-gcc -std=gnu99   -g -O2
-Wl,--as-needed -o t-fpending t-fpending.o libcoreutils.a -lm
rm -f t-charset.alias charset.alias
/bin/sh ./config.charset 'mips-unknown-linux-gnu' > t-charset.alias
mv t-charset.alias charset.alias
rm -f t-ref-add.sed ref-add.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@coreutils/g' ref-add.sin >
t-ref-add.sed
mv t-ref-add.sed ref-add.sed
rm -f t-ref-del.sed ref-del.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@coreutils/g' ref-del.sin >
t-ref-del.sed
mv t-ref-del.sed ref-del.sed
make[5]: Leaving directory `coreutils/src/lib'
make[4]: Leaving directory `coreutils/src/lib'
Making all in src
make[4]: Entering directory `coreutils/src/src'
perl -w -- ./dcgen ./dircolors.hin > dircolors.h-t
mv dircolors.h-t dircolors.h
make  all-am
make[5]: Entering directory `coreutils/src/src'
mips-wrs-linux-gnu-mips_softfp-glibc_cgl-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
mips-wrs-linux-gnu-mips_softfp-glibc_cgl-gcc -std=gnu99  -g -O2
-Wl,--as-needed -o [ lbracket.o ../lib/libcoreutils.a
../lib/libcoreutils.a
mips-wrs-linux-gnu-mips_softfp-glibc_cgl-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
mips-wrs-linux-gnu-mips_softfp-glibc_cgl-gcc -std=gnu99  -g -O2
-Wl,--as-needed -o chcon chcon.o ../lib/libcoreutils.a
../lib/libcoreutils.a
chcon.o: In function `change_file_context':
coreutils/src/src/chcon.c:156: undefined reference to `lgetfilecon'
coreutils/src/src/chcon.c:156: undefined reference to `lgetfilecon'
coreutils/src/src/chcon.c:176: undefined reference to `context_new'
coreutils/src/src/chcon.c:186: undefined reference to `context_new'
coreutils/src/src/chcon.c:191: undefined reference to `context_str'
coreutils/src/src/chcon.c:191: undefined reference to `context_str'
chcon.o: In function `compute_context_from_mask':
coreutils/src/src/chcon.c:191: undefined reference to `context_str'
chcon.o: In function `change_file_context':
coreutils/src/src/chcon.c:191: undefined reference to `context_str'
coreutils/src/src/chcon.c:200: undefined reference to `setfilecon'
coreutils/src/src/chcon.c:200: undefined reference to `setfilecon'
coreutils/src/src/chcon.c:219: undefined reference to `context_free'
chcon.o: In function `compute_context_from_mask':
coreutils/src/src/chcon.c:131: undefined reference to `context_free'
coreutils/src/src/chcon.c:130: undefined reference to `context_free'
coreutils/src/src/chcon.c:129: undefined reference to `context_free'
chcon.o: In function `change_file_context':
coreutils/src/src/chcon.c:219: undefined reference to `context_free'
coreutils/src/src/chcon.c:220: undefined reference to `freecon'
coreutils/src/src/chcon.c:220: undefined reference to `freecon'
coreutils/src/src/chcon.c:158: undefined reference to `getfilecon'
coreutils/src/src/chcon.c:158: undefined reference to `getfilecon'
coreutils/src/src/chcon.c:197: undefined reference to `lsetfilecon'
coreutils/src/src/chcon.c:198: undefined reference to `lsetfilecon'
coreutils/src/src/chcon.c:219: undefined reference to `context_free'
coreutils/src/src/chcon.c:219: undefined reference to `context_free'
coreutils/src/src/chcon.c:220: undefined reference to `freecon'
coreutils/src/src/chcon.c:220: undefined reference to `freecon'
coreutils/src/src/chcon.c:170: undefined reference to `context_new'
chcon.o: In function `compute_context_from_mask':
coreutils/src/src/chcon.c:118: undefined reference to `context_new'
coreutils/src/src/chcon.c:128: undefined reference to `context_user_set'
coreutils/src/src/chcon.c:128: undefined reference to `context_user_set'
coreutils/src/src/chcon.c:137: undefined reference to `context_free'
coreutils/src/src/chcon.c:137: undefined reference to `context_free'
coreutils/src/src/chcon.c:129: undefined reference to
`context_range_set'
coreutils/src/src/chcon.c:129: undefined reference to
`context_range_set'
coreutils/src/src/chcon.c:130: undefined reference to `context_role_set'
coreutils/src/src/chcon.c:130: undefined reference to `context_role_set'
coreutils/src/src/chcon.c:131: undefined reference to `context_type_set'
coreutils/src/src/chcon.c:131: undefined reference to `context_type_set'
chcon.o: In function `main':
coreutils/src/src/chcon.c:403: undefined reference to `getfilecon'
coreutils/src/src/chcon.c:405: undefined reference to `getfilecon'
coreutils/src/src/chcon.c:418: undefined reference to `freecon'
coreutils/src/src/chcon.c:419: undefined reference to `freecon'
collect2: ld returned 1 exit status
make[5]: *** [chcon] Error 1
make[5]: Leaving directory `coreutils/src/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `coreutils/src/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `coreutils/src'
make[2]: *** [build] Error 2
make[2]: Leaving directory `coreutils'
make[1]: *** [all] Error 2
make[1]: Leaving directory `'
make: *** [gnuapp] Error 2

Reply via email to