Re: red hat 9 and ** libsavi library NOT FOUND

Yevgeniy Miretskiy <[email protected]>
Newsgroups gmane.comp.security.virus.vtools
Message-ID <[email protected]>
I was able to reproce this problem on my RH9 machine.
From config.log, compilation failes due to:
   lib/libsavi.so: undefined reference to `__ctype_b'

It seem that there were incompatible changes between
glibc versions.  In particular, current libsavi library was
compiled using GLIBC_2.1.3 (run ldd -v lib/libsavi.so to get
info), while current RH9 glibc is 2.3.2-27

Furthermore, I found this info on RH9 support forums:

  RHL9 and later is not going to be changed.
  The change was done on purpose.
  Binary compatibility in Linux is always guaranteed for just
  binaries and shared libraries accross releases, never .o files
  nor .a files. They have to be recompiled.
  This is how symbol versioning works, compilation needs to be done
  against glibc headers from glibc which is used during final link
  (new incompatible interfaces through symbol versioning are introduced
  pretty often, and old binaries/shared libraries will work because
  the old symbol is exported as symbol@old_symbolversion; but
  .o/.a files don't have symbol versions attached, so they always
  pick up the default symbol version (ie. symbol@@new_symbolversion)
  which does not have to be the function against which the object
  was compiled).
  For __ctype_b*, the decision to replace it by __ctype_b_loc etc.
  and disallow any new links against the old type were made because
  __ctype_b* does not work together with uselocale(3).
  These days, uselocale(3) is used quite often e.g. in libstdc++,
  so it is very bad idea to keep using __ctype_b etc.

Basically, you can do one of the following:
  1. Downgrade glibc (yuck)
  2. Compile on something like RH 7.3
  3. Bug Sophos to provide up to day build (I think we will all 
     benefit from this)...

On [03/01/04 23:21], Peterweter wrote:
> Hi,
> 
> Just tried it again:
> ./configure --with-savilib=../sav-install/lib
> <snip long list>
> checking for location of libsavi... ../sav-install/lib
> checking for SAVIsweepFile in -lsavi... no
> ** libsavi library NOT FOUND
> ** You need libsavi in order to use Sophie.
> 
> Regards,
> Peter
> 
> 
> > -----Oorspronkelijk bericht-----
> > Van: Yevgeniy Miretskiy [mailto:[email protected]] 
> > Verzonden: maandag 1 maart 2004 23:13
> > Aan: Peterweter
> > Onderwerp: Re: [vtools] red hat 9 and ** libsavi library NOT FOUND
> > 
> > 
> > Did you try :
> >  ./configure --with-savilib=$sav_installation_dir/lib <other 
> > options> ???
> > 
> > On [03/01/04 21:08], Peterweter wrote:
> > > Hi,
> > > 
> > > I am not able to resolve this issue ans aparently nobody 
> > can help me 
> > > on this list. Can anyone send me a sophie binary for Linux?
> > > 
> > > Thanks,
> > > Peter
> > > 
> > > 
> > > > -----Oorspronkelijk bericht-----
> > > > Van: [email protected] [mailto:[email protected]]
> > > > Verzonden: vrijdag 27 februari 2004 22:14
> > > > Aan: 'Discussion about Virge/Sophie/Trophie/...'
> > > > Onderwerp: RE: [vtools] red hat 9 and ** libsavi library NOT FOUND
> > > > 
> > > > 
> > > > Hi Chris,
> > > > 
> > > > Thanks for your response.  I found and implemented this
> > > > solution already but to no avail. On my system: # l 
> > > > /usr/local/lib/libsavi*
> > > > lrwxrwxrwx    2 root     root        21 feb  8 00:00 
> > > > /usr/local/lib/libsavi.so -> libsavi.so.3.2.07.046
> > > > lrwxrwxrwx    1 root     root        21 feb  8 00:01 
> > > > /usr/local/lib/libsavi.so.2 -> libsavi.so.3.2.07.046
> > > > lrwxrwxrwx    2 root     root        21 feb  8 00:00 
> > > > /usr/local/lib/libsavi.so.3 -> libsavi.so.3.2.07.046
> > > > -r-xr-xr-x    1 bin      bin    1483780 feb  8 00:00 
> > > > /usr/local/lib/libsavi.so.3.2.07.046
> > > > 
> > > > ./configure
> > > > <...snip long list...>
> > > > checking for SAVIsweepFile in -lsavi... no
> > > > ** libsavi library NOT FOUND
> > > > ** You need libsavi in order to use Sophie.
> > > > 
> > > > Am I doing something wrong or am I just unlucky with this RH 9?
> > > > 
> > > > Peter
> > > > 
> > > > > -----Oorspronkelijk bericht-----
> > > > > Van: [email protected] [mailto:[email protected]] 
> > > > > Namens Covington, Chris
> > > > > Verzonden: vrijdag 27 februari 2004 21:48
> > > > > Aan: [email protected]
> > > > > Onderwerp: FW: [vtools] red hat 9 and ** libsavi 
> > library NOT FOUND
> > > > > 
> > > > > 
> > > > > Peter,
> > > > > 
> > > > > This was the solution below.
> > > > > 
> > > > > Chris
> > > > > 
> > > > > -----Original Message-----
> > > > > From: [email protected] 
> > [mailto:[email protected]] 
> > > > > On Behalf Of Covington, Chris
> > > > > Sent: Friday, February 20, 2004 1:38 AM
> > > > > To: Discussion about Virge/Sophie/Trophie/...
> > > > > Subject: RE: [vtools] red hat 9 and ** libsavi library NOT FOUND
> > > > > 
> > > > > Sorry for the top-post.
> > > > > 
> > > > > Thanks Dave!  It was that easy; now I am using amavisd-new with 
> > > > > sophie and no problems!
> > > > > 
> > > > > Ps - is the sophie-3.04rc2 supposed to be installed in any 
> > > > > particular location?  Make just compiles it in the directory it 
> > > > > was extracted. Which files are needed for proper operation?
> > > > > 
> > > > > Thanks
> > > > > Chris
> > > > > 
> > > > > -----Original Message-----
> > > > > From: [email protected] 
> > [mailto:[email protected]] 
> > > > > On Behalf Of > David Mitchell
> > > > > 
> > > > > Sent: Thursday, February 19, 2004 5:29 PM
> > > > > To: Discussion about Virge/Sophie/Trophie/...
> > > > > Subject: Re: [vtools] red hat 9 and ** libsavi library NOT FOUND
> > > > > 
> > > > > > I have what appears to be a common problem with 
> > sophie 3.04rc2:
> > > > > >
> > > > > > [root@grendel sophie-3.04rc2]# ls -l /usr/local/lib/libsavi*
> > > > > > lrwxrwxrwx    1 root     root           21 Feb 18 16:57
> > > > > > /usr/local/lib/libsavi.so.2 -> libsavi.so.3.2.07.046
> > > > > > lrwxrwxrwx    1 root     root           21 Feb 18 16:57
> > > > > > /usr/local/lib/libsavi.so.3 -> libsavi.so.3.2.07.046
> > > > > > -r-xr-xr-x    1 bin      bin       1384344 Feb 18 16:57
> > > > > > /usr/local/lib/libsavi.so.3.2.07.046
> > > > > >
> > > > > > but when I run configure I get ** libsavi library NOT FOUND
> > > > > 
> > > > > Make a symlink /usr/local/lib/libsavi.so to 
> > > > > /usr/local/lib/libsavi.so.3 and you should be fine.
> > > > > 
> > > > > Installing Sweep with the -so option does this for you :)
> > > > > 
> > > > > Cheers,
> > > > > Dave
> > > > > 
> > > > > _______________________________________________
> > > > > vtools mailing list
> > > > > [email protected] http://www.vanja.com/list/listinfo.cgi/vtools
> > > > > 
> > > > > 
> > > > > 
> > > > > _______________________________________________
> > > > > vtools mailing list
> > > > > [email protected] http://www.vanja.com/list/listinfo.cgi/vtools
> > > > > 
> > > > 
> > > 
> > > 
> > > _______________________________________________
> > > vtools mailing list
> > > [email protected] http://www.vanja.com/list/listinfo.cgi/vtools
> > 
> > -- 
> >   Eugene Miretskiy <[email protected]>
> >   INVISION.COM, INC.  (631) 543-1000
> >   www.invision.net  /  www.longisland.com 
> > 
> 
> 

-- 
  Eugene Miretskiy <[email protected]>
  INVISION.COM, INC.  (631) 543-1000
  www.invision.net  /  www.longisland.com

_______________________________________________
vtools mailing list
[email protected]
http://www.vanja.com/list/listinfo.cgi/vtools
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQFAQ8PzbdWhgMNo07URApPwAJ9Ygh6k+dgLbquw42ly1+sFNaSTrgCeMi5g
Ckhv/HUirG/VWp6wYUtH3+E=
=qHt6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.