From owner-freebsd-questions Thu Sep 26 11:52:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2399D37B401 for ; Thu, 26 Sep 2002 11:52:56 -0700 (PDT) Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.112.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D7A543E3B for ; Thu, 26 Sep 2002 11:51:05 -0700 (PDT) (envelope-from markm@cal.berkeley.edu) Received: from soda.csua.berkeley.edu (IDENT:Pmqmp6ATdoj27moMwgGgtC0NOX5kn9Yv@localhost [127.0.0.1]) by soda.csua.berkeley.edu (8.12.3/8.12.3) with ESMTP id g8QIp4VR003451; Thu, 26 Sep 2002 11:51:04 -0700 (PDT) (envelope-from markm@cal.berkeley.edu) Received: from localhost (mjm@localhost) by soda.csua.berkeley.edu (8.12.3/8.12.3/Submit) with ESMTP id g8QIp4V9003448; Thu, 26 Sep 2002 11:51:04 -0700 (PDT) X-Authentication-Warning: soda.csua.berkeley.edu: mjm owned process doing -bs Date: Thu, 26 Sep 2002 11:51:04 -0700 (PDT) From: "Mark J. Miller" X-X-Sender: mjm@soda.csua.berkeley.edu To: Joe Marcus Clarke Cc: FreeBSD User Questions List Subject: Re: error building mozilla-- cannot find -lglib In-Reply-To: <1033007258.356.4.camel@gyros.marcuscom.com> Message-ID: <20020926113421.M643-100000@soda.csua.berkeley.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Found it-- /usr/ports/www/mozilla/work/mozilla/config/autoconf.mk. There are several macro definitions for -lglib12, but LIBIDL_LIBS is defined to include -lglib. I haven't investigated this further to figure out where this should have been set (ie, if it's a patch problem or a configure problem), but the build just progressed past the xpidl stage where it was failing before. I will let you know if it builds successfully, and if you want me to do any more tests I'd be glad to do so if it would help the porting process. Thanks for all your help, Mark On 25 Sep 2002, Joe Marcus Clarke wrote: >On Sat, 2002-09-21 at 02:49, Mark J. Miller wrote: >> >> >> >> >Somehow your Mozilla is being configured incorrectly. Make sure your >> >> >/usr/ports/Mk directory is up-to-date, then do a make clean in the >> >> >mozilla directory, and try to rebuild. It shouldn't be looking for >> >> >-lglib, but rather -lglib12. >> > >> >This is handled by the glib12-config script (installed as part of >> >glib12). What does glib12-config --libs report? What revision of >> >/usr/ports/Mk/bsd.port.mk do you have? >> >> % glib12-config --libs >> -L/usr/local/lib -lglib12 >> >> I did a 'locate glib| grep config' and found another binary called >> glib-config in /usr/local/bin. The version it reported was 1.2.8, while >> glib12-config reports 1.2.10 . I removed the old binary, ran a make clean >> install again, but got the same error. >> >> The version of /usr/ports/Mk/bsd.port.mk is >> # $FreeBSD: ports/Mk/bsd.port.mk,v 1.424 2002/09/19 00:16:39 kris Exp $ >> >> I should note that earlier I had a problem with libIDL which I've just >> come across again: >> >> cc -o xpidl.o -c -DOSTYPE=\"FreeBSD4\" -DOSARCH=\"FreeBSD\" -DOJI >> -I../../../dist/include/xpcom -I../../../dist/include >> -I/usr/ports/www/mozilla/work/mozilla/dist/include/nspr >> -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -fPIC >> -I/usr/X11R6/include -I/usr/X11R6/include -Wall -W -Wno-unused >> -Wpointer-arith -Wcast-align -Wno-long-long -O -pipe -march=pentiumpro >> -pipe -DNDEBUG -DTRIMMED -ffunction-sections -I/usr/local/include/glib12 >> -I/usr/local/include/orbit-1.0 -I/usr/local/include -I/usr/X11R6/include >> -I/usr/X11R6/include -include ../../../config-defs.h -DMOZILLA_CLIENT >> xpidl.c >> In file included from xpidl.c:42: >> xpidl.h:53: libIDL/IDL.h: No such file or directory >> >> To get around this, I installed libIDL, which had a dependency on glib20. >> This did solve the IDL problem. After seeing the glib problem, I did a >> pkg_delete -f on glib20, reinstalled glib12, and got the same error I have >> now ("can't find -lglib"). I don't think this would have any effect (I'm >> doing make clean install each time), but am I missing something? Should >> mozilla have its own version of IDL? > >It should. I have not seen this error previously. The only other user >I can recall that had this problem symlinked libglib12.so to >libglib.so. However, this might not solve the libIDL problem. > >> >> Here are the lines from the build process that have to do with glib: >> ===> Cleaning for glib-1.2.10_7 >> ===> mozilla-1.0.1,2 depends on shared library: glib12.3 - found >> checking for glib-config... /usr/local/bin/glib12-config >> checking for GLIB - version >= 1.2.0... yes >> >> It seems like config is detecting the correct version, but it's still >> using -lglib, not -lglib12 as you mentioned. > >Can you hunt through the makefiles to see which one has the -lglib and >figure out where it's coming from? It might help to determine why this >is happening. > >Joe > >> >> Thanks for your continuing help, >> Mark >> >> >-- >PGP Key : http://www.marcuscom.com/pgp.asc > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message