On Tue, Jul 14 2009, Kees Cook wrote: > On Mon, Jul 13, 2009 at 11:50:00PM -0500, Manoj Srivastava wrote: >> Now, can I have the full logs, please? How did y'all manage to >> get Make going into utils before the src was done? > > https://launchpad.net/ubuntu/+source/libselinux/2.0.82-1
OK. I'll try to annotate the build failures I found on the web site: http://launchpadlibrarian.net/28535789/buildlog_ubuntu-karmic-lpia.libselinux_2.0.82-1_FAILEDTOBUILD.txt.gz I see a whole lot of: make[1]: warning: -jN forced in submake: disabling jobserver mode. This means that -jN is being forced on all the makes and submakes, and make is no longer allowed to modify the MAKEFLAGS to set -jN; and thus the jobserver mode, where makes talk to each other, is now disabled. ,----[ Here is where we compiled the .so file ] | ar rcs libselinux.a avc.o avc_internal.o avc_sidtab.o booleans.o callbacks.o canonicalize_context.o checkAccess.o check_context.o compute_av.o compute_create.o compute_member.o compute_relabel.o compute_user.o context.o deny_unknown.o disable.o enabled.o fgetfilecon.o freecon.o freeconary.o fsetfilecon.o get_context_list.o get_default_type.o get_initial_context.o getenforce.o getfilecon.o getpeercon.o init.o is_customizable_type.o label.o label_file.o label_media.o label_x.o lgetfilecon.o load_policy.o lsetfilecon.o mapping.o matchmediacon.o matchpathcon.o policyvers.o procattr.o query_user_context.o rpm.o selinux_check_securetty_context.o selinux_config.o setenforce.o setfilecon.o setrans_client.o seusers.o stringrep.o | ranlib libselinux.a | cc -Wall -g -O2 -I../include -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-Bsymbolic-functions -s -s -shared -o libselinux.so.1 avc.lo avc_internal.lo avc_sidtab.lo booleans.lo callbacks.lo canonicalize_context.lo checkAccess.lo check_context.lo compute_av.lo compute_create.lo compute_member.lo compute_relabel.lo compute_user.lo context.lo deny_unknown.lo disable.lo enabled.lo fgetfilecon.lo freecon.lo freeconary.lo fsetfilecon.lo get_context_list.lo get_default_type.lo get_initial_context.lo getenforce.lo getfilecon.lo getpeercon.lo init.lo is_customizable_type.lo label.lo label_file.lo label_media.lo label_x.lo lgetfilecon.lo load_policy.lo lsetfilecon.lo mapping.lo matchmediacon.lo matchpathcon.lo policyvers.lo procattr.lo query_user_context.lo rpm.lo selinux_check_securetty_context.lo selinux_config.lo setenforce.lo setfilecon.lo setrans_client.lo seusers.lo stringrep.lo -ldl -lpthread -L/usr/lib -Wl,-soname,libselinux.so.1,-z,defs,-z,relro | sed -e 's/@VERSION@//; s:@prefix@:/usr:; s:@libdir@:/usr/lib:; s:@includedir@:/usr/include:' < libselinux.pc.in > libselinux.pc | swig -Wall -ruby -o selinuxswig_ruby_wrap.c -outdir ./ selinuxswig_ruby.i | ln -sf libselinux.so.1 libselinux.so | make[3]: Leaving directory `/build/buildd/libselinux-2.0.82/src' `---- So, no errors here. ,---- | make[3]: Entering directory `/build/buildd/libselinux-2.0.82/utils' | cc -Wall -g -O2 -I../include -D_GNU_SOURCE -Wl,-Bsymbolic-functions -s -s avcstat.c -L../src -lselinux -L/usr/lib -o avcstat | cc -Wall -g -O2 -I../include -D_GNU_SOURCE -Wl,-Bsymbolic-functions -s -s compute_av.c -L../src -lselinux -L/usr/lib -o compute_av | cc -Wall -g -O2 -I../include -D_GNU_SOURCE -Wl,-Bsymbolic-functions -s -s compute_create.c -L../src -lselinux -L/usr/lib -o compute_create | ../include/selinux/avc.h:410: Warning(302): Identifier 'avc_cache_stats' redefined (ignored), | ../include/selinux/avc.h:390: Warning(302): previous definition of 'avc_cache_stats'. | ../include/selinux/selinux.h:127: Warning(801): Wrong class name (corrected to `Av_decision') | ../include/selinux/selinux.h:127: Warning(801): Wrong class name (corrected to `Av_decision') | cc -Wall -g -O2 -I../include -D_GNU_SOURCE -Wl,-Bsymbolic-functions -s -s compute_user.c -L../src -lselinux -L/usr/lib -o compute_user | ../include/selinux/avc.h:140: Warning(801): Wrong class name (corrected to `Avc_thread_callback') | ../include/selinux/avc.h:140: Warning(801): Wrong class name (corrected to `Avc_thread_callback') | ../include/selinux/avc.h:148: Warning(801): Wrong class name (corrected to `Avc_lock_callback') | ../include/selinux/avc.h:148: Warning(801): Wrong class name (corrected to `Avc_lock_callback') | ../include/selinux/avc.h:390: Warning(801): Wrong class name (corrected to `Avc_cache_stats') | ../include/selinux/avc.h:390: Warning(801): Wrong class name (corrected to `Avc_cache_stats') `---- Still fine. The following is the bad part. --8<---------------cut here---------------start------------->8--- T1 ar rcs libselinux.a avc.o avc_internal.o avc_sidtab.o booleans.o callbacks.o canonicalize_context.o checkAccess.o check_context.o compute_av.o compute_create.o compute_member.o compute_relabel.o compute_user.o context.o deny_unknown.o disable.o enabled.o fgetfilecon.o freecon.o freeconary.o fsetfilecon.o get_context_list.o get_default_type.o get_initial_context.o getenforce.o getfilecon.o getpeercon.o init.o is_customizable_type.o label.o label_file.o label_media.o label_x.o lgetfilecon.o load_policy.o lsetfilecon.o mapping.o matchmediacon.o matchpathcon.o policyvers.o procattr.o query_user_context.o rpm.o selinux_check_securetty_context.o selinux_config.o setenforce.o setfilecon.o setrans_client.o seusers.o stringrep.o T2 cc -Wall -g -O2 -I../include -D_GNU_SOURCE -Wl,-Bsymbolic-functions -s -s getconlist.c -L../src -lselinux -L/usr/lib -o getconlist T1 ranlib libselinux.a T1 cc -Wall -g -O2 -I../include -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-Bsymbolic-functions -s -s -shared -o libselinux.so.1 avc.lo avc_internal.lo avc_sidtab.lo booleans.lo callbacks.lo canonicalize_context.lo checkAccess.lo check_context.lo compute_av.lo compute_create.lo compute_member.lo compute_relabel.lo compute_user.lo context.lo deny_unknown.lo disable.lo enabled.lo fgetfilecon.lo freecon.lo freeconary.lo fsetfilecon.lo get_context_list.lo get_default_type.lo get_initial_context.lo getenforce.lo getfilecon.lo getpeercon.lo init.lo is_customizable_type.lo label.lo label_file.lo label_media.lo label_x.lo lgetfilecon.lo load_policy.lo lsetfilecon.lo mapping.lo matchmediacon.lo matchpathcon.lo policyvers.lo procattr.lo query_user_context.lo rpm.lo selinux_check_securetty_context.lo selinux_config.lo setenforce.lo setfilecon.lo setrans_client.lo seusers.lo stringrep.lo -ldl -lpthread -L/usr/lib -Wl,-soname,libselinux.so.1,-z,defs,-z,relro T2 ../src/libselinux.so: file not recognized: File format not recognized --8<---------------cut here---------------end--------------->8--- Woah. There are two threads, and one is _rebuilding_ the liraries, while another one is trying to compile the binaries. All because, instead of calling make -jN, dpkg idiotically sets -jN in the MAKEFLAGS. I'll turn off parallel builds; though I think dpkg is crazy to force -jN in submakes with no idea what it is actually doing. manoj -- I would suggest the taxation of all property equally whether church or corporation. --anonymous Manoj Srivastava <sriva...@acm.org> <http://www.golden-gryphon.com/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org