[JDEV] Why does libjabber complain about absence of libxode?

David Le Corfec david.le-corfec at idealx.com
Mon Oct 30 12:47:44 CST 2000


Frederic Faure wrote:
> 
> Hi,
> 
> Since nowhere are to be found recent RPMs of the different modules required

If it can help Jabber people, I have attached specs to build RPMs for
libxode and libjabber. Thanks to Jerome Tournier :)
There aren't separated as user and devel RPMs, and version numbers
are hardcoded and thus incorrect. But it should be helpful anyway.

> to use Jabber, I d'loaded the source, and like a lot of people, failed with
> ./configure of libjabber:
> 
> checking for libxode-config... no
> configure: error:
> ******************************************************************
> * You do not seem to have libxode installed.  This is a required *
> * package for libjabber to build.  Please see:                   *
> *                 http://download.jabber.org                     *
> * to get this package.                                           *
> ******************************************************************
> 
> => I installed pth and adns though RPM, added /usr/local/lib to

adns isn't used in jabber 1.1+ (don't ask me why, I wasn't there :)

> /etc/ld.so.conf, and did run ldconfig after compiling/installing libxode. I

good

> even rebooted this RH 6.2, to no avail. Why does libjabber keep complaining?

Check that you have libxode-config in your path.
(do you have /usr/local/bin in your $PATH ?)
(also remove config.cache before re-running configure, though 
I don't think this one is cached)

> # whereis libxode
> libxode: /usr/local/lib/libxode.so /usr/local/lib/libxode.la
> /usr/local/lib/libxode.a

What matters is $prefix/bin/libxode-config, it contains all the infos
about libxode.

-- 
David Le Corfec
-------------- next part --------------
%define name libjabber
%define version 1.1.4
%define release 1
%define prefix /usr/local


Summary: libjabber provides Jabber transports with various library functions
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Applications/Internet
Source: %{name}-%{version}.tgz
BuildRoot: /var/tmp/%{name}-buildroot
# Prefix: /usr/local

%description
libjabber provides Jabber transports with various library functions

%prep
%setup

%build
sh ./autogen.sh --prefix=%{prefix}
#./configure
make

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%post
ldconfig %{prefix}/lib

%postun
ldconfig %{prefix}/lib


%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
/usr/local/include/jabber/jabber.h
/usr/local/lib/libjabber.so.1.0.0
/usr/local/lib/libjabber.so.1
/usr/local/lib/libjabber.so
/usr/local/lib/libjabber.la
/usr/local/lib/libjabber.a
/usr/local/man/man1/jabber-config.1
/usr/local/bin/jabber-config
-------------- next part --------------
%define name libxode
%define version 1.2RC1
%define release 1
%define prefix /usr/local


Summary: A library of XML and string helper functions
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Applications/Internet
Source: %{name}-%{version}.tgz
BuildRoot: /var/tmp/%{name}-buildroot
# Prefix: /usr/local

%description
libxode provides a library of XML and string helper functions.
Jabber agents use libxode extensively.

%prep
%setup

%build
sh ./autogen.sh --prefix=%{prefix}
#./configure
make

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%post
ldconfig %{prefix}/lib

%postun
ldconfig %{prefix}/lib


%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog INSTALL README COPYING NEWS
/usr/local/lib/libxode.so.1.0.0
/usr/local/lib/libxode.so.1
/usr/local/lib/libxode.so
/usr/local/lib/libxode.la
/usr/local/lib/libxode.a
/usr/local/include/xmlparse.h
/usr/local/include/libxode.h
/usr/local/bin/libxode-config


More information about the JDev mailing list