Building Silc Client 1.0.2: glib-config
jayjwa <[email protected]>
| Newsgroups | gmane.network.silc.user |
|---|---|
| Message-ID | <[email protected]> |
I recently went to upgrade both my Silc server and clients to the newest versions. As I always do I got them off the silc ftp site and began to build them. The server built fine, and it's now up again. However the client had a bit of a trouble. It seems it wants a configuration script that is just not available with recent glibs: glib-config. There's no glib-config in the newest glib's from ftp.gtk.org. Sample configure output -> *** The glib-config script installed by GLIB could not be found *** If GLIB was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GLIB_CONFIG environment variable to the *** full path to glib-config. checking for glib-config... (cached) no checking for GLIB - version >= 2.0.0... no *** The glib-config script installed by GLIB could not be found *** If GLIB was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GLIB_CONFIG environment variable to the *** full path to glib-config. *** trying without -lgmodule checking for glib-config... (cached) no checking for GLIB - version >= 2.0.0... no *** The glib-config script installed by GLIB could not be found *** If GLIB was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GLIB_CONFIG environment variable to the *** full path to glib-config. *** If you don't have GLIB, you can get it from ftp://ftp.gtk.org *** If you can't install GLIB anywhere or if you don't want to, *** you can just unpack it to Irssi's source directory and *** Irssi will automatically compile and use it. I even tried doing it manually, by setting the CFLAGS and such, and trying to use the --disable-glibtest from the inner configure script in the silc-client source package. No good. It does however use pkg-config: root@atr2 /tmp/silc-client-1.0.2 # pkg-config glib-2.0 --cflags -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include root@atr2 /tmp/silc-client-1.0.2 # pkg-config glib-2.0 --libs -lglib-2.0 All the needed libraries and headers are actually present, in normal locations (/usr/include, /usr/lib), and I've built a good deal of other software using my recent glib. I went back and double-checked, downloaded again the source just now. I noted this time in the NEWS file: * Removed glib-config-2.0 in favour of pkgconfig [Sebastian] And from the change log: 2001-06-27 Sebastian Wilhelmi <[email protected]> * Makefile.am, configure.in: Removed glib-config-2.0, as we have pkg-config now. So it seems that up to date glibs don't do "glib-config" anymore. I do remember the script from back in the old, old version, maybe around 1.*, but the new ones certainly don't include this time. I could make a cheater-script wrapper for configure to call, but I don't really know what format the data needs to be in that the script returns. Usually configure (autoconf) is super picky about the way output looks. The server builds find. I guess I have to stand with my old client until something works out. If it's important, this is a Linux x86 system, no distro. GCC 3.4.3, glibc 2.3.3, glib 2.6.3 (soon to go to 2.6.4, since I just saw there's a new one out ;) ). Since I compile all my own stuff, I tend to have the latest stabile releases of all libraries and utilities, so this may not be an issue with mainstream linux distro's right now, but I imagine sooner or later it will... Unless I'm missing something...but it does look like glib-config scripts have been obsoleted... - jayjwa _______________________________________________________________ Info: https://lists.silcnet.org/mailman/listinfo/silc-users Archive: https://lists.silcnet.org/pipermail/silc-users FAQ: http://silcnet.org/support/faq/