Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123736 - sys-apps/man-1.6c: man is rebuilt in src_install
Summary: sys-apps/man-1.6c: man is rebuilt in src_install
Status: VERIFIED DUPLICATE of bug 114722
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-22 12:16 UTC by Sandro Bonazzola (RETIRED)
Modified: 2006-06-30 12:12 UTC (History)
0 users

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


Attachments
portage-log (5306-man-1.6c.log,15.65 KB, text/plain)
2006-02-23 10:48 UTC, Sandro Bonazzola (RETIRED)
Details
log (log,15.91 KB, text/plain)
2006-02-25 10:17 UTC, Sandro Bonazzola (RETIRED)
Details
debug log (log,28.63 KB, text/plain)
2006-02-26 01:13 UTC, Sandro Bonazzola (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-22 12:16:11 UTC
QA Notice: the following files are setXid, dyn linked, and using lazy bindings
 This combination is generally discouraged.  Try re-emerging the package:
 LDFLAGS='-Wl,-z,now' emerge man
LAZY usr/bin/man

LDFLAGS='-Wl,-z,now' emerge man seems to solve the problem, but the ebuild could be updated to append the LDFLAGS.
Comment 1 SpanKY gentoo-dev 2006-02-22 19:29:39 UTC
you neglected to post any real info ... this issue was fixed quite a while ago in the ebuild:
    # use non-lazy binds for man
    append-ldflags $(bindnow-flags)
Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-23 10:46:41 UTC
# emerge --info
Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS=" -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow "
DISTDIR="/home/ftp/distfiles"
FEATURES="autoconfig ccache collision-protect confcache cvs distlocks elog multilib-strict parallel-fetch sandbox sfperms sign strict stricter test userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.osuosl.org/ http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.heanet.ie/pub/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://gentoo.ngi.it http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="it_IT.utf8"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/migration-overlay /usr/local/overlays/tinyos /usr/local/overlays/gentoo-java-experimental"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib acl acpi alsa apache2 arts asf audiofile avi berkdb bitmap-fonts bzip2 cairo canvas ccache cdb cdparanoia cdr chroot cpudetection crypt css cups curl dba dbus dga directfb dlloader dri dts dv dvd dvdr dvdread dynagraph emboss encode erandom esd exif expat extrafilters fame ffmpeg firefox flac foomaticdb gd gdbm ggi gif gimp gimpprint glibc-omitfp glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imlib ipv6 ithreads java jbig jikes jpeg jpeg2k justify kde kdeenablefinal lcms ldap libcaca linuxthreads-tls lm_sensors logitech-mouse logrotate lzo lzw lzw-tiff mad mailwrapper mbox mdb mhash mikmod mjpeg mmap mng motif mozsvg mp3 mpeg mpm-worker musicbrainz mysql ncurses nls nptl nptlonly numeric nvidia odbc offensive ogg on-the-fly-crypt openexr opengl oss pam pcre pcsc-lite pdf pdflib perl php png povray ppds python qt quicktime rdesktop readline rtc samba scanner sdl slang smp snmp speex spell ssl subversion svg sysfs tcltk tcpd test tetex tga theora threads tidy tiff timidity truetype truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2 vcd vda vorbis wmf xcomposite xine xinerama xml2 xmms xpm xscreensaver xv xvid yv12 zlib elibc_glibc input_devices_mouse input_devices_evdev input_devices_keyboard kernel_linux linguas_it userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS, MAKEOPTS
Comment 3 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-23 10:48:33 UTC
Created attachment 80534 [details]
portage-log

if you need any other info feel free to ask.
Comment 4 SpanKY gentoo-dev 2006-02-23 11:02:05 UTC
looks like you have a broken version of pax-utils ... is it the latest version ?
Comment 5 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-23 11:21:39 UTC
# emerge -av pax-utils

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-misc/pax-utils-0.1.10  USE="-caps" 0 kB

It seems to be something related with amd64. In my 32bit chroot with the following emerge --info there is no trace of the LAZY issue:

# emerge --info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.6-r2, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.3.4-r1, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -msse2 -fomit-frame-pointer -pipe -fforce-addr -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -msse2 -fomit-frame-pointer -pipe -fforce-addr -ftracer"
DISTDIR="/home/ftp/distfiles"
FEATURES="autoconfig collision-protect confcache cvs distlocks elog multilib-strict parallel-fetch sandbox sfperms sign strict stricter test userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.osuosl.org/ http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.heanet.ie/pub/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://gentoo.ngi.it http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="it_IT.utf8"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/migration-overlay /usr/local/overlays/tinyos /usr/local/overlays/gentoo-java-experimental"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac aalib acl acpi alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bzip2 cairo canvas ccache cdb cdparanoia cdr chroot cpudetection crypt css cups curl dba dbus dga directfb dlloader dri dts dv dvd dvdr dvdread dynagraph emboss encode erandom esd exif expat extrafilters fame ffmpeg firefox flac foomaticdb gd gdbm ggi gif gimp gimpprint glibc-omitfp glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imlib ipv6 ithreads java jbig jikes jpeg jpeg2k justify kde kdeenablefinal lcms ldap libcaca libg++ libwww linuxthreads-tls lm_sensors logitech-mouse logrotate lzo mad mailwrapper mbox mdb mhash mikmod mjpeg mmap mng motif mozsvg mp3 mpeg mpm-worker musicbrainz mysql ncurses nls nptl nptlonly numeric nvidia odbc offensive ogg oggvorbis on-the-fly-crypt openexr opengl oss pam pcre pcsc-lite pdf pdflib perl php png povray ppds python qt quicktime rdesktop readline rtc samba scanner sdl slang smp snmp speex spell ssl subversion svg sysfs tcltk tcpd test tetex tga theora threads tidy timidity truetype truetype-fonts type1-fonts unicode userlocales utf8 v4l v4l2 vcd vda vorbis wmf xcomposite xine xinerama xml2 xmms xscreensaver xv xvid yv12 zlib elibc_glibc input_devices_mouse input_devices_evdev input_devices_keyboard kernel_linux linguas_it userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS, MAKEOPTS
Comment 6 SpanKY gentoo-dev 2006-02-23 11:33:36 UTC
what is the output of:
readelf -d /usr/bin/man
ls -l /usr/bin/man
Comment 7 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-24 11:13:49 UTC
(In reply to comment #6)
> what is the output of:
> readelf -d /usr/bin/man

# readelf -d /usr/bin/man

Dynamic section at offset 0xb028 contains 22 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x401568
 0x000000000000000d (FINI)               0x408368
 0x0000000000000004 (HASH)               0x400278
 0x0000000000000005 (STRTAB)             0x400ba8
 0x0000000000000006 (SYMTAB)             0x4004b8
 0x000000000000000a (STRSZ)              593 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x50b1e0
 0x0000000000000002 (PLTRELSZ)           1560 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x400f50
 0x0000000000000007 (RELA)               0x400ec0
 0x0000000000000008 (RELASZ)             144 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000000000001e (FLAGS)              BIND_NOW
 0x000000006ffffffb (FLAGS_1)            Flags: NOW
 0x000000006ffffffe (VERNEED)            0x400e90
 0x000000006fffffff (VERNEEDNUM)         1
 0x000000006ffffff0 (VERSYM)             0x400dfa
 0x0000000000000000 (NULL)               0x0

> ls -l /usr/bin/man

# ls -l /usr/bin/man
-r-xr-s--x 1 root man 50352  7 feb 20:24 /usr/bin/man
Comment 8 SpanKY gentoo-dev 2006-02-24 12:40:41 UTC
mmm and what about `scanelf -a /usr/bin/man`
Comment 9 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-25 03:00:03 UTC
I'm sorry the previous output comes from a LDFLAGS='-Wl,-z,now' emerge man.
without forcing LDFLAGS I have:

# scanelf -a /usr/bin/man
 TYPE    PAX   STK/REL/PTL TEXTREL RPATH BIND FILE
ET_EXEC ---xe- RW- --- RW-    -      -   LAZY /usr/bin/man

# readelf -d /usr/bin/man

Dynamic section at offset 0xb028 contains 20 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x401568
 0x000000000000000d (FINI)               0x408368
 0x0000000000000004 (HASH)               0x400278
 0x0000000000000005 (STRTAB)             0x400ba8
 0x0000000000000006 (SYMTAB)             0x4004b8
 0x000000000000000a (STRSZ)              593 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x50b1c0
 0x0000000000000002 (PLTRELSZ)           1560 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x400f50
 0x0000000000000007 (RELA)               0x400ec0
 0x0000000000000008 (RELASZ)             144 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0x400e90
 0x000000006fffffff (VERNEEDNUM)         1
 0x000000006ffffff0 (VERSYM)             0x400dfa
 0x0000000000000000 (NULL)               0x0

# ls -l /usr/bin/man
-r-xr-s--x 1 root man 50320 25 feb 11:49 /usr/bin/man


Forcing LDFLAGS I have:

# LDFLAGS='-Wl,-z,now' emerge man

# ls -l /usr/bin/man
-r-xr-s--x 1 root man 50352 25 feb 11:52 /usr/bin/man

# readelf -d /usr/bin/man

Dynamic section at offset 0xb028 contains 22 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x401568
 0x000000000000000d (FINI)               0x408368
 0x0000000000000004 (HASH)               0x400278
 0x0000000000000005 (STRTAB)             0x400ba8
 0x0000000000000006 (SYMTAB)             0x4004b8
 0x000000000000000a (STRSZ)              593 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x50b1e0
 0x0000000000000002 (PLTRELSZ)           1560 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x400f50
 0x0000000000000007 (RELA)               0x400ec0
 0x0000000000000008 (RELASZ)             144 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000000000001e (FLAGS)              BIND_NOW
 0x000000006ffffffb (FLAGS_1)            Flags: NOW
 0x000000006ffffffe (VERNEED)            0x400e90
 0x000000006fffffff (VERNEEDNUM)         1
 0x000000006ffffff0 (VERSYM)             0x400dfa
 0x0000000000000000 (NULL)               0x0

# scanelf -a /usr/bin/man
 TYPE    PAX   STK/REL/PTL TEXTREL RPATH BIND FILE
ET_EXEC ---xe- RW- --- RW-    -      -   NOW /usr/bin/man
Comment 10 SpanKY gentoo-dev 2006-02-25 06:44:48 UTC
post the output of `emerge man >& log` then where you *arent* forcing LDFLAGS
Comment 11 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-25 10:17:53 UTC
Created attachment 80714 [details]
log

output of `emerge man >& log`.
Should it differ from the portage log I already have attached?
Comment 12 solar (RETIRED) gentoo-dev 2006-02-25 11:13:05 UTC
Looks like it's getting relinked in the instal phase.

>>> Install man-1.6c into /var/tmp/portage/man-1.6c/image/ category sys-apps
cd src; make install
make[1]: Entering directory `/var/tmp/portage/man-1.6c/work/man-1.6c/src'
x86_64-pc-linux-gnu-gcc -c -Wall -Wstrict-prototypes -Wmissing-prototypes  -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow  -I. -DSTDC_HEADERS -DPOSIX -DDO_COMPRESS man-config.c
x86_64-pc-linux-gnu-gcc -c -Wall -Wstrict-prototypes -Wmissing-prototypes  -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow  -I. -DSTDC_HEADERS -DPOSIX -DDO_COMPRESS man-getopt.c
x86_64-pc-linux-gnu-gcc  -o man man.o manfile.o manpath.o man-config.o man-getopt.o man-iconv.o to_cat.o different.o gripes.o glob.o util.o msg.o  
Comment 13 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-25 12:35:09 UTC
It seems so.just adding export BINDNOW_FLAGS=$(bindnow-flags) in src_install solve the problem for me.
Comment 14 SpanKY gentoo-dev 2006-02-25 20:45:25 UTC
run this:
MAKEOPTS=-j1 MAKEFLAGS=--debug=b emerge man >& log
Comment 15 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-26 01:13:45 UTC
Created attachment 80742 [details]
debug log

output of `MAKEOPTS=-j1 MAKEFLAGS=--debug=b emerge man >& log`
Comment 16 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-26 04:28:34 UTC
I have the same issue with kdebase-3.5.1-r2.
in src_compile is present export BINDNOW_FLAGS="$(bindnow-flags)", but I have the following message:

QA Notice: the following files are setXid, dyn linked, and using lazy bindings
 This combination is generally discouraged.  Try re-emerging the package:
 LDFLAGS='-Wl,-z,now' emerge kdebase
LAZY usr/kde/3.5/bin/kcheckpass
LAZY usr/kde/3.5/bin/kdesud
Comment 17 SpanKY gentoo-dev 2006-02-26 11:54:30 UTC
is your clock screwed up ?
Comment 18 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-27 11:02:59 UTC
(In reply to comment #17)
> is your clock screwed up ?
> 

Mmm I don't think so. Maybe there could be issues with AMD64 Cool n Quiet support that I don't know, but it shouldn't interfere with make.
Comment 19 SpanKY gentoo-dev 2006-04-24 22:56:17 UTC
do you have tmpfs mounted on /var/tmp/portage ?
Comment 20 Sandro Bonazzola (RETIRED) gentoo-dev 2006-04-25 06:14:45 UTC
(In reply to comment #19)
> do you have tmpfs mounted on /var/tmp/portage ?
> 

Yes
Comment 21 SpanKY gentoo-dev 2006-04-25 06:19:53 UTC
thats your answer then
Comment 22 SpanKY gentoo-dev 2006-04-25 06:22:25 UTC

*** This bug has been marked as a duplicate of 114722 ***
Comment 23 Sandro Bonazzola (RETIRED) gentoo-dev 2006-06-30 12:12:09 UTC
The resolution of bug #114722 solve this issue. Verfied, works for me.