This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/14253] Glibc does not build with SELinux support


http://sourceware.org/bugzilla/show_bug.cgi?id=14253

--- Comment #6 from Wolf <lailavrazda1979 at gmail dot com> 2012-06-20 07:05:43 UTC ---
(In reply to comment #5)
> Ok, you're using a newer version of the libs than I do - and I don't see the
> problem:
> libselinux1-2.0.91-18.1.x86_64
> libsepol1-2.0.41-14.36.x86_64

I'm using the configparms file. Try it with these:

../glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons
--enable-kernel=3.2 --libexecdir=/usr/lib/glibc --enable-bind-now
--enable-stackguard-randomization libc_cv_gcc_builtin_expect=yes

cat > configparms << "EOF"
build-programs=no
CC += -fPIC -fno-stack-protector -U_FORTIFY_SOURCE -nonow -nopie
CXX += -fPIC -fno-stack-protector -U_FORTIFY_SOURCE -nonow -nopie
EOF

make

cat > configparms << "EOF"
CC += -fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2
CXX += -fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2
CFLAGS-sln.c += -fno-PIC -fno-PIE
+link = $(CC) -pie -Wl,-O1 -nostdlib -nostartfiles -o $@ \
$(sysdep-LDFLAGS) $(config-LDFLAGS) $(LDFLAGS) $(LDFLAGS-$(@F)) \
$(combreloc-LDFLAGS) $(relro-LDFLAGS) $(hashstyle-LDFLAGS) \
-Wl,-z,now -Wl,--warn-shared-textrel,--fatal-warnings \
$(addprefix $(csu-objpfx),S$(start-installed-name)) \
$(+preinit) $(+prectorS) \
$(filter-out $(addprefix $(csu-objpfx),start.o \
S$(start-installed-name))\
$(+preinit) $(link-extra-libs) \
$(common-objpfx)libc% $(+postinit),$^) \
$(link-extra-libs) $(link-libc) $(+postctorS) $(+postinit)
EOF

make

I'm still working on setting up my environment again.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]