Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166139 - syslog-ng fails to compile with hardened
Summary: syslog-ng fails to compile with hardened
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-09 22:17 UTC by Armin Mohring
Modified: 2007-02-10 13:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Mohring 2007-02-09 22:17:00 UTC
syslog-ng-1.6.11-r1 fails to compile with profile="hardened".

Reproducible: Always

Steps to Reproduce:
1.use profile hardened
2.emerge -av syslog-ng
3.emerge -e system

Actual Results:  
syslog-ng fails to compile

Expected Results:  
compilation should compile fine.
Comment 1 Armin Mohring 2007-02-09 22:21:15 UTC
compiler error:
---------------
>>> Compiling source in /var/tmp/portage/syslog-ng-1.6.11-r1/work/syslog-ng-1.6.11 ...
 * econf: updating syslog-ng-1.6.11/libol-0.3.18/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating syslog-ng-1.6.11/libol-0.3.18/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --with-libol=//usr/bin --disable-full-static --enable-tcp-wrapper --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether build environment is sane... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for unistd.h... (cached) yes
checking door.h usability... no
checking door.h presence... no
checking for door.h... no
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/strlog.h usability... no
checking sys/strlog.h presence... no
checking for sys/strlog.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking sys/klog.h usability... yes
checking sys/klog.h presence... yes
checking for sys/klog.h... yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for modern utmp... yes
checking for global timezone variable... yes
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 8
checking for I_CONSLOG... no
checking for O_LARGEFILE... yes
checking for res_init in <resolv.h>... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for _doprnt... no
checking for res_init in -lresolv... no
checking for __res_init in -lresolv... yes
checking for door_create in -ldoor... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for nanosleep in -lrt... yes
checking for select... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strerror... yes
checking for inet_aton... yes
checking for strncpy... yes
checking for getutent... yes
checking for getopt_long... yes
checking for strcasecmp... yes
checking for strptime... yes
checking for strftime... yes
checking for TCP wrapper library... -lwrap
checking for %z format string in strftime... yes
checking whether to enable Sun STREAMS support... no
checking whether to enable Sun door support... no
checking whether to enable TCP wrapper support... yes
checking whether to enable spoof_source support... no
checking how to enable static linking for certain libraries... GNU or Solaris
checking libol version >= 0.3.16... ok
configure: creating ./config.status
config.status: creating dist.conf
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/sgml/Makefile
config.status: creating contrib/Makefile
config.status: creating debian/changelog
config.status: creating syslog-ng.spec
config.status: creating syslog-ng.spec.bb
config.status: creating src/config.h
config.status: executing depfiles commands
Making all in src
Making all in .
sources.c: In function `do_read_line':
sources.c:102: warning: passing arg 5 of pointer to function from incompatible pointer type
cfg-lex.c:1370: warning: 'yyunput' defined but not used
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libol.a(format.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libol.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [syslog-ng] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

!!! ERROR: app-admin/syslog-ng-1.6.11-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  syslog-ng-1.6.11-r1.ebuild, line 42:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-02-09 22:25:49 UTC
emerge --info please.
Comment 3 Armin Mohring 2007-02-09 22:31:30 UTC
here is the emerge --info:
Gentoo Base System release 1.12.8
Portage 2.1.1-r2 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Last Sync: Fri, 09 Feb 2007 17:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fix-packages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="rsync://linux.rz.ruhr-uni-bochum.de/gentoo/ rsync://ftp.join.uni-muenster.de/gentoo/ rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ rsync://ftp-stud.fht-esslingen.de/gentoo/ rsync://gentoo.intergenia.de/gentoo-linux/ rsync://ftp.belnet.be/gentoo/ rsync://ftp.snt.utwente.nl/gentoo/ rsync://gd.tuwien.ac.at/opsys/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://gentoo.prz.rzeszow.pl/gentoo/ rsync://ftp.lug.ro/gentoo/ rsync://trumpetti.atm.tut.fi/gentoo/ rsync://ftp.rhnet.is/gentoo/ rsync://mirror.hamakor.org.il/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j1 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aiglx alsa alsa_cards_intel_8x0 amd64 bash-completion berkdb cairo cdparanoia cdr dbus dlloader dts dvd dvdr elibc_glibc encode esd firefox ftp gif glibc-omitfp gnome gstreamer gtk gtk2 hal hardened input_devices_keyboard input_devices_mouse ipv6 java javascript jpeg justify kernel_linux ldap linguas_en mad midi mikmod mp3 mpeg mpeg2 ncurses nls nptl nptlonly ogg opengl pam pic png quicktime readline sdl sse sse2 ssl tcpd truetpye truetype unicode userland_GNU video_cards_nv vorbis wxGTK x264 xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 4 Armin Mohring 2007-02-10 13:16:12 UTC
I have recompiled the system and the compile process of syslog-ng did not report any error.