Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160265 - app-arch/dpkg-1.13.24 fails to link (missing selinux support)
Summary: app-arch/dpkg-1.13.24 fails to link (missing selinux support)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-05 05:31 UTC by Patrizio Bassi
Modified: 2009-06-20 11:34 UTC (History)
2 users (show)

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


Attachments
log (log,29.00 KB, text/plain)
2007-01-06 10:26 UTC, Patrizio Bassi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2007-01-05 05:31:20 UTC
if x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl -DADMINDIR=\"/var/lib/dpkg\" -I../lib    -O2 -pipe -MT select.o -MD -MP -MF ".deps/select.Tpo" -c -o select.o select.c; \
        then mv -f ".deps/select.Tpo" ".deps/select.Po"; else rm -f ".deps/select.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl -DADMINDIR=\"/var/lib/dpkg\" -I../lib    -O2 -pipe -MT update.o -MD -MP -MF ".deps/update.Tpo" -c -o update.o update.c; \
        then mv -f ".deps/update.Tpo" ".deps/update.Po"; else rm -f ".deps/update.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl -DADMINDIR=\"/var/lib/dpkg\" -I../lib    -O2 -pipe -MT query.o -MD -MP -MF ".deps/query.Tpo" -c -o query.o query.c; \
        then mv -f ".deps/query.Tpo" ".deps/query.Po"; else rm -f ".deps/query.Tpo"; exit 1; fi
In file included from update.c:35:
main.h:190: warning: ‘struct stat’ declared inside parameter list
main.h:190: warning: its scope is only this definition or declaration, which is probably not what you want
x86_64-pc-linux-gnu-gcc -std=gnu99  -O2 -pipe  -Wl,-O1 -o dpkg  archives.o cleanup.o configure.o depcon.o enquiry.o errors.o filesdb.o help.o main.o packages.o processarc.o remove.o select.o update.o  ../lib/libdpkg.a -lz -lbz2
processarc.o: In function `process_archive':
processarc.c:(.text+0x359): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
archives.o: In function `tarobject':
archives.c:(.text+0x210c): undefined reference to `matchpathcon'
archives.c:(.text+0x23bd): undefined reference to `setfscreatecon'
archives.c:(.text+0x23d1): undefined reference to `freecon'
archives.c:(.text+0x2405): undefined reference to `setfscreatecon'
archives.c:(.text+0x268e): undefined reference to `setfscreatecon'
archives.c:(.text+0x2754): undefined reference to `is_selinux_enabled'
collect2: ld returned 1 exit status
make[2]: *** [dpkg] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/app-arch/dpkg-1.13.24/work/dpkg-1.13.24/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-arch/dpkg-1.13.24/work/dpkg-1.13.24'
make: *** [all] Error 2

Portage 2.1.2_rc4-r6 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19.1 x86_64)
=================================================================
System uname: 2.6.19.1 x86_64 Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
Gentoo Base System version 1.12.8
Last Sync: Fri, 05 Jan 2007 11:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="39"
LC_ALL="it_IT.utf8"
LINGUAS="it"
MAKEOPTS="-j4"
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://rsync.gentoo.org/gentoo-portage"
USE="X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adns aiglx alsa amd64 amuled apache2 apm asf audiofile bash-completion berkdb bidi bitmap-fonts bootsplash browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot clamav cli client codecs cracklib crypt css ctype cups curl dba dbus dga dhcp directfb djbfft dri dvd dvdr dvdread edl encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foreign-package fortran ftp gcc64 gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap innodb ipod irda irmc isdnlog jack java java5 javamail javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kdehiddenvisibility kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb lirc live lm_sensors lua lzo mailwrapper matroska md5sum mdb mhash mikmod mime mmx2 mng mono mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mpm-prefork msn msnextras musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin nv nvidia oav odbc ogg openal opengl openssl operanom2 pam pcre pda pdf pdo pear perl php pmu png pnp postgres ppds pppd pthreads python qemu-fast qhull qt3 qt4 quotas readline reflection rrdtool rtc ruby samba scanner sdl server session sftplogging sguil slang slp smp snortsam soap sockets socks5 softmmu softquota spamassassin speex spl sqlite3 sse3 ssl ssse3 subject-rewrite svg tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb userlocales vorbis wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid xvm xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2007-01-06 10:17:19 UTC
run `emerge dpkg >& log` and post the log as an attachment
Comment 2 Patrizio Bassi 2007-01-06 10:26:14 UTC
Created attachment 105615 [details]
log
Comment 3 SpanKY gentoo-dev 2007-01-06 10:31:38 UTC
i see you have libselinux installed on your system ... unmerge it
Comment 4 Patrizio Bassi 2007-01-06 10:50:25 UTC
you're right fixed.
Comment 5 Adam Walker 2009-05-20 00:10:55 UTC
This bug/problem also exists in 1.14.22 with Portage 2.1.6.11 (selinux/2007.0/amd64/hardened, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.19.7 x86_64). Unmerging libselinux on a hardened profile results in all sorts of wonderful system-wide breakage.
Comment 6 Guenter Sandner 2009-06-19 18:26:42 UTC
same issue here ( using the selinux profile, without hardend )
unmerging libselinux is not an acceptable workaround here, but temporary adding '-lselinux' to the LDFLAGS works fine

please reopen this bug

maybe this bug should be forwarded to libselinux, because libselinux-2.0.71 does not provide a pkg-config file 'libselinux.pc':
[code]
checking for is_selinux_enabled in -lselinux... yes
Package libselinux was not found in the pkg-config search path.
Perhaps you should add the directory containing `libselinux.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libselinux' found
checking selinux/selinux.h usability... yes
checking selinux/selinux.h presence... yes
checking for selinux/selinux.h... yes
[/code]
but if the configure script can do additional checks to search for the selinux headers, it could also search for the selinux library



Comment 7 SpanKY gentoo-dev 2009-06-20 11:34:07 UTC
file a new bug