Re: strange problem w/ gnome-core and zlib
- From: Tim Moore <tmoore tembel org>
- To: Mika Ritola <foxtrot sci fi>
- CC: gnome-list gnome org
- Subject: Re: strange problem w/ gnome-core and zlib
- Date: Fri, 11 Sep 1998 08:34:10 -0400
Mika Ritola wrote:
>
> Hi,
>
> I haven't been able to compile gnome-core (from CVS) for a week or so. I'm
> not sure if the problem is in gnome-core or if I've accidentally broken
> something..
I got this with the gnome-core 0.28.1 SRPM, so it's an old problem. How
other people have been successful with it, I don't know.
>
> This is what I get:
[snip]
>
> I do have zlib (1.1.3) installed and the example program that comes with
> zlib compiles just fine. I don't understand what causes those "undefined
> reference" messages...
>
> By the way, shouldn't configure check for zlib? Currently it doesn't.
Exactly the problem. Here are my patches. You'll need automake and
autoconf installed for them to work.
This first one is on configure.in. I'm afraid I can't give you the exact
patch or even correct line numbers for the patched file, because I
patched a bunch of other stuff there too to work on LinuxPPC's broken
glibc. Just grep for "dnl help-browser" -- it only appears once AFAIK.
dnl help-browser
dnl I found `inet_aton' in -lresolv on solaris
@@ -202,6 +216,11 @@
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton,RES_LIBS="-lresolv")])
AC_SUBST(RES_LIBS)
+dnl Checks for zlib library.
+Z_LIBS=
+AC_CHECK_LIB(z, inflate,
+ AC_CHECK_HEADER(zlib.h, Z_LIBS="-lz"))
+AC_SUBST(Z_LIBS)
LIBS="$oLIBS"
dnl AC_CONFIG_SUBDIRS(gemvt)
This one's on the Automake source for the help-browser's makefile. It's
the only change I made to that file, so the patch should be right.
--- gnome-core-0.28.1-orig/help-browser/Makefile.am Wed Aug 19
14:19:31 1998
+++ gnome-core-0.28.1/help-browser/Makefile.am Mon Sep 7 16:14:51 1998
@@ -31,7 +31,7 @@
bookmarks.c bookmarks.h \
check-running.c check-running.h
-gnome_help_browser_LDADD = $(LDADD) $(RES_LIBS) $(GTKXMHTML_LIBS)
+gnome_help_browser_LDADD = $(LDADD) $(RES_LIBS) $(GTKXMHTML_LIBS)
$(Z_LIBS)
CFLAGS += -Wall
After that, you just cd to the root of the gnome-core source tree, run
automake, autoreconf, then build as normal.
HTH!
Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]