Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
revdep-rebuild problem with openldap [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Sat Apr 07, 2007 9:02 am    Post subject: revdep-rebuild problem with openldap [solved] Reply with quote

hi all!

if i try to do an revdep-rebuild i get openldap to be rebuilt. but after i finished this successfully, and i do another revdep-rebuild, portage wants to re-emerge openldap again! this confuses me and i dont know what to do...

heres the output:
Code:

...
--- !empty dir /var
--- !empty dir /usr/share/man/man8
--- !empty dir /usr/share/man/man5
--- !empty dir /usr/share/man/man3
--- !empty dir /usr/share/man/man1
--- !empty dir /usr/share/man
--- !empty dir /usr/share/doc/openldap-2.3.30-r2/rfc
--- !empty dir /usr/share/doc/openldap-2.3.30-r2
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/sbin
--- !empty dir /usr/lib/openldap/openldap
--- !empty dir /usr/lib/openldap
--- !empty dir /usr/lib
--- !empty dir /usr/include
--- !empty dir /usr/bin
--- !empty dir /usr
--- !empty dir /etc/openldap/schema
--- !empty dir /etc/openldap
--- !empty dir /etc/init.d
--- !empty dir /etc/conf.d
--- !empty dir /etc
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 * Generating OpenSSL configuration ...                                                                                                    [ ok

 * Generating 1024 bit RSA key for CA ...                                                                                                  [ ok
 * Generating Certificate Signing Request for CA ...                                                                                       [ ok
 * Generating self-signed X.509 Certificate for CA ...                                                                                     [ ok

 * Generating 1024 bit RSA key ...                                                                                                         [ ok
 * Generating Certificate Signing Request ...                                                                                              [ ok
 * Generating authority-signed X.509 Certificate ...                                                                                       [ ok
 * Generating PEM Certificate ...                                                                                                          [ ok

 * Self-signed SSL certificates are treated harshly by OpenLDAP 2.[12]
 * add 'TLS_REQCERT never' if you want to use them.

 *
 * Getting started using OpenLDAP? There is some documentation available:
 * Gentoo Guide to OpenLDAP Authentication
 * (http://www.gentoo.org/doc/en/ldap-howto.xml)
 *

 *
 * An example file for tuning BDB backends with openldap is:
 * /usr/share/doc/openldap-2.3.30/DB_CONFIG.fast.example.gz
 *
 * Old versions of installed libraries were detected on your system.
 * In order to avoid breaking packages that depend on these old libs,
 * the libraries are not being removed.  You need to run revdep-rebuild
 * in order to remove these old dependencies.  If you do not have this
 * helper program, simply emerge the 'gentoolkit' package.
 *
 *   # revdep-rebuild --library libldap.so.2.0.130
 * Old versions of installed libraries were detected on your system.
 * In order to avoid breaking packages that depend on these old libs,
 * the libraries are not being removed.  You need to run revdep-rebuild
 * in order to remove these old dependencies.  If you do not have this
 * helper program, simply emerge the 'gentoolkit' package.
 *
 *   # revdep-rebuild --library libldap_r.so.2.0.130
 * Old versions of installed libraries were detected on your system.
 * In order to avoid breaking packages that depend on these old libs,
 * the libraries are not being removed.  You need to run revdep-rebuild
 * in order to remove these old dependencies.  If you do not have this
 * helper program, simply emerge the 'gentoolkit' package.
 *
 *   # revdep-rebuild --library libldap-2.2.so.7
 * Old versions of installed libraries were detected on your system.
 * In order to avoid breaking packages that depend on these old libs,
 * the libraries are not being removed.  You need to run revdep-rebuild
 * in order to remove these old dependencies.  If you do not have this
 * helper program, simply emerge the 'gentoolkit' package.
 *
 *   # revdep-rebuild --library libldap_r-2.2.so.7
>>> Regenerating /etc/ld.so.cache...
>>> net-nds/openldap-2.3.30-r2 merged.

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
 * GNU info directory index is up-to-date.
Build finished correctly. Removing temporary files...
You can re-run revdep-rebuild to verify that all libraries and binaries
are fixed. If some inconsistency remains, it can be orphaned file, deep
dependency, binary package or specially evaluated library.

area52 ~ # revdep-rebuild
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /usr/lib/libldap-2.2.so.7 (requires  liblber-2.2.so.7)
  broken /usr/lib/libldap.so.2.0.130 (requires  liblber.so.2)
  broken /usr/lib/libldap_r-2.2.so.7 (requires  liblber-2.2.so.7)
  broken /usr/lib/libldap_r.so.2.0.130 (requires  liblber.so.2)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

All prepared. Starting rebuild...
emerge --oneshot  =net-nds/openldap-2.3.30-r2

this also happens if i do an revdep-rebuild of every single library named above.
any suggestions on how to fix this??

thx in advance
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!


Last edited by snIP3r on Sat Apr 07, 2007 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Sat Apr 07, 2007 3:18 pm    Post subject: Reply with quote

Post the output of:
Code:
emerge --info
emerge -ptv openldap
ls -aFhn /usr/lib/lib{lber,ldap}*


Perduodu linkėjimus
Arfrever
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Sat Apr 07, 2007 3:30 pm    Post subject: Reply with quote

hi!

heres the requested output:

Code:

area52 ~ # emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 AMD Athlon(tm) Processor
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 07 Apr 2007 07:00:08 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/X11/xkb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php4/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cli-php4/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa apache2 apm arts berkdb bitmap-fonts bzip2 clearpasswd cli cracklib crypt cups curl dri dvd eds emboss encode esd foomaticdb fortran gdbm gif gmp gnome gpm gstreamer gtk gtk2 iconv imlib ipv6 isdnlog jpeg kde ldap libg++ libwww mad midi mikmod motif mp3 mpeg mysql ncurses nls nodroproot nptl nptlonly oav ogg opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection samba sasl sdl session smartcard spell spl ssl tcpd truetype truetype-fonts type1-fonts usb vorbis x86 xml xml2 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="mga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Code:

area52 ~ # emerge -ptv openldap

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ] net-nds/openldap-2.3.30-r2  USE="berkdb crypt gdbm ipv6 perl readline samba sasl ssl tcpd -debug -kerberos -minimal -odbc -overlays (-selinux) -slp -smbkrb5passwd" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Code:

area52 ~ # ls -aFhn /usr/lib/lib{lber,ldap}*
lrwxrwxrwx 1 0 0   21 Apr  7 10:46 /usr/lib/liblber-2.3.so.0 -> liblber-2.3.so.0.2.18*
-rwxr-xr-x 1 0 0  47K Apr  7 10:46 /usr/lib/liblber-2.3.so.0.2.18*
-rw-r--r-- 1 0 0  64K Apr  7 10:46 /usr/lib/liblber.a
-rw-r--r-- 1 0 0  809 Apr  7 10:46 /usr/lib/liblber.la
lrwxrwxrwx 1 0 0   21 Apr  7 10:46 /usr/lib/liblber.so -> liblber-2.3.so.0.2.18*
-rwxr-xr-x 1 0 0 204K Apr  7 10:46 /usr/lib/libldap-2.2.so.7*
lrwxrwxrwx 1 0 0   21 Apr  7 10:46 /usr/lib/libldap-2.3.so.0 -> libldap-2.3.so.0.2.18*
-rwxr-xr-x 1 0 0 219K Apr  7 10:46 /usr/lib/libldap-2.3.so.0.2.18*
-rw-r--r-- 1 0 0 306K Apr  7 10:46 /usr/lib/libldap.a
-rw-r--r-- 1 0 0  887 Apr  7 10:46 /usr/lib/libldap.la
lrwxrwxrwx 1 0 0   21 Apr  7 10:46 /usr/lib/libldap.so -> libldap-2.3.so.0.2.18*
lrwxrwxrwx 1 0 0   18 Jun  2  2006 /usr/lib/libldap.so.2 -> libldap.so.2.0.130*
-rwxr-xr-x 1 0 0 200K Apr  7 10:46 /usr/lib/libldap.so.2.0.130*
-rwxr-xr-x 1 0 0 220K Apr  7 10:46 /usr/lib/libldap_r-2.2.so.7*
lrwxrwxrwx 1 0 0   23 Apr  7 10:46 /usr/lib/libldap_r-2.3.so.0 -> libldap_r-2.3.so.0.2.18*
-rwxr-xr-x 1 0 0 234K Apr  7 10:46 /usr/lib/libldap_r-2.3.so.0.2.18*
-rw-r--r-- 1 0 0 334K Apr  7 10:46 /usr/lib/libldap_r.a
-rw-r--r-- 1 0 0  901 Apr  7 10:46 /usr/lib/libldap_r.la
lrwxrwxrwx 1 0 0   23 Apr  7 10:46 /usr/lib/libldap_r.so -> libldap_r-2.3.so.0.2.18*
lrwxrwxrwx 1 0 0   20 Jun  2  2006 /usr/lib/libldap_r.so.2 -> libldap_r.so.2.0.130*
-rwxr-xr-x 1 0 0 211K Apr  7 10:46 /usr/lib/libldap_r.so.2.0.130*


greets
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Sat Apr 07, 2007 3:36 pm    Post subject: Reply with quote

Run:
Code:
rm -fr /usr/lib/lib{lber,ldap}*
emerge -1v openldap

It's faster than reading this mixture of symlinks.

Perduodu linkėjimus
Arfrever
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Sat Apr 07, 2007 4:20 pm    Post subject: Reply with quote

Arfrever wrote:
Run:
Code:
rm -fr /usr/lib/lib{lber,ldap}*
emerge -1v openldap

It's faster than reading this mixture of symlinks.

Perduodu linkėjimus
Arfrever


hi Arfrever!

THX a lot! that fixed my error. no more revdep-rebuild of openldap :)

thx
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
nyback
n00b
n00b


Joined: 27 Aug 2004
Posts: 30

PostPosted: Fri Jun 08, 2007 2:17 pm    Post subject: Warning Reply with quote

Do not run:
Code:

rm -fr /usr/lib/lib{lber,ldap}*
emerge -1v openldap


In some cases at least this will brake your installation and you have to figure out a way to get back the libldap files to recover.

I am on amd64 and have ldap use flag set in make.conf.
If i remove the libldap files like suggested, many commands in my system stopped working. Even a simple one like ls failed with missing shared library libldap.* A reboot did not come far in the boot before it stopped.

After booting from the gentoo amd64 live cd i could mount the root partition and copy back the ldap libraries from the cd.

Well, now i don't have the old ldap libraries anymore so my original problem with revdep-rebuild is solved. But it was a very cumbersome road to do it this way ;-)

/Andreas


Last edited by nyback on Sun Jun 17, 2007 8:33 am; edited 1 time in total
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Fri Jun 08, 2007 2:29 pm    Post subject: Re: Warning Reply with quote

nyback wrote:
Do not run:
Code:

rm -fr /usr/lib/lib{lber,ldap}*
emerge -1v openldap


In some cases at least this will brake your installation and you have to figure out a way to get back the libldap files to recover.

I run amd64. have ldap use flag set in make.conf.
If i remove the libldap files like suggested, many commands in my system stopped working. Even a simple one like ls failed with missing shared library libldap.* A reboot did not come far in the boot before it stopped.

After booting from the gentoo amd64 live cd i could mount the root partition and copy back the ldap libraries from the cd.

Well, now i don't have the old ldap libraries anymore so my original problem with revdep-rebuild is solved. But it was a very cumbersome road to do it this way ;-)

/Andreas


hi nyback!

i did as suggested and everything still runs perfect. openldap is only a testinstallation, no production use...

thx & greets

snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
nyback
n00b
n00b


Joined: 27 Aug 2004
Posts: 30

PostPosted: Fri Jun 08, 2007 2:35 pm    Post subject: not for me Reply with quote

Maybe its because i have ldap in my global use flags. Just wanted to give a warning so people are aware that it can cause big trouble to do like suggested. But its good that it worked for you. I could not even run emerge anymore, so re-emerging openldap to recover was not possible. It just complained about missing ldap shared library. The one i had deleted with the rm comand :-(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum