Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 1999 14:42:39 -0700
From:      Jamie Norwood <mistwolf@ethereal.net>
To:        "Richard G. Roberto" <robertor@typhoon.co.jp>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Problems with GDBM on FreeBSD 3.2-R
Message-ID:  <19990715144238.A25796@ethereal.net>
In-Reply-To: <19990715135731.A19609@ethereal.net>; from Jamie Norwood on Thu, Jul 15, 1999 at 01:57:31PM -0700
References:  <19990714213140.A3636@ethereal.net> <99071519240800.06507@robertor.typhoon.co.jp> <19990715135048.A18252@ethereal.net> <19990715135731.A19609@ethereal.net>

next in thread | previous in thread | raw e-mail | index | archive | help
And one more to spam the list; 

Now while ldconfig -r shows gdbm in it, programs that try to find/link to it
cannot do so:

2:38pm Thu Jul 15 1999 on ttyp0                                                 diarmadhi:/home/mistwolf/sms> ldconfig -r | grep gdbm
        62:-lgdbm.2 => /usr/local/lib/libgdbm.so.2

diarmadhi:/home/mistwolf/sms> ./configure 
<snip>
checking for ndbm routines:
checking for dbm_close in -lgdbm... no
checking for dbm_close in -lndbm... no
checking for dbm_close in -ldbm... no
checking for dbm_close in -lsdbm... no
configure: warning: Failed to find external ndbm library - trying libc.
checking for dbm_close... yes
<snip>

2:41pm Thu Jul 15 1999 on ttyp0                                                 diarmadhi:/home/mistwolf/sms> gmake
rm -f netmush
gcc -g -O2   -I. -Isrc  -DRWHO_IN_USE   -DCACHE_OBJS  -o netmush alloc.o boolexp.o bsd.o command.o compat.o conf.o cque.o create.o db.o db_rw.o eval.o file_c.o flags.o functions.o game.o help.o htab.o log.o look.o match.o move.o netcommon.o object.o player.o player_c.o predicates.o quota.o regexp.o rob.o set.o speech.o stringutil.o timer.o unparse.o vattr.o walkdb.o wild.o wiz.o  udb_ocache.o udb_ochunk.o udb_obj.o udb_misc.o  rwho_clilib.o  version.o \
 -lm -lcrypt -lgdbm 
/usr/libexec/elf/ld: cannot open -lgdbm: No such file or directory
gmake: *** [netmush] Error 1


This is really very, very confusing, and none of this was needed in 2.2.8. What
is causing this? How can it be fixed? What am I doing wrong?

Jamie


On Thu, Jul 15, 1999 at 01:57:31PM -0700, Jamie Norwood wrote:
> OK, I got it in to ldconfig... It appears that ldconfig will not read any
> library who either has no .so.X file, or who's .so.X is too long. So I had:
> 
> -rwxr-xr-x   1 root  wheel     457 Jul 14 21:09 libgdbm.la
> lrwxr-xr-x   1 root  wheel      14 Jul 14 21:09 libgdbm.so -> libgdbm.so.2.0
> -rwxr-xr-x   1 root  wheel   25353 Jul 14 21:09 libgdbm.so.2.0
> 
> Since libgdbm.so.2.0 is too long, no scan. Symlinking in to add:
> 
> -rwxr-xr-x   1 root  wheel     457 Jul 14 21:09 libgdbm.la
> lrwxr-xr-x   1 root  wheel      14 Jul 14 21:09 libgdbm.so -> libgdbm.so.2.0
> lrwxr-xr-x   1 root  wheel      14 Jul 15 13:55 libgdbm.so.2 -> libgdbm.so.2.0
> -rwxr-xr-x   1 root  wheel   25353 Jul 14 21:09 libgdbm.so.2.0
> 
> 
> Fixed it, and now it is seen.
> 
> Is this the expected behaviour? Or  a bug? Anyone?
> 
> Jamie
> 
> -- 
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GCS d- s+:+ a--(?) C++++ UB++++ P+ L--(++) E-- W++(--) N++ O?
> K w(---) O?>+ M?>+ V PS+ PE+ Y+ PGP->++ t+(*) 5+++ X++ R++ tv+
> b+ DI++++ D++ G e>+ h--- r+++ y+++**
> ------END GEEK CODE BLOCK------
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:+ a--(?) C++++ UB++++ P+ L--(++) E-- W++(--) N++ O?
K w(---) O?>+ M?>+ V PS+ PE+ Y+ PGP->++ t+(*) 5+++ X++ R++ tv+
b+ DI++++ D++ G e>+ h--- r+++ y+++**
------END GEEK CODE BLOCK------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990715144238.A25796>