Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75773 - Merging dev-libs/openssl-0.9.7d-r2 fails with OSError: [Errno 40], "too mange levels of symbolic links"
Summary: Merging dev-libs/openssl-0.9.7d-r2 fails with OSError: [Errno 40], "too mange...
Status: RESOLVED DUPLICATE of bug 68419
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-27 02:47 UTC by Richard Hartmann
Modified: 2005-07-17 13:06 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 Richard Hartmann 2004-12-27 02:47:50 UTC
I applied the GLSA 

"glsa-check -f 200411-15"

The following updates have been emerged:
     sys-apps/groff-1.19.1-r2 (1.18.1-r4)
     dev-libs/openssl-0.9.7d-r2 (0.9.7c-r1)

but the merging of "openssl-0.9.7d-r2 to /" failed.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.

Actual Results:  
Everything went fine up to this point: 
 
gzip: /var/tmp/portage/openssl-0.9.7d-r2/image/usr/share/man/man7/Modes: No 
such file or directory 
gzipping man page: of 
gzip: of: No such file or directory 
gzipping man page: DES.7 
gzip: DES.7: No such file or directory 
prepallstrip: 
strip: 
strip: 
   usr/bin/openssl 
   usr/lib/libssl.so.0.9.7 
   usr/lib/libcrypto.so.0.9.7 
making executable: /usr/lib/libcrypto.so.0.9.7 
making executable: /usr/lib/libssl.so.0.9.7 
>>> Completed installing into /var/tmp/portage/openssl-0.9.7d-r2/image/ 
 
>>> Merging dev-libs/openssl-0.9.7d-r2 to / 
 
[...] 
 
  File "/usr/lib/portage/pym/portage.py", line 2695, in merge 
    return mylink.merge(pkgloc,infloc,myroot,myebuild) 
  File "/usr/lib/portage/pym/portage.py", line 6670, in merge 
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup) 
  File "/usr/lib/portage/pym/portage.py", line 6297, in treewalk 
    if 
self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime): 
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme 
    if 
self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): 
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme 
    if 
self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): 
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme 
    if 
self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): 
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme 
    if 
self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): 
  File "/usr/lib/portage/pym/portage.py", line 6551, in mergeme 
    elif stat.S_ISREG(mydmode) or (stat.S_ISLNK(mydmode) and 
stat.S_ISREG(os.stat(mydest)[stat.ST_MODE])): 
OSError: [Errno 40] Too many levels of symbolic links: 
'/usr/share/man/man3/EVP_BytesToKey.3.gz' 

Expected Results:  
It should have successfully merged the openssl package. 
 
BTW: 
 
I have come to the conclusion, that this problem relies in a faulty 
installation of the previous openssl package, as I found this on google 
groups: 
 
[cut here] 
 
From: levitte@stacken.kth.se (Richard Levitte - VMS Whacker) 
Newsgroups: mailing.openssl.dev 
Subject: Re: Too many levels of symbolic links 
Date: Tue, 29 Jun 2004 03:45:19 +0800 (CST) 
Organization: NCTU CSIE FreeBSD Server 
Lines: 39 
Sender: nobody@FreeBSD.csie.NCTU.edu.tw 
Message-ID: <cbpsgf$384$1@FreeBSD.csie.NCTU.edu.tw> 
NNTP-Posting-Host: freebsd.csie.nctu.edu.tw 
X-Trace: FreeBSD.csie.NCTU.edu.tw 1088451919 3333 140.113.17.209 (28 Jun 2004 
19:45:19 GMT) 
X-Complaints-To: usenet@FreeBSD.csie.NCTU.edu.tw 
NNTP-Posting-Date: Mon, 28 Jun 2004 19:45:19 +0000 (UTC) 
 
 
In message 
<OF306C1389.C87A349A-ON86256EC1.006057DC-86256EC1.00617933@MBSBooks.com> on 
Mon, 28 Jun 2004 12:45:57 -0500, BTrout@mbsbooks.com said: 
 
BTrout> I get the following with 9.7.d and 9.7e snap shot  for 062804 
BTrout> ( I am using AIX 4.3 and gcc ) 
BTrout>  
BTrout> installing man3/ERR_put_error.3 
BTrout> ERR_add_error_data.3 => ERR_put_error.3 
BTrout> installing man3/ERR_remove_state.3 
BTrout> installing man3/EVP_BytesToKey.3 
BTrout> Too many levels of symbolic links 
BTrout> /bin/sh: /usr/local/ssl/man/man3/EVP_BytesToKey.3: cannot create 
BTrout> make: The error code from the last command is 1. 
 
Do the following: 
 
 rm -rf /usr/local/ssl/man; make install 
 
The error is due to an earlier installation (0.9.7c or lower) that has 
created faulty symbolic links.  The only way to fix it is to remove 
the links that are in the way, and since you're rebuilding all manuals 
anyway, you can remove the whole OpenSSL manual directory. 
 
[cut here] 
 
Can this problem be corrected by the portage team or shall I fix it myself 
and rerun the merge? 

bash-2.05b# emerge info 
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.2, 
glibc-2.3.3.20040420-r2, 2.4.26-gentoo-r13 i686) 
================================================================= 
System uname: 2.4.26-gentoo-r13 i686 Pentium III (Katmai) 
Gentoo Base System version 1.4.3.13 
Autoconf: sys-devel/autoconf-2.58 
Automake: sys-devel/automake-1.7.7 
Binutils: sys-devel/binutils-2.14.90.0.7-r4 
Headers:  sys-kernel/linux-headers-2.4.21 
Libtools: sys-devel/libtool-1.4.3-r3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage/" 
USE="x86 X acl apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups encode 
esd fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 gtkhtml guile 
imlib ipv6 java jpeg junit kde ldap libwww mad mikmod mmx motif mozilla mpeg 
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype xml xml2 xmms 
xv zlib linguas_de"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-27 06:57:58 UTC
>Can this problem be corrected by the portage team or shall I fix it myself 
and rerun the merge?

The latter should do it.


Daniel: Don't know, if you want to do something about that.
Comment 2 SpanKY gentoo-dev 2004-12-28 08:46:56 UTC

*** This bug has been marked as a duplicate of 68419 ***